Hi Neil,

Neil Williams <codeh...@debian.org>:
> Erik Schanze <schan...@gmx.de> wrote:
> > Please consider to include the changes.
>
> Unfortunately, I cannot do that as the changes would be lost when the
> manpages are next generated.
>
This diff was not intended as directly appliable patch, just to show my 
points.

> Please provide patches for the relevant
> source files.
You are the maintainer, so please find the relevent source changes by 
yourselfes.

> +sh # echo "127\&.0\&.0\&.1 mybox\&.mydomain mybox" > /etc/hosts
>
> That is not true - hostname -f must work quite apart from what
> emsetup requires. It is not up to emsetup to go meddling with
> /etc/hosts/
>
Your example with a debootstapped chroot wouldn't work without this 
adaption. I think it would be fine to have a working example in man 
page:

neo:~# chroot /opt/debian-sid-chroot/
neo:/# mv /etc/hosts /etc/hosts_disabled
neo:/# hostname -f
hostname: Unknown host
neo:/# emsetup -v --simulate --arch i386
Updating main system apt cache (enter your sudo password if prompted).
sudo: unable to resolve host neo
Hit http://ftp.de.debian.org sid Release.gpg
Hit http://ftp.de.debian.org sid Release
Hit http://www.emdebian.org unstable Release.gpg
Hit http://ftp.de.debian.org sid/main Packages/DiffIndex
Hit http://www.emdebian.org unstable Release
Ign http://www.emdebian.org unstable/main Packages/DiffIndex
Ign http://www.emdebian.org unstable/main Sources/DiffIndex
Ign http://www.emdebian.org unstable/main Packages
Ign http://www.emdebian.org unstable/main Sources
Hit http://www.emdebian.org unstable/main Packages
Hit http://www.emdebian.org unstable/main Sources
Reading package lists... Done
Checking apt cache data is up to date ...
Checking unstable on i386 using apt sources
debug: recreating /root/.apt-cross/sources.unstable
Updating apt-cache for i386
Get:1 http://www.emdebian.org unstable Release.gpg [197B]
Get:2 http://www.emdebian.org unstable Release [16.5kB]
Get:3 http://ftp.de.debian.org unstable Release.gpg [189B]
Get:4 http://ftp.de.debian.org unstable Release [80.6kB]
Ign http://www.emdebian.org unstable/main Packages
Ign http://www.emdebian.org unstable/main Sources/DiffIndex
Get:5 http://www.emdebian.org unstable/main Packages [72.6kB]
Get:6 http://ftp.de.debian.org unstable/main Packages [5721kB]
Ign http://www.emdebian.org unstable/main Sources
Hit http://www.emdebian.org unstable/main Sources
Fetched 5891kB in 16s (352kB/s)
Reading package lists... Done
hostname: Unknown host
emsetup: Unable to determine fully qualified hostname. Please check your
/etc/hosts file. See emsetup (1) for more information.
neo:/# mv /etc/hosts_disabled /etc/hosts
neo:/# hostname -f
neo.localdomain

> I would consider a patch that describes what the user needs to do
> within /etc/hosts manually.
As you like.


Kindly regards,

Erik


-- 
 www.ErikSchanze.de *********************************************
 Bitte keine HTML-E-Mails! No HTML mails, please! Limit: 100 kB *
         - Linux-Info-Tag in Dresden auch 2009 wieder           *
             Info: http://www.linux-info-tag.de/                *



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to