Your message dated Sun, 26 Sep 2010 09:17:18 +0000
with message-id <e1oznme-00023i...@franck.debian.org>
and subject line Bug#596373: fixed in varnish 2.1.3-8
has caused the Debian Bug report #596373,
regarding varnish postinst script fails on GNU/kFreeBSD
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
596373: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596373
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: varnish
Version: 2.1.2-1
Severity: important
Tags: patch

*** Please type your report below this line ***

The postinst script copies /proc/sys/kernel/random/uuid to /etc/varnish/secret,
but this proc entry isn't available on GNU/kFreeBSD:

# dpkg --configure varnish
Setting up varnish (2.1.2-1) ...
install: cannot stat `/proc/sys/kernel/random/uuid': No such file or directory
dpkg: error processing varnish (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 varnish

Here is a suggestion which generates a random secret using tools found in
coreutils, and without relying on /proc entries:


--- /var/lib/dpkg/info/varnish.postinst.orig    2010-09-10 21:16:00.000000000 
+0200
+++ /var/lib/dpkg/info/varnish.postinst 2010-09-10 21:27:41.000000000 +0200
@@ -38,7 +38,9 @@
 
 varnish_create_secret() {
        if ! [ -f "${secret_file}" ]; then
-               install -m 0600 /proc/sys/kernel/random/uuid "${secret_file}"
+               touch "${secret_file}" && \
+               chmod 0600 "${secret_file}" && \
+               dd if=/dev/urandom count=1 bs=128 2>/dev/null | tr -dc 
"A-Za-z0-9" > "${secret_file}"
        fi
 }
 

(tested and works for me).

Cheers,
Marc

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (20, 
'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages varnish depends on:
ii  adduser                   3.112          add and remove users and groups
ii  gcc                       4:4.4.4-2      The GNU C compiler
ii  libc0.1                   2.11.2-2       Embedded GNU C Library: Shared lib
ii  libc0.1-dev [libc6-dev]   2.11.2-2       Embedded GNU C Library: Developmen
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand
ii  libvarnish1               2.1.2-1        shared libraries for Varnish

varnish recommends no packages.

varnish suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: varnish
Source-Version: 2.1.3-8

We believe that the bug you reported is fixed in the latest version of
varnish, which is due to be installed in the Debian FTP archive:

libvarnish-dev_2.1.3-8_amd64.deb
  to main/v/varnish/libvarnish-dev_2.1.3-8_amd64.deb
libvarnish1_2.1.3-8_amd64.deb
  to main/v/varnish/libvarnish1_2.1.3-8_amd64.deb
varnish_2.1.3-8.debian.tar.gz
  to main/v/varnish/varnish_2.1.3-8.debian.tar.gz
varnish_2.1.3-8.dsc
  to main/v/varnish/varnish_2.1.3-8.dsc
varnish_2.1.3-8_amd64.deb
  to main/v/varnish/varnish_2.1.3-8_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 596...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stig Sandbeck Mathisen <s...@debian.org> (supplier of updated varnish package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 24 Sep 2010 17:51:20 +0200
Source: varnish
Binary: varnish libvarnish1 libvarnish-dev
Architecture: source amd64
Version: 2.1.3-8
Distribution: unstable
Urgency: high
Maintainer: Varnish Package Maintainers 
<pkg-varnish-de...@lists.alioth.debian.org>
Changed-By: Stig Sandbeck Mathisen <s...@debian.org>
Description: 
 libvarnish-dev - development files for Varnish
 libvarnish1 - shared libraries for Varnish
 varnish    - a state-of-the-art, high-performance HTTP accelerator
Closes: 596373
Changes: 
 varnish (2.1.3-8) unstable; urgency=high
 .
   * Fix random secret creation on non-Linux kernels (Closes: #596373)
   * Urgency "high" due to FTBFS RC bug during squeeze freeze
Checksums-Sha1: 
 6d3adc8b2b7baac525c64512ebf312e6105dda65 1465 varnish_2.1.3-8.dsc
 2695104f43fd5163b130affbaccf11d8f9859f48 15524 varnish_2.1.3-8.debian.tar.gz
 5049e0ca4540e85e0724cd36c808efc79439cd6d 332078 varnish_2.1.3-8_amd64.deb
 8aaedee217e83366d8d83c7c27101cc21a7b347b 92754 libvarnish1_2.1.3-8_amd64.deb
 e8d32e28c79f64c51444af809a36ed74e37b8a7d 110646 
libvarnish-dev_2.1.3-8_amd64.deb
Checksums-Sha256: 
 1d0f687972c91148b4dd0d6b1cdffc3d864d6f2b195a9140a09b154ce4794cf1 1465 
varnish_2.1.3-8.dsc
 01967e1db49957d6c66a138ad53edac8adb6aeab8c87df3404cf335a91d897b7 15524 
varnish_2.1.3-8.debian.tar.gz
 f9f0f9d79cc8864806565d21286779d8a0dcb882af5a849982a58fa0673cbe51 332078 
varnish_2.1.3-8_amd64.deb
 39bd2721b333af98d6d634ffe61dbfd97a526024e3c51588cbe8b628a76ba553 92754 
libvarnish1_2.1.3-8_amd64.deb
 b799960e68e7d98aa795d86f6df6c59fab7716ef6593373b2547762512b12655 110646 
libvarnish-dev_2.1.3-8_amd64.deb
Files: 
 0bb6937701971d3c9b902bfe2b2db673 1465 web optional varnish_2.1.3-8.dsc
 39b2c1234029fa0c0aa8db59928c9394 15524 web optional 
varnish_2.1.3-8.debian.tar.gz
 7cc718c7eb6c952e6875a383137c26dd 332078 web optional varnish_2.1.3-8_amd64.deb
 dce6a6249449b1c4dfe327557ffc1353 92754 libs optional 
libvarnish1_2.1.3-8_amd64.deb
 cdec8104c0474514b048d18f0287fe33 110646 libdevel optional 
libvarnish-dev_2.1.3-8_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyfDmUACgkQQONU2fom4u4FcgCgsMMFpt7dtVoBWQFPWoUxhCii
J3kAnj2/dIIwGxx5KXpuziCKodIsWWZ3
=CUkU
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to