Re: [gentoo-user] emerge gives backtrace during first-time install of gentoo in a Debian sarge chroot.

2007-01-25 Thread Bo Ørsted Andresen
On Thursday 25 January 2007 07:41, Mick wrote:
  (5) I found the installation of locales and keymaps.  None of the
  available locales had UTF-8 in their names, even though some of the
  suggested ones did.  Should I presume that the UTF-8 adaptation is
  created by the locale generating software?  What I want is a system that
  uses UTF-8 internally and keyboards and consoles that accept input in
  several languages -- English, French, math, Japanese, and mathematics.  I
  guesses some entries and went on -- confident that this can be fixed
  after installation.

 You need to edit /etc/locale.gen and add something like e.g. en_GB.UTF-8
 UTF-8 (the file is well commented with instructions) and then run
 locale-gen or re-emerge glibc.

Remerging glibc just to get it to run locale-gen seems very silly. (Yes, 
before locale-gen was created remerging glibc was the easiest way to do 
this). And yes, this can be easily be done following the utf-8 guide 
whenever...

http://www.gentoo.org/doc/en/utf-8.xml

-- 
Bo Andresen


pgpDnqA4musmq.pgp
Description: PGP signature


Re: [gentoo-user] emerge gives backtrace during first-time install of gentoo in a Debian sarge chroot.

2007-01-24 Thread Mick
On Tuesday 23 January 2007 03:36, Hendrik Boom wrote:
 Installing gentoo for the first time, starting yesterday.  I just got to
 the point of choosing the system logger as described in section 9b of
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1chap=9
 and syslog-ng gives me a traceback.
[snip...]

When I get problems like that I resync portage after a while and they usually 
go away - unless the whole /usr/portage partition fs has been corrupted. NB - 
I keep my portage on a separate partition to minimise fragmentation.  If the 
fs has been corrupted and the fsck tools won't repair it then I wipe the 
partition clean, reformat it and download a fresh portage snapshot.


 Context:

 I'm installing this using a chroot from a Debian sarge system.
 I've encountered a few anomalies along the way, but I suspect most of them
 are cosmetic, and that some just need a documentation update.
 I don't think they are related to the tracebacks, but I mention them below
 just in case they are a clue to the deeper problem.

 (1) The portage file on the mirror was called
   portage-latest.tar.bz2.tar
 instead of
   portage-latest.tar.bz2

Did you check on more than one mirrors - also the MD5 checksums?

 (2) Of course, from sarge I couldn't run mirrorselect.  So I picked a
 mirror by hand, and it seemed to work.

mirrorselect is the Gentoo equivalent of netselect for Debian.

 (3) At section 7.d, where I was supposed to
   zcat /proc/config.gz
 there was no such file.  But the file I was supposed to create,
   /usr/share/genkernel/x86/kernel-config-26
 already existed, so I just used the one that was already there.

 This may have resulted from the fact that /proc was, of course, a window
 into the Debian 2.6.8 kernel instead of the 2.6.17 installer kernel.

That's right.  You can find this file once you have booted the LiveCD.

 (4)  When doing
   genkernel all
 I got the message
   mount: special device /dev/BOOT does not exist
   * warning: failed to mount /boot

Edit your /etc/fstab and change /dev/BOOT, /dev/ROOT, etc. with real names of 
your corresponding partitions (e.g. /dev/hda1).

 There was still a directory /boot on the intended partition into which I
 was installing gentoo, so I presumed it would use that one for /boot, as I
 intended, and just let it go on.

 (5) I found the installation of locales and keymaps.  None of the available
 locales had UTF-8 in their names, even though some of the suggested ones
 did.  Should I presume that the UTF-8 adaptation is created by the locale
 generating software?  What I want is a system that uses UTF-8 internally
 and keyboards and consoles that accept input in several languages --
 English, French, math, Japanese, and mathematics.  I guesses some entries
 and went on -- confident that this can be fixed after installation.

You need to edit /etc/locale.gen and add something like e.g. en_GB.UTF-8 UTF-8 
(the file is well commented with instructions) and then run locale-gen or 
re-emerge glibc.

HTH.
-- 
Regards,
Mick


pgpIsneGFPK6N.pgp
Description: PGP signature


[gentoo-user] emerge gives backtrace during first-time install of gentoo in a Debian sarge chroot.

2007-01-22 Thread Hendrik Boom
Installing gentoo for the first time, starting yesterday.  I just got to
the point of choosing the system logger as described in section 9b of
   http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1chap=9
and syslog-ng gives me a traceback.

| (chroot) lovesong etc # emerge -vp syslog-ng
| 
| These are the packages that would be merged, in order:
| 
| Calculating dependencies... done!
| Traceback (most recent call last):
|   File /usr/bin/emerge, line 3511, in ?
| mydepgraph.display(mydepgraph.altlist())
|   File /usr/bin/emerge, line 1699, in display
| myfilesdict=portage.portdb.getfetchsizes(x[2], 
useflags=self.applied_useflags[x[2]], debug=edebug)
|   File /usr/lib/portage/pym/portage.py, line 5222, in getfetchsizes
| mf = Manifest(pkgdir, self.mysettings[DISTDIR])
|   File /usr/lib/portage/pym/portage_manifest.py, line 119, in __init__
| self._read()
|   File /usr/lib/portage/pym/portage_manifest.py, line 179, in _read
| self._readDigests(myhashdict=self.fhashdict)
|   File /usr/lib/portage/pym/portage_manifest.py, line 148, in _readDigests
| myhashdict=myhashdict)
|   File /usr/lib/portage/pym/portage_manifest.py, line 164, in _readManifest
| self._parseDigests(fd, myhashdict=myhashdict, **kwargs)
|   File /usr/lib/portage/pym/portage_manifest.py, line 198, in _parseDigests
| for myentry in self._parseManifestLines(mylines):
|   File /usr/lib/portage/pym/portage_manifest.py, line 184, in 
_parseManifestLines
| for myline in mylines:
| IOError: [Errno 5] Input/output error
| (chroot) lovesong etc #


That was from the second time I issued the command.  The first time I got about
487 lines of output, ending with:

...
|  /usr/lib/libol.so.0 - libol.so.0.0.0
|  /usr/lib/libol.la
|  /usr/lib/libol.so - libol.so.0.0.0
|  Regenerating /etc/ld.so.cache...
|  dev-libs/libol-0.3.18 merged.
| 
|  No packages selected for removal by clean.
| 
|  Emerging (2 of 2) app-admin/syslog-ng-1.6.9 to /
| Traceback (most recent call last):
|   File /usr/bin/emerge, line 3545, in ?
| mydepgraph.merge(pkglist)
|   File /usr/bin/emerge, line 2075, in merge
| 
retval=portage.doebuild(y,merge,myroot,self.pkgsettings,edebug,tree=porttree)
|   File /usr/lib/portage/pym/portage.py, line 2948, in doebuild
| if need_distfiles and not fetch(fetchme, mysettings, listonly=listonly, 
fetchonly=fetchonly):
|   File /usr/lib/portage/pym/portage.py, line 1954, in fetch
| mydigests = Manifest(
|   File /usr/lib/portage/pym/portage_manifest.py, line 119, in __init__
| self._read()
|   File /usr/lib/portage/pym/portage_manifest.py, line 179, in _read
| self._readDigests(myhashdict=self.fhashdict)
|   File /usr/lib/portage/pym/portage_manifest.py, line 148, in _readDigests
| myhashdict=myhashdict)
|   File /usr/lib/portage/pym/portage_manifest.py, line 164, in _readManifest
| self._parseDigests(fd, myhashdict=myhashdict, **kwargs)
|   File /usr/lib/portage/pym/portage_manifest.py, line 198, in _parseDigests
| for myentry in self._parseManifestLines(mylines):
|   File /usr/lib/portage/pym/portage_manifest.py, line 184, in 
_parseManifestLines
| for myline in mylines:
| IOError: [Errno 5] Input/output error
| (chroot) lovesong etc # df
| Filesystem   1K-blocks  Used Available Use% Mounted on
| /dev/ROOT 12389324   4263576   7496404  37% /
| (chroot) lovesong etc # mount
| /dev/ROOT on / type ext3 (rw,noatime)
| (chroot) lovesong etc # ls -l /dev/ROOT
| ls: /dev/ROOT: No such file or directory
| (chroot) lovesong etc # 


Context:

I'm installing this using a chroot from a Debian sarge system. 
I've encountered a few anomalies along the way, but I suspect most of them
are cosmetic, and that some just need a documentation update.
I don't think they are related to the tracebacks, but I mention them below
just in case they are a clue to the deeper problem.

(1) The portage file on the mirror was called
  portage-latest.tar.bz2.tar
instead of
  portage-latest.tar.bz2

(2) Of course, from sarge I couldn't run mirrorselect.  So I picked a
mirror by hand, and it seemed to work.

(3) At section 7.d, where I was supposed to
  zcat /proc/config.gz
there was no such file.  But the file I was supposed to create,
  /usr/share/genkernel/x86/kernel-config-26
already existed, so I just used the one that was already there.

This may have resulted from the fact that /proc was, of course, a window
into the Debian 2.6.8 kernel instead of the 2.6.17 installer kernel.

(4)  When doing
  genkernel all
I got the message
  mount: special device /dev/BOOT does not exist
  * warning: failed to mount /boot

There was still a directory /boot on the intended partition into which I
was installing gentoo, so I presumed it would use that one for /boot, as I
intended, and just let it go on.

(5) I found the installation of locales and keymaps.  None of the available
locales had UTF-8 in their names, even though some of the suggested ones
did.  Should I presume that the