debootstrap "make install" broken in non-Debian sytems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debootstrap (Ubuntu) |
Fix Released
|
Undecided
|
Colin Watson |
Bug Description
Binary package hint: debootstrap
(Please note this is an upstream bug. But I could not find a better place to report it. )
This bug happens when using the upstream tarball from Centos5, for example, and we try to run "make;make install"
install -o root -g root -m 0644 scripts/debian/* /usr/share/
install: target `/usr/share/
In debootstrap 1.0.7, the new Makefile depends on Debian tools to work properly. As you probably know, many of us use debootstrap from a non-Debian/Ubuntu system. In these cases, it's very convenient to just "make ; make install" it. But this won't work anymore, because the new Makefile requires 'dh_installdirs' to be executed beforehand. There's even a comment in the file:
# Dirs are created by dh_installdirs
The (working) 1.0.6 Makefile had this:
mkdir -p $(DSDIR)/scripts
mkdir -p $(DESTDIR)/usr/sbin
mkdir -p $(DESTDIR)
It would be great if upstream added these lines back to the Makefile, to preserve its "portability" between distros.
Thank you!
I agree. I've committed the appropriate fix upstream for 1.0.8.
Since Debian is upstream for debootstrap, you can file upstream bugs in the Debian bug tracking system in future, using "Package: debootstrap".