Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1863  / 1 Year ago, sat, may 6, 2023, 3:04:45

I've created a package which contains 32-bit libraries for compatibility with 32-bit applications on 64-bit systems, stored in /usr/lib32. This causes the ia32-libs dependency being added to my package. However, the package works perfectly fine without those libraries as other 32-bit programs should install ia32-libs themselves.



How do I prevent the build process from generating the ia32-libs dependency? nvidia-current seems to able to do this too, but uses CDBS which I do not use. (I use a plain rules file as generated by dh_make)


More From » packaging

 Answers
7

To make debhelper ignore the 32-bit libraries, I had to add a target for ignoring paths containing /usr/lib32:



override_dh_shlibdeps:
dh_shlibdeps --exclude=/usr/lib32


After that, the ia32-libs dependencies would not be calculated anymore. Since this target is only needed for 64-bit systems, I actually use the below snippet for the virtualgl package:



ifeq ($(DEB_BUILD_ARCH), amd64)
override_dh_shlibdeps:
dh_shlibdeps --exclude=debian/virtualgl/usr/lib32
endif


Note that the whitespace before dh is a tab.


[#43692] Sunday, May 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulild

Total Points: 239
Total Questions: 103
Total Answers: 112

Location: Papua New Guinea
Member since Thu, Jul 9, 2020
4 Years ago
;