Bug#377138: [Pbuilder-maint] Bug#377138: pbuilder can't work if env does not contain HOSTNAME

LI Daobing lidaobing at gmail.com
Fri Jul 7 19:14:08 UTC 2006


On 7/7/06, Junichi Uekawa <dancer at netfort.gr.jp> wrote:
>
>
>
>
> Can you try getting the output of the following commands?
>
> which hostname
> strace hostname -f
> dpkg -S hostname
>
>
>
> I really you have a broken network setup of some sort.
>
>
$ which hostname
/bin/hostname
$ strace hostname -f
execve("/bin/hostname", ["hostname", "-f"], [/* 39 vars */]) = 0
uname({sys="Linux", node="ldblab", ...}) = 0
brk(0)                                  = 0x503000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b61172ad000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=96536, ...}) = 0
mmap(NULL, 96536, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b61172af000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\305"..., 640) = 640
lseek(3, 624, SEEK_SET)                 = 624
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0"..., 32) = 32
fstat(3, {st_mode=S_IFREG|0755, st_size=1295640, ...}) = 0
mmap(NULL, 2354344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b61173ae000
mprotect(0x2b61174d2000, 1158312, PROT_NONE) = 0
mmap(0x2b61175d1000, 98304, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x123000) = 0x2b61175d1000
mmap(0x2b61175e9000, 15528, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b61175e9000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b61175ed000
mprotect(0x2b61175d1000, 86016, PROT_READ) = 0
arch_prctl(ARCH_SET_FS, 0x2b61175ed6d0) = 0
munmap(0x2b61172af000, 96536)           = 0
brk(0)                                  = 0x503000
brk(0x524000)                           = 0x524000
uname({sys="Linux", node="ldblab", ...}) = 0
getpid()                                = 32577
open("/etc/resolv.conf", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=25, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b61172af000
read(3, "nameserver 219.223.222.2\n", 4096) = 25
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b61172af000, 4096)            = 0
uname({sys="Linux", node="ldblab", ...}) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1
ENOENT (No such file or directory)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1
ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b61172af000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b61172af000, 4096)            = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=96536, ...}) = 0
mmap(NULL, 96536, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b61172af000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000#\0\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0644, st_size=47472, ...}) = 0
mmap(NULL, 1095304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b61175ee000
mprotect(0x2b61175f9000, 1050248, PROT_NONE) = 0
mmap(0x2b61176f8000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x2b61176f8000
close(3)                                = 0
munmap(0x2b61172af000, 96536)           = 0
open("/etc/host.conf", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b61172af000
read(3, "order hosts,bind\nmulti on\n", 4096) = 26
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b61172af000, 4096)            = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=5413, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b61172af000
read(3, "### etherconf DEBCONF AREA. DO N"..., 4096) = 4096
read(3, ".168.1.184 sz184\n192.168.1.185 s"..., 4096) = 1317
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b61172af000, 4096)            = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b61172af000
write(1, "localhost\n", 10localhost
)             = 10
munmap(0x2b61172af000, 4096)            = 0
exit_group(0)                           = ?
Process 32577 detached
$ dpkg -S hostname
gettext: /usr/lib/gettext/hostname
hostname: /bin/hostname
php-doc: /usr/share/doc/php-doc/html/function.fbsql-hostname.html
perl-modules: /usr/share/perl/5.8.8/hostname.pl
hostname: /usr/share/doc/hostname/copyright
libssl-dev: /usr/share/man/man3/BIO_get_conn_hostname.3ssl.gz
kdelibs4c2a: /usr/share/man/man1/kdontchangethehostname.1.gz
hostname: /usr/share/doc/hostname
hostname: /usr/share/man/man1/hostname.1.gz
libssl-dev: /usr/share/man/man3/BIO_set_conn_hostname.3ssl.gz
kdelibs4c2a: /usr/bin/kdontchangethehostname
hostname: /usr/share/doc/hostname/changelog.gz
initscripts: /etc/init.d/hostname.sh
$




-- 
LI Daobing




More information about the Pbuilder-maint mailing list