Unable to set os-based dependencies on Debian-based builds
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
participants (1)
-
Nicolas FORMICHELLA