Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1062937

Bug#990278: /etc/hosts: Reverse lookup on 127.0.0.1 returns hostname instead of localhost

From Ariel D'Alessandro <ariel.dalessandro@collabora.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#990278: /etc/hosts: Reverse lookup on 127.0.0.1 returns hostname instead of localhost
Date 2021-06-24 15:00 +0200
Message-ID <Ctx7z-36D-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Package: obs-build
Version: 20190710-1
Severity: normal
Tags: patch upstream

Dear Maintainer,

Building spymemcached Debian package in an OBS instance, FTBFS because a
test expects a reverse lookup on 127.0.0.1 to be localhost. See:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990196

OBS configuration sets first entry in /etc/hosts to 127.0.0.1 $hostname.
See upstream configuration:
https://github.com/openSUSE/obs-build/blob/master/init_buildsystem#L1236

Although spymemcached test seems to be adding an unreasonable constraint
to the building host in this case, it's not clear why OBS is configured
this way, even having this note on it:

    # this makes a reverse lookup on 127.0.0.1 return the host name,
    # which is bad, but 127.0.0.2 does not work on all unix systems

Is there any reason to have this hosts configuration?

If there's not, please find a follow up patch e-mail in this bug report.

Regards,
Ariel D'Alessandro

-- System Information:
Debian Release: 11.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-7-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages obs-build depends on:
ii  debootstrap        1.0.123
ii  libarchive-tools   3.4.3-2+b1
ii  perl               5.32.1-4
ii  python3            3.9.2-3
ii  python3-websocket  0.57.0-1
ii  rpm                4.16.1.2+dfsg1-0.4
ii  sudo               1.9.5p2-3

Versions of packages obs-build recommends:
ii  e2fsprogs             1.46.2-1
ii  libcrypt-ssleay-perl  0.73.06-1+b3
ii  osc                   0.169.1-1
ii  rpm2cpio              4.16.1.2+dfsg1-0.4
ii  xzdec                 5.2.5-2

Versions of packages obs-build suggests:
pn  btrfs-progs  <none>
pn  xfsprogs     <none>

-- no debconf information

Back to linux.debian.bugs.dist | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Bug#990278: /etc/hosts: Reverse lookup on 127.0.0.1 returns hostname instead of localhost Ariel D'Alessandro <ariel.dalessandro@collabora.com> - 2021-06-24 15:00 +0200
  Bug#990278: [PATCH] init_buildsystem: Move hostname ip entry to the end of /etc/hosts Ariel D'Alessandro <ariel.dalessandro@collabora.com> - 2021-06-24 15:20 +0200

csiph-web