Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128931 - World update fails due to libidn-0.5.15
Summary: World update fails due to libidn-0.5.15
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-05 09:33 UTC by bazancik
Modified: 2006-04-05 12:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bazancik 2006-04-05 09:33:56 UTC
Recently I did "world update" and it failed on libidn-0.5.15 - after compilation I got:

-- 
(...)
making executable: /usr/lib/libidn.so.11.5.8

QA Notice: the following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at http://bugs.gentoo.org/ to make sure the file is fixed.
--- --- RWX usr/lib/libidn.so.11.5.8
--- --- RWX usr/bin/idn

>>> Completed installing libidn-0.5.15 into /var/tmp/portage/libidn-0.5.15/image /

Traceback (most recent call last):
  File "/usr/bin/emerge", line 3228, in ?
    mydepgraph.merge(pkglist)
  File "/usr/bin/emerge", line 1912, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="portt ree")
  File "/usr/lib/portage/pym/portage.py", line 2771, in doebuild
    return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysetti ngs["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"],my tree=tree)
  File "/usr/lib/portage/pym/portage.py", line 2946, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6984, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6458, in treewalk
    self.lockdb()
  File "/usr/lib/portage/pym/portage.py", line 6062, in lockdb
    self.lock_pkg = portage_locks.lockdir(self.dbpkgdir)
  File "/usr/lib/portage/pym/portage_locks.py", line 36, in lockdir
    return lockfile(mydir,wantnewlockfile=1)
  File "/usr/lib/portage/pym/portage_locks.py", line 68, in lockfile
    myfd = os.open(lockfilename, os.O_CREAT|os.O_RDWR,0660)
OSError: [Errno 20] Not a directory: '/var/db/pkg/net-dns/libidn-0.5.15.portage_ lockfile'
-- 

Any ideas what to do with it??
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-05 09:34:49 UTC
emerge --info, please...
Comment 2 bazancik 2006-04-05 10:45:24 UTC
OK, here you are:
-- 

Portage 2.0.54 (default-linux/ppc/2005.1/ppc/G4/Pegasos, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-gentoo-r5 ppc)
=================================================================
System uname: 2.6.14-gentoo-r5 ppc 7447/7457, altivec supported
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="ppc X alsa audiofile berkdb bitmap-fonts browserplugin bzip2 cdr crypt cups doc dri dv dvd dvdr dvdread eds emboss esd exif expat fam fortran gd gif glut gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick ipv6 isdnlog java jpeg kde lcms libwww mad mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl pam pcre pdflib perl png pppd python qt readline samba sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-05 10:50:05 UTC
You forgot to reopen the bug.
Comment 4 bazancik 2006-04-05 10:56:19 UTC
(In reply to comment #3)
> You forgot to reopen the bug.

Sorry, I'm just another newbe :( 

Comment 5 Zac Medico gentoo-dev 2006-04-05 11:20:53 UTC
(In reply to comment #0)
>   File "/usr/lib/portage/pym/portage_locks.py", line 68, in lockfile
>     myfd = os.open(lockfilename, os.O_CREAT|os.O_RDWR,0660)
> OSError: [Errno 20] Not a directory:
> '/var/db/pkg/net-dns/libidn-0.5.15.portage_ lockfile'

That's odd. I'm not sure why the Errno 20 was generated.  If you try to install libidn-0.5.15 again, are you able to reproduce the problem?
Comment 6 bazancik 2006-04-05 11:34:23 UTC
(In reply to comment #5)

Yes, every time I do 'emerge libidn' or 'emerge --update --deep world' I get an error, so the problem is reproduced.

Comment 7 Zac Medico gentoo-dev 2006-04-05 12:05:58 UTC
I see. I seems like /var/db/pkg/net-dns/libidn-0.5.15.portage_lockfile is a stale lock file.  You should remove it.
Comment 8 bazancik 2006-04-05 12:31:25 UTC
(In reply to comment #7)
> I see. I seems like /var/db/pkg/net-dns/libidn-0.5.15.portage_lockfile is a
> stale lock file.  You should remove it.

Bingo - that was it! I removed net-dns (rm /var/db/pkg/net-dns). net-dns was a file not dir!!??