[pkg-fso-maint] packing udev rules

Jonas Smedegaard dr at jones.dk
Sun Sep 25 20:03:01 UTC 2016


Quoting Josua Mayer (2016-09-25 14:30:12)
> Am 25.09.2016 um 13:56 schrieb Jonas Smedegaard:
> > 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.

As upstream code author, you should provide routines to build and 
install your work, as ńecessary.

Best way to do that is most often to write a makefile with "build" and 
"install" targets, and have a default (i.e. topmost) "all" target 
depending on both.


> Doesn't this contradict approach b which places special named files in 
> debian/?

As package maintainer - which is a *separate* role from upstream author 
- even when you like in this case hold both roles, you should provide 
routines to get upstream code fit Debian Policy.

Best way to do that is most often to first execute the upstream build 
and install targets with appropriate arguments, and then afterwards 
adapt the "installed" code for Debian.

Adaptation may involve moving some files temporarily into the debian/ 
dir, or tell some dehelper tools where to pick up some files at unusual 
places.


> > ...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.

Sorry, I cannot help you with use of the short-form "dh" sequencer 
specifically - I use cdbs as sequencer myself, calling the underlying 
dh_* helper tools in a slightly different way.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20160925/877fab13/attachment.sig>


More information about the pkg-fso-maint mailing list