:: Re: [DNG] Problem with debhelper
Góra strony
Delete this message
Reply to this message
Autor: Rainer Weikusat
Data:  
Dla: dng
Temat: Re: [DNG] Problem with debhelper
aitor_czr <aitor_czr@???> writes:

> Recently i debianized the latest release of bulmages (acounting and
> invoicing program) in Qt5:
>
> http://gnuinos.org/release16/?dir=devuan/pool/main/b/bulmages
>
> And i had the following issue: the resulting packages were all empty!
> This was due to the fact that the latest release is located in
> /usr/local, so i had to comment with some lines in the dh_usrlocal
> script, written in perl by Joey Hess. For example:
>
> ## doit("rmdir $tmp/usr/local");
>
> Is there any way avoid that? Is this a bug in dh?


"Use it as intended"? In case you want to create a package installing
something in /usr/local (eg, because it's a "local" package not intended
for standalone distribution), the dh_usrlocal step can be skipped:

binary:
    dh binary --before dh_usrlocal
    dh binary --after dh_usrlocal