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

Deb packaing: Placing binaries in special directory root?



Hello,

I need to build a mapserver 7 deb package to be installed on Ubuntu 24.

Ubuntu 24 ships mapserver 8. My mapserver 7 package's binaries should still be called "mapserv" etc, not "mapserv7". So I want the binaries of my deb package to live in /usr/mapserver7, such that "mapserv" exists as /usr/mapserver7/bin/mapserv.

However, I can't get it to work.

My rules and control files are inspired by Ubuntu 22's mapserver package:
https://troels.arvin.dk/gis/mapserver/7/rules
https://troels.arvin.dk/gis/mapserver/7/control

When I try to build my package, compilation goes well, but in the end, package building fails like this:

dh_install: warning: Cannot find (any matches for) "/usr/bin/shptree" (tried in ., debian/tmp)
dh_install: warning: mapserver-bin missing files: /usr/bin/shptree
dh_install: error: missing files, aborting
make: *** [debian/rules:31: binary] Error 255

More details about the error message: https://troels.arvin.dk/gis/mapserver/7/dpkg-buildpackage_error.txt

I'm guessing my rules files needs to be changed somehow. Can someone guide me?

--
Kind regards,
Troels Arvin, Copenhagen



Reply to: