Ahmad Khalifa
2024-11-22 11:10:01 UTC
Hi,
I'm trying to see if I can handle packaging a utility but I'm looking
for some example packages to help me figure a few things out:
1. Package installs bin+lib+headers, typically this would be 3 packages
(tool, libtool, libtool-dev), but could it be packaged as 1 with all
three parts?
I don't see a rule prohibiting that, but I can't find any clean examples
either. Does this happen or is it allowed?
2. Upstream has a .service file (outside d/) that is installed through a
make target. How can I get dpkg-buildpackage to spot that and enable the
service? It seems to ignore .service files outside debian/ and trying a
rule "override_dh_installsystemd" doesn't generate any triggers.
Does this mean I need a postinst file? Any example packages would be
appreciated
3. Upstream tests have kernel-level tests with bpf objects that need to
be run as root. I'm not sure running those tests in a chroot isolates
the host kernel from them.
Should those be switched off? If not, any examples of
"Rules-requires-root: binary-targets" and how to elevate privileges for
tests only would really help.
For reference, it's about this RFP:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087756
I'm trying to see if I can handle packaging a utility but I'm looking
for some example packages to help me figure a few things out:
1. Package installs bin+lib+headers, typically this would be 3 packages
(tool, libtool, libtool-dev), but could it be packaged as 1 with all
three parts?
I don't see a rule prohibiting that, but I can't find any clean examples
either. Does this happen or is it allowed?
2. Upstream has a .service file (outside d/) that is installed through a
make target. How can I get dpkg-buildpackage to spot that and enable the
service? It seems to ignore .service files outside debian/ and trying a
rule "override_dh_installsystemd" doesn't generate any triggers.
Does this mean I need a postinst file? Any example packages would be
appreciated
3. Upstream tests have kernel-level tests with bpf objects that need to
be run as root. I'm not sure running those tests in a chroot isolates
the host kernel from them.
Should those be switched off? If not, any examples of
"Rules-requires-root: binary-targets" and how to elevate privileges for
tests only would really help.
For reference, it's about this RFP:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087756
--
Regards,
Ahmad
Regards,
Ahmad