[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_strip with multiple -dbgsym packages



Thanks for the feedback Adrian.

On 16/11/25 14:02, Adrian Bunk wrote:
...
The error is caused by having debug info for the same binary in both
-dbgsym packages.

Move dh_strip below the uninstall lines.

Hmm ... our uninstall lines are hand crafted.  I moved the dh_strip to be after them, and this produced additional -dbgsym packages, but the problem remains.

I am certain the same files are *not* in multiple non-dbgsym packages, so I'm confused why duplicates would appear in the corresponding -dbgsym packages.

The Ubunutu vs Debian issue is resolved ... they don't agree about the filenames for the -dbgsym packages so we were not installing the -dbgsym packages in the Ubuntu builds and QA, but we are for Debian.

I should have provided some context in my earlier mail.  Here is an edited part of the rules file for the binary-arch: target:

	[a bunch of $(MAKE) -C foo calls ... there's lots of conditional stuff here]
	dh_installdocs -a
        dh_installchangelogs -a
        dh_link -a
        dh_fixperms -a -Xvar/lib/pcp/tmp -Xvar/lib/pcp/pmcd
        dh_strip -a
        dh_compress -a
        dh_installdirs -a
        dh_install -a --sourcedir=debian/$(pcp)
        @$(uninstall)
        [ a bunch of @$(uninstallfoo) lines for optional bits]
	[ moving dh_strip to here did not help ]
        dh_makeshlibs -a -N $(libpcp)
        [ a bunch more like this for the 8 or so libpcp_foo packages ]
        dh_python3 -a --package $(pcp_python3)
        if debian/checkconf HAVE_PERL; then dh_perl -a -p $(libpcp_mmv_perl); else true; fi
        if debian/checkconf HAVE_PERL; then dh_perl -a -p $(libpcp_pmda_perl); else true; fi
        if debian/checkconf HAVE_PERL; then dh_perl -a -p $(libpcp_import_perl); else true; fi
        if debian/checkconf HAVE_PERL; then dh_perl -a -p $(pcp_logsummary_perl); else true; fi
        dh_installdeb -a
        # VirtualBox may install a libGL.so that has no dependency
        # information ... this kills the packaging, so this hack
        # is a workaround. [seen on bozo-vm Nov 2017]
        if test -d /var/lib/VBoxGuestAdditions/lib; then dh_shlibdeps -a -- -v --ignore-missing-info; else dh_shlibdeps -a -- -v; fi
        dh_gencontrol -a $(SUBSTVARS) 2>/dev/null       # squash the python:Versions warning
        dh_md5sums -a
        dh_builddeb -a

and uninstall is defined earlier as
uninstall = cat debian/*.install | sed -e "s,^,$(dirpcp)/," | xargs rm -f


Reply to: