debootstrap "make install" broken in non-Debian sytems

Bug #172645 reported by Yves Junqueira
2
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/debootstrap/scripts/
install: target `/usr/share/debootstrap/scripts/' is not a directory: No such file or directory

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)/usr/share/man/man8

It would be great if upstream added these lines back to the Makefile, to preserve its "portability" between distros.

Thank you!

Revision history for this message
Colin Watson (cjwatson) wrote :

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

Changed in debootstrap:
assignee: nobody → kamion
status: New → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

debootstrap (1.0.8) unstable; urgency=low

  [ Frans Pop ]
  * Change Priority for the udeb to extra in line with overrides file.

  [ Colin Watson ]
  * Partially revert r50134; there are people who depend on being able to
    use the "upstream" Makefile on non-Debian systems. Create necessary
    directories in the Makefile rather than relying on dh_installdirs to do
    it (LP: #172645).
  * Use ftp.us.debian.org rather than ftp.debian.org
    (http://lists.debian.org/debian-devel-announce/2007/12/msg00002.html).

  [ Anthony Towns ]
  * Add minbase variant for the sid script that only install apt (and
    its dependencies) instead of all of base. (Closes: Bug#351912,
    Bug#452654)
  * Make --second-stage not bother recalculating required and base as
    it's not needed.
  * Make --arch and other arguments accept both "--arch i386" and
    "--arch=i386" forms of specifying a parameter to avoid the
    inconsistency.

  [ Stephen R. Marenka ]
  * Allow installation of etch-m68k. (Closes: Bug#458965)

  [ Colin Watson ]
  * Add minbase variant for Ubuntu gutsy/hardy; see Anthony's change above.
  * Minor manual page formatting improvements.

 -- Colin Watson <email address hidden> Tue, 15 Jan 2008 11:19:34 +0000

Changed in debootstrap:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.