Unable to set os-based dependencies on Debian-based builds
Repost from buildservice ML : Hello, Currently doing a official upstream packaging for nnn [1] on OBS [2], I built a Debian file tree (with .rules, .control...), but I encountered a problem : The nnn package has two dependencies, which has totally different name depending on the OS version Adding an override for the debian.control variables in debian.rules like i would do on any Debian-based system : derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no") override_dh_gencontrol: ifeq ($(derives_from_ubuntu),yes) dh_gencontrol -- '-Vdist:Depends = libncursesw6 | libreadline8' else dh_gencontrol -- '-Vdist:Depends = libncursesw6 | readline-common' endif Would make osc yell a dpkg-deb: error: failed to open package info file 'debian/nnn/DEBIAN/control' for reading: No such file or directory (full log: [3]) But it does build fine with only one OS in mind Is there a way to fix this? [1] https://github.com/jarun/nnn [2] https://build.opensuse.org/package/show/home:stig124:nnn/nnn [3] https://paste.opensuse.org/94498057
On Wed, Jun 02, 2021 at 04:07:49PM +0200, Nicolas FORMICHELLA wrote:
dpkg-deb: error: failed to open package info file 'debian/nnn/DEBIAN/control' for reading: No such file or directory But it does build fine with only one OS in mind
[2] https://build.opensuse.org/package/show/home:stig124:nnn/nnn [3] https://paste.opensuse.org/94498057
If you could commit the not working things into our package, then we can see exactly what you did and how it's not working. Without the sources, we just have the results and they tell me that the expected file is not there. - Adam
participants (2)
-
Adam Majer
-
Nicolas FORMICHELLA