[Bug 398009] Re: global: pkg fails to configure if FQDN unknown
Felix Geyer
debfx at fobos.de
Thu Oct 20 22:16:47 UTC 2011
I've uploaded the patch to lucid- and maverick-proposed.
** Also affects: global (Ubuntu Maverick)
Importance: Undecided
Status: New
** Changed in: global (Ubuntu Lucid)
Status: New => Triaged
** Changed in: global (Ubuntu Maverick)
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/398009
Title:
global: pkg fails to configure if FQDN unknown
Status in “global” package in Ubuntu:
Fix Released
Status in “global” source package in Lucid:
Triaged
Status in “global” source package in Maverick:
Triaged
Status in “global” package in Debian:
Fix Released
Bug description:
Binary package hint: global
Package: global
Version: 5.7.1-1
The following command in the postinst fails:
hostname --fqdn
outputing this:
hostname: Unknown host
Indeed, my fqdn was unknown at the time, but that shouldn't
have caused my upgrade to Jaunty to fail.
[Impact]
This bug causes upgrades to fail. At this time, the bug has 23 duplicates, and there is a steady trickle of reports from affected users on Lucid and other old releases.
While there are no reverse dependencies, Apt reports the upgrade as
failed, and dpkg reports broken packages.
[Development Fix]
Package 5.7.1-2 contains this patch:
--- global-5.7.1/debian/global.postinst
+++ global-5.7.1/debian/global.postinst
@@ -2,7 +2,7 @@
set -e
if [ "$1" = "configure" ];
then
- HOST=`hostname --fqdn`
+ HOST=$(hostname --fqdn) || HOST="localhost"
htconfig -I -a http://${HOST}/cgi-bin/gsearch.cgi -p /var/lib/gsearch/pathdata /usr/lib/cgi-bin
fi
The only other change is 5.7.1-2 is an update of the Depends: in the
control file.
[Stable Fix]
See [Development Fix]
[Test Case]
The postinst script should succeed on a system where /etc/hostname contains an unqualified hostname.
[Regression Potential]
Fail to identify how this could be harmful. (They all say that, don't they?)
ProblemType: Package
Architecture: i386
Dependencies:
libgcc1 1:4.3.3-5ubuntu4
gcc-4.3-base 4.3.3-5ubuntu4
findutils 4.4.0-2ubuntu4
libc6 2.9-4ubuntu6
DistroRelease: Ubuntu 9.04
ErrorMessage:
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: global 5.7.1-1
SourcePackage: global
Title: package global 5.7.1-1 failed to install/upgrade:
Uname: Linux 2.6.27-14-generic i686
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/global/+bug/398009/+subscriptions
More information about the Ubuntu-sponsors
mailing list