On 7/8/06, Junichi Uekawa <[EMAIL PROTECTED]> wrote:
Hi,

> > I mean, please re-send
> >
> >         strace hostname -f
> >
> > that fails.
> >

> $  strace hostname -f
> execve("/bin/hostname", ["hostname", "-f"], [/* 40 vars */]) = 0
[snip]

> write(1, "localhost\n", 10localhost
> )             = 10
> munmap(0x2b6a993a9000, 4096)            = 0
> exit_group(0)                           = ?


This is succeeding, with an output of 'localhost'.

I want something that fails.

Can you do within a script session:

$ unset HOSTNAME
$ env
$ strace hostname -f
$ ltrace hostname -f


Hello,

now I can't reproduce this bug, pbuilder does not report error even
when env does not contain HOSTNAME[1]. I don't know why.

anyway I run your script[2], and the result in attachment.

feel free to close bug, because now I don't know how to reproduce it.

[1]
$ env | grep HOSTNAME
$ sudo pbuilder update
W: /home/nichloas/.pbuilderrc does not exist
Upgrading for distribution sid
Building the build Environment
-> extracting base tarball [/var/cache/pbuilder/base.tgz]
-> creating local configuration
-> copying local configuration
-> mounting /proc filesystem
-> mounting /dev/pts filesystem
-> policy-rc.d already exists
Refreshing the base.tgz
-> upgrading packages
Get:1 http://debian.ustc.edu.cn sid Release.gpg [189B]
Hit http://debian.ustc.edu.cn sid Release
Err http://debian.ustc.edu.cn sid Release

Get:2 http://debian.ustc.edu.cn sid Release [38.3kB]
Ign http://debian.ustc.edu.cn sid Release
Hit http://debian.ustc.edu.cn sid/main Packages/DiffIndex
Fetched 38.5kB in 5s (7055B/s)
Reading package lists... Done
W: GPG error: http://debian.ustc.edu.cn sid Release: Could not execute
'/usr/bin/gpgv' to verify signature (is gnupg installed?)
W: You may want to run apt-get update to correct these problems
dpkg - warning: ignoring request to remove lilo which isn't installed.
Obtaining the cached apt archive contents
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
build-essential is already the newest version.
dpkg-dev is already the newest version.
apt is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Copying back the cached apt archive contents
-> unmounting dev/pts filesystem
-> unmounting proc filesystem
-> creating base tarball [/var/cache/pbuilder/base.tgz]
-> cleaning the build env
   -> removing directory /var/cache/pbuilder/build//8166 and its subdirectories
$

[2]
$ unset HOSTNAME
$ env > 1.log
$ strace hostname -f >> 1.log 2>&1
$ ltrace hostname -f >> 1.log 2>&1



--
LI Daobing

Attachment: 1.log
Description: Binary data

Reply via email to