From 28a6a9870dfc10a176a1149153bfd75958ee1758 Mon Sep 17 00:00:00 2001 From: Jeremie Koenig Date: Thu, 20 Jan 2011 00:51:41 +0100 Subject: Hurd support - Use the newer setup-translators script and firmlink $TARGET/{dev,servers} in setup_devices_hurd; - Don't attempt to build devices.tar.gz, which is not needed. --- Makefile | 7 +++++++ debian/changelog | 8 +++++++- debian/control | 2 +- functions | 18 +++++------------- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index b483020..a389191 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,12 @@ VERSION := $(shell sed 's/.*(\(.*\)).*/\1/; q' debian/changelog) MAKEDEV := /sbin/MAKEDEV +ifneq ($(shell uname),GNU) all: devices.tar.gz +else +all: +endif + clean: rm -f devices.tar.gz rm -rf dev @@ -20,7 +25,9 @@ install: chown root:root $(DESTDIR)/usr/sbin/debootstrap chmod 0755 $(DESTDIR)/usr/sbin/debootstrap +ifneq ($(shell uname),GNU) install -o root -g root -m 0644 devices.tar.gz $(DSDIR)/ +endif devices.tar.gz: rm -rf dev diff --git a/debian/changelog b/debian/changelog index bfb6e1b..c718c98 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,7 +4,13 @@ debootstrap (1.0.27) UNRELEASED; urgency=low * Fix bug and typo on --private-key Patch by Jonathan Klee. - -- Miguel Figueiredo Tue, 04 Jan 2011 21:16:28 +0000 + [ Jeremie Koenig ] + * Hurd support: + - Use the newer setup-translators script and firmlink + $TARGET/{dev,servers} in setup_devices_hurd; + - Don't attempt to build devices.tar.gz, which is not needed. + + -- Samuel Thibault Thu, 20 Jan 2011 00:50:35 +0100 debootstrap (1.0.26) unstable; urgency=low diff --git a/debian/control b/debian/control index 1e69716..6bb9ec9 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: admin Priority: extra Maintainer: Debian Install System Team Uploaders: Anthony Towns , Joey Hess , Frans Pop , Junichi Uekawa , Colin Watson -Build-Depends: debhelper (>= 7.0.50), makedev (>= 2.3.1-69) +Build-Depends: debhelper (>= 7.0.50), makedev (>= 2.3.1-69) [!hurd-i386] Standards-Version: 3.9.1 Vcs-Browser: http://git.debian.org/?p=d-i/debootstrap.git Vcs-Git: git://git.debian.org/d-i/debootstrap.git diff --git a/functions b/functions index 07b56d2..d73c570 100644 --- a/functions +++ b/functions @@ -978,19 +978,11 @@ setup_devices () { } setup_devices_hurd () { - mkdir -p "$TARGET/servers/socket" - /bin/settrans -cfk "$TARGET/servers/socket/1" /hurd/pflocal - /bin/settrans -cf "$TARGET/servers/socket/2" /hurd/pfinet - /bin/settrans -cfk "$TARGET/servers/exec" /hurd/exec - /bin/settrans -cf "$TARGET/servers/crash-suspend" /hurd/crash --suspend - /bin/settrans -cf "$TARGET/servers/crash-kill" /hurd/crash --kill - /bin/settrans -cf "$TARGET/servers/crash-dump-core" /hurd/crash --dump-core - /bin/settrans -cf "$TARGET/servers/password" /hurd/password - /bin/settrans -cf "$TARGET/servers/default-pager" /hurd/proxy-defpager - ln -fs crash-kill "$TARGET/servers/crash" - ln -fs 1 "$TARGET/servers/socket/local" - ln -fs 2 "$TARGET/servers/socket/inet" - (cd "$TARGET/dev"; /sbin/MAKEDEV fd std ptyp ptyq vcs tty1 tty2 tty3 tty4 tty5 tty6) + # Use the setup-translators of the hurd package, and firmlink + # $TARGET/{dev,servers} to the system ones. + in_target /usr/lib/hurd/setup-translators -k + settrans -a $TARGET/dev /hurd/firmlink /dev + settrans -a $TARGET/servers /hurd/firmlink /servers } setup_devices_fakechroot () { -- cgit v0.12