This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: RFCv2: debuginfod debian archive support
- From: Mark Wielaard <mark at klomp dot org>
- To: "Frank Ch. Eigler" <fche at redhat dot com>, elfutils-devel at sourceware dot org
- Cc: Kurt Roeckx <kurt at roeckx dot be>, Matthias Klose <doko at debian dot org>
- Date: Thu, 05 Dec 2019 13:17:50 +0100
- Subject: Re: RFCv2: debuginfod debian archive support
- References: <20191202225401.GF4136@redhat.com>
Hi Kurt and Matthias,
On Mon, 2019-12-02 at 17:54 -0500, Frank Ch. Eigler wrote:
> On second thought, generalized the code & terminology. This may be
> ready for merging, except that it'd be awesome if a
> debian/ubuntu-literate person could create some test .deb/.ddeb files
> matching the tests/debuginfod-rpms. (cc:'d some maintainers there in
> hope they might have the time.) Hand-testing here looks okay.
Would you be able to show how to build a minimal (separate) debuginfo
package for Debian and/or Ubunutu? For rpm based systems we use the
attached self contained spec file that creates two nearly identical
hello programs to test any issues with duplicate name/debug/DWARF, it
also tests dwz multi files (if you use those on Debian or Ubuntu). To
(re)create the binary test packages for a different arch one would
simply run rpmbuild -ba hello2.spec.
How would one build a similar binary deb package (and the debuginfo
subpackages) on a Debian/Ubuntu system?
Thanks,
Mark
Summary: hello2 -- double hello, world rpm
Name: hello2
Version: 1.0
Release: 2
Group: Utilities
License: GPL
Distribution: RPM ^W Elfutils test suite.
Vendor: Red Hat Software
Packager: Red Hat Software <bugs@redhat.com>
URL: http://www.redhat.com
BuildRequires: gcc make
Source0: hello-1.0.tar.gz
%description
Simple rpm demonstration with an eye to consumption by debuginfod.
%package two
Summary: hello2two
License: GPL
%description two
Dittoish.
%prep
%setup -q -n hello-1.0
%build
gcc -g -O1 hello.c -o hello
gcc -g -O2 -D_FORTIFY_SOURCE=2 hello.c -o hello2
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
cp hello $RPM_BUILD_ROOT/usr/local/bin/
cp hello2 $RPM_BUILD_ROOT/usr/local/bin/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%attr(0751,root,root) /usr/local/bin/hello
%files two
%defattr(-,root,root)
%attr(0751,root,root) /usr/local/bin/hello2
%changelog
* Thu Nov 14 2019 Frank Ch. Eigler <fche@redhat.com>
- Added source code right here to make spec file self-contained.
- Dropped misc files not relevant to debuginfod testing.
* Wed May 18 2016 Mark Wielaard <mjw@redhat.com>
- Add hello2 for dwz testing support.
* Tue Oct 20 1998 Jeff Johnson <jbj@redhat.com>
- create.