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

Re: debhelper changed default behavior?




"Gustavo Noronha Silva (KoV)" wrote:
> 
> Hello guys,
> 
>     Since I've upgraded to woody I have experinced a interesting behavior
>     on debhelper.

Eh, so did I... I am packaging my first package, imagine my confusion
when the manuals told me that x should have happened and instead y
occured ;)
> 
>     When building the package with DESTDIR set to `pwd`/debian/tmp
>     it puts there everything... and it creates another directory
>     `pwd`/debian/$packagename wich has only docs... (usr/doc/...)

Read the debhelper man page: the build dir changed from debian/tmp to
debian/<package>... if I understood correctly the DESTDIR must reflect
this change; if you change it to debian/<pname> a tmp will not be
created and everything will be undet <pname>... AFAIK all the dh tools
expect this to be the case and move files to that location (or you can
use the dh_movefiles to move them from tmp to <pname>). I spent some
time whit this because dpkg-buildpackage expects everythjing to be under
<pname>, so you must change the DESTDIR or several files will not be
copied (and you may even find 'dir not found' errors).

> 
>     Well... seems right but when the package is created it has not
>     anyother thing on it other than docs... so I changed the
>     DESTDIR variable to match `pwd`/debian/$packagename to see
>     what'd happen... well the package is all right... what's up?

Damn, I wrote without reading the whole text :) Well, as I said all the
dh commands now install under <pname>, and that was what was happening,
dh_installdocs was working under <pname> but it was built under tmp
because of DESTDIR. 

>     Has the defaults changed for that behavior or is it a bug?
> 

It's a change.

Note: I'm a prospective maintaniner so don't put too much confidence in
what I am saying; I believe I'm right on this, still...

best regards,

fsm
--
Frederico Serrano Muñoz		GNU: http://www.gnu.org
fsmunoz@sdf.lonestar.org	Debian: http://www.debian.org

SDF - Public Access Unix Systems - http://sdf.lonestar.org



Reply to: