Packages may ship both i386 and amd64 binaries in the same tarfile

Bug #1025320 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkgme-devportal
Triaged
High
Unassigned

Bug Description

This is a pretty tricky one, some binary packages ship both their "i386" and "amd64" shlibs in the same tarballs and switch at runtime. This will confuse dh_shlibdeps mightly as it will try to resolve them for the non-existing architecture.

A common workaround for this in the debian/rules packaging is:

override_dh_shlibdeps:
ifeq ($(DEB_BUILD_ARCH),i386)
 dh_shlibdeps -l"$(CURDIR)/debian/$(PACKAGE_NAME)/opt/$(PACKAGE_NAME)/x86"
else
 dh_shlibdeps -Xdebian/$(PACKAGE_NAME)/opt/$(PACKAGE_NAME)/.mojosetup -l"$(CURDIR)/debian/$(PACKAGE_NAME)/opt/$(PACKAGE_NAME)/amd64"
endif

Another one would be to write a custom install file, e.g. debian/install.i386, debian/install.amd64 that would install only the binary arch specific bits instead of everything. A good example for this is supermeatboy.

Tags: hib-binary
Michael Vogt (mvo)
tags: added: hib-binary
Michael Vogt (mvo)
summary: - Needs support for custom dh_shlibdeps directory calls
+ Packages may ship both i386 and amd64 binaries in the same tarfile
James Westby (james-w)
Changed in pkgme-devportal:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.