[pkg-fso-maint] packing udev rules

Josua Mayer josua.mayer97 at gmail.com
Sun Sep 25 12:30:12 UTC 2016


Hi Jonas,


Am 25.09.2016 um 13:56 schrieb Jonas Smedegaard:
> Hi Joshua,
>
> Quoting Josua Mayer (2016-09-25 13:31:15)
>> This time I would like some opinions on the technical side of packing 
>> udev rules (for the letux-rules package): As I see it there are at 
>> least 2 options on how to copy them to debian/<package-dir>:
>>
>> a) cp by hand (either in Makefile, or debian/rules)
> [...]
>> b) let debhelper do it
> [...]
>> Now do you have any wisdom to share which approach to pick?
> Do both!
>
> Create a system-agnostic makefile, usable both for distributors and 
> directly on a system.  Have the makefile do finalizing stuff too
This suggests that the Makefile has control over any files that are to
be part of the final deb.
Doesn't this contradict approach b which places special named files in
debian/?
>  (for C 
> code that would include stripping binaries, here you mention some 
> trigger calls), but allow for either skipping those (by using granular 
> make targets) or suppressing them (e.g. by putting the calls in a 
> variable that can be overridden at the commandline with something no-op 
> like /bin/true).
for udev rules? Should I implement a variable to skip rules files at
install time?
>
> ...and then in the debian dir make use of the Makefile to install in a 
> prelimiary dir, and have debhelper move it from there to another dir 
This is already happening, my debian/rules is empty but for:
%:
        dh $@
So debhelper calls make install on my Makefile with
DESTDIR=debian/letux-rules.
Only when debian/rules lists multiple packages DESTDIR becomes debian/tmp.
> specific to the binary package (or multiple dirs, if there are multiple 
> binary packages).
>
> That's the proper way to do it.
>
>
>  - Jonas
>
br
Josua Mayer



More information about the pkg-fso-maint mailing list