From f66ae9d3761820cc553b9510a17572d13b37c5b0 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Oct 2011 21:36:24 +0100 Subject: Use native random server * debian/control, debian/local/setup-translators: Use native random server set on /dev/u?random-hurd instead of random-egd on /dev/u?random. * debian/hurd.{postinst,prerm}: Handle alternative for /dev/u?random, default to u?random-hurd. * debian/hurd.lintian-overrides: Override warnings about the /dev/u?random mangling. * debian/copyright: Fix copyright notice. * debian/control: - Drop article from synopsis. - Tighten hurd-dev dependency on hurd to the same version. --- debian/changelog | 10 +++++++++- debian/control | 16 ++++++++-------- debian/copyright | 4 +--- debian/hurd.lintian-overrides | 3 +++ debian/hurd.postinst | 4 ++++ debian/hurd.prerm | 8 ++++++++ debian/local/setup-translators | 4 ++-- 7 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 debian/hurd.prerm diff --git a/debian/changelog b/debian/changelog index 8c7dfd90..44c25c15 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,11 +14,19 @@ hurd (20111030-1) UNRELEASED; urgency=low /tmp, as the latter is world-writable. * patches/libpthread_procfs.patch: Add random server. * debian/control, debian/local/setup-translators: Use native random server - instead of random-egd. + set on /dev/u?random-hurd instead of random-egd on /dev/u?random. + * debian/hurd.{postinst,prerm}: Handle alternative for /dev/u?random, + default to u?random-hurd. + * debian/hurd.lintian-overrides: Override warnings about the /dev/u?random + mangling. * debian/local/cdrom.h: Add header for basic CD-ROM ioctl support. * debian/patches/libpthread_globsigdisp.patch,posix-sigcodes.patch: New patches from Jeremie Koenig to enable global signal support. * debian/patches/libpthread_sigmask.patch: Update to global signal support. + * debian/copyright: Fix copyright notice. + * debian/control: + - Drop article from synopsis. + - Tighten hurd-dev dependency on hurd to the same version. -- Samuel Thibault Thu, 18 Aug 2011 01:15:04 +0000 diff --git a/debian/control b/debian/control index 969dc9e9..96b4ae16 100644 --- a/debian/control +++ b/debian/control @@ -19,11 +19,11 @@ Essential: yes Depends: ${misc:Depends}, sysv-rc, ${shlibs:Depends} Breaks: gnumach (<< 2:1.3.99.dfsg.cvs20070526-1), libc0.3 (<< 2.11.2-12) Suggests: hurd-doc -Provides: makedev, login, random-egd +Provides: makedev, login Replaces: makedev, login, random-egd -Conflicts: makedev, login, random-egd +Conflicts: makedev, login Architecture: hurd-i386 -Description: The GNU Hurd +Description: GNU Hurd This is the GNU Hurd package. It contains essential system software and libraries. @@ -31,11 +31,11 @@ Package: hurd-dev Priority: standard Section: libdevel Architecture: hurd-i386 -Depends: ${misc:Depends}, hurd +Depends: ${misc:Depends}, hurd (= ${binary:Version}) Provides: libsem-dev Replaces: libsem-dev Conflicts: libsem-dev -Description: The GNU Hurd (development files) +Description: GNU Hurd (development files) This package includes the header files and the static libraries. Package: hurd-dbg @@ -43,7 +43,7 @@ Priority: extra Section: debug Architecture: hurd-i386 Depends: ${misc:Depends}, hurd (= ${binary:Version}) -Description: The GNU Hurd (debugging files) +Description: GNU Hurd (debugging files) This package includes the unstripped binaries and libraries. Package: hurd-doc @@ -52,7 +52,7 @@ Section: doc Architecture: all Depends: ${misc:Depends} Suggests: hurd (>= ${source:Version}) -Description: The GNU Hurd manual +Description: GNU Hurd manual This package includes the manual in info and HTML format. Package: hurd-udeb @@ -62,6 +62,6 @@ Section: debian-installer Architecture: hurd-i386 Depends: ${misc:Depends} Provides: hurd, ext2-modules, fat-modules, ipv6-modules, isofs-modules, loop-modules, mouse-modules, nfs-modules, socket-modules, ufs-modules -Description: The GNU Hurd - udeb +Description: GNU Hurd - udeb This is the GNU Hurd udeb package. It contains essential system software and libraries. diff --git a/debian/copyright b/debian/copyright index e222a536..f624df34 100644 --- a/debian/copyright +++ b/debian/copyright @@ -6,9 +6,7 @@ reached via . Sources are available from http://savannah.gnu.org/projects/hurd -Copyright statement: - -The GNU Hurd is copyrighted by the Free Software Foundation, Inc. +Copyright 1992-2011 the Free Software Foundation, Inc. Note that the libraries distributed with the GNU Hurd are placed under the standard GNU General Public License (*not* the Library General diff --git a/debian/hurd.lintian-overrides b/debian/hurd.lintian-overrides index 3404bed9..6ab5a372 100644 --- a/debian/hurd.lintian-overrides +++ b/debian/hurd.lintian-overrides @@ -4,3 +4,6 @@ setuid-binary bin/ids 4755 root/root setuid-binary bin/login 4755 root/root setuid-binary bin/ps-hurd 4755 root/root setuid-binary usr/bin/w-hurd 4755 root/root +possibly-insecure-handling-of-tmp-files-in-maintainer-script postinst:65 +maintainer-script-removes-device-files postinst:69 +maintainer-script-removes-device-files postinst:71 diff --git a/debian/hurd.postinst b/debian/hurd.postinst index ba855fa9..f796a39a 100644 --- a/debian/hurd.postinst +++ b/debian/hurd.postinst @@ -61,8 +61,12 @@ if [ "$1" = configure ] && [ "$2" ]; then then # old random-egd translator, remove settrans -go /dev/random + rm -f /dev/random settrans -go /dev/urandom + rm -f /dev/urandom fi /usr/lib/hurd/setup-translators -K + update-alternatives --install /dev/random random /dev/random-hurd 10 \ + --slave /dev/urandom urandom /dev/urandom-hurd fi diff --git a/debian/hurd.prerm b/debian/hurd.prerm new file mode 100644 index 00000000..78105cdc --- /dev/null +++ b/debian/hurd.prerm @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +if [ "$1" = remove ]; then + update-alternatives --remove random /dev/random-hurd +fi + +#DEBHELPER# diff --git a/debian/local/setup-translators b/debian/local/setup-translators index 554944f6..cd1a78d7 100755 --- a/debian/local/setup-translators +++ b/debian/local/setup-translators @@ -146,8 +146,8 @@ else md ptyq md lprX 0123 md comX 0123 - st random 'random --seed-file /var/run/random-seed --fast' random - st urandom 'random --seed-file /var/run/random-seed --fast' urandom + st random-hurd 'random --seed-file /var/run/random-seed --fast' random + st urandom-hurd 'random --seed-file /var/run/random-seed --fast' urandom fi st kbd 'symlink cons/kbd' kbd -- cgit v1.2.3 From 02684ea53390cc23da06aa99cf67fc2cc7a90ba8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Oct 2011 21:39:37 +0100 Subject: close bug about perl sha1 module --- debian/changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/changelog b/debian/changelog index 44c25c15..f3416703 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,7 @@ hurd (20111030-1) UNRELEASED; urgency=low * patches/libpthread_procfs.patch: Add random server. * debian/control, debian/local/setup-translators: Use native random server set on /dev/u?random-hurd instead of random-egd on /dev/u?random. + (Closes: bug#637231) * debian/hurd.{postinst,prerm}: Handle alternative for /dev/u?random, default to u?random-hurd. * debian/hurd.lintian-overrides: Override warnings about the /dev/u?random -- cgit v1.2.3 From ce7fb7fffac216476bb287950d463328c34849d7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Oct 2011 23:26:12 +0100 Subject: debian/local/dmesg: Add script which cat /var/log/dmesg. --- debian/changelog | 1 + debian/hurd.install | 1 + debian/local/dmesg | 2 ++ 3 files changed, 4 insertions(+) create mode 100755 debian/local/dmesg diff --git a/debian/changelog b/debian/changelog index f3416703..3495947a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -28,6 +28,7 @@ hurd (20111030-1) UNRELEASED; urgency=low * debian/control: - Drop article from synopsis. - Tighten hurd-dev dependency on hurd to the same version. + * debian/local/dmesg: Add script which cat /var/log/dmesg. -- Samuel Thibault Thu, 18 Aug 2011 01:15:04 +0000 diff --git a/debian/hurd.install b/debian/hurd.install index 63e8d02e..0c14f6e8 100644 --- a/debian/hurd.install +++ b/debian/hurd.install @@ -1,4 +1,5 @@ debian/local/setup-translators usr/lib/hurd +debian/local/dmesg bin debian/tmp/lib/*.so.* debian/tmp/lib/hurd/console/*.so.* usr/lib/hurd/console debian/tmp/hurd/* diff --git a/debian/local/dmesg b/debian/local/dmesg new file mode 100755 index 00000000..0310d0c2 --- /dev/null +++ b/debian/local/dmesg @@ -0,0 +1,2 @@ +#!/bin/sh +exec cat /var/log/dmesg -- cgit v1.2.3