Gentoo Archives: gentoo-embedded

From: Natanael Copa <mlists@××××××.org>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
Date: Thu, 29 Dec 2005 14:40:58
Message-Id: 1135867206.12838.163.camel@nc
In Reply to: Re: [gentoo-embedded] GNAP+VPN=PROBLEMS by "João Brázio"
1 On tor, 2005-12-29 at 14:18 +0000, João Brázio wrote:
2 > Dear Brian,
3 >
4 > The function not implemented is "utime", is this a known bug ?
5
6 You run on a 2.4 kernel with uclibc compiled agains 2.6 headers.
7
8 > # cat test.py
9 > import os,time
10 > f = 'foobar'
11 > a = file(f, "w")
12 > a.write("a")
13 > a.close()
14 > os.utime(f, (long(time.time()), long(time.time())))
15 >
16 > # python test.py
17 > Traceback (most recent call last):
18 > File "test.py", line 7, in ?
19 > os.utime(f, (long(time.time()), long(time.time())))
20 > OSError: [Errno 38] Function not implemented: 'foobar'
21 >
22 >
23 > [OUTPUT FROM THE GNAP CHROOT() SYSTEM]
24 >
25 > # emerge --info
26 > Portage 2.0.51.22-r3 (uclibc/x86/hardened, gcc-3.3.6,
27 > uclibc-0.9.27-r0, 2.4.28-gentoo-r8 i686)
28 > =================================================================
29 > System uname: 2.4.28-gentoo-r8 i686
30 > Gentoo Base System version 1.6.13
31 > dev-lang/python: 2.3.4-r1, 2.4.2
32 > sys-apps/sandbox: 1.2.12
33 > sys-devel/autoconf: 2.13, 2.59-r6
34 > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
35 > sys-devel/binutils: 2.15.92.0.2-r10
36 > sys-devel/libtool: 1.5.20
37 > virtual/os-headers: 2.6.11-r2
38 > ACCEPT_KEYWORDS="x86"
39 > AUTOCLEAN="yes"
40 > CBUILD="i386-gentoo-linux-uclibc"
41 > CFLAGS="-Os -pipe"
42 > CHOST="i386-gentoo-linux-uclibc"
43 > CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
44 > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
45 > CXXFLAGS="-Os -pipe"
46 > DISTDIR="/usr/portage/distfiles"
47 > FEATURES="autoconfig distlocks nodoc noinfo noman sandbox sfperms
48 > strict"
49 > GENTOO_MIRRORS="http://distfiles.gentoo.org
50 > http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
51 > PKGDIR="/usr/portage/packages"
52 > PORTAGE_TMPDIR="/var/tmp"
53 > PORTDIR="/usr/portage"
54 > SYNC="rsync://rsync.gentoo.org/gentoo-portage"
55 > USE="x86 hardened ncurses perl pic python readline uclibc zlib
56 > userland_GNU kernel_linux elibc_uclibc"
57 > Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS,
58 > PORTDIR_OVERLAY
59 >
60 >
61 >
62 > On 12/29/05, Brian Harring <ferringb@g.o> wrote:
63 > On Thu, Dec 29, 2005 at 10:35:12AM +0000, João Brázio wrote:
64 > > On 12/29/05, Brian Harring <[1]ferringb@ gentoo.org> wrote:
65 > > > On Thu, Dec 29, 2005 at 10:24:06AM +0000, Jo?o Br?zio
66 > wrote:
67 > > > > Wel.. I've already tryed to chroot() into the
68 > grp-x86-20051228 and
69 > > > > issued:
70 > > > > # emerge portage
71 > > > > Calculating dependencies
72 > > > >
73 > > > > !!! Problem in sys-apps/portage dependencies.
74 > > > > !!! [Errno 38] Function not implemented:
75 > > > >
76 > '/var/cache/edb/dep//usr/portage/sys-apps/.update.23778.portaege-2.0.53
77 > > > > ' exceptions
78 > > > utime or rename offhand...
79 > > Excuse me but what do you mean with "offhand" ?
80 >
81 > That name for a file is only created with a flat_list cache
82 > backend,
83 > specifically when it's doing an update to an existing entry
84 > (kind of a
85 > duh there considering the name, I know).
86 >
87 > The algo is roughly
88 > f=open(tmp_update_entry)
89 > write to it
90 > close it
91 > utime it (reset mtime)
92 > rename(tmp_update_entry, update_entry)
93 >
94 > Hence the 'offhand'. Don't know if it's rename or utime
95 > that's not
96 > defined- just know that those are the only two syscalls that
97 > could
98 > sanely trigger that (failed update will trigger an unlink, but
99 > I'd be
100 > amazed if that call was missing).
101 >
102 > ~harring
103 >
104 >
105 >
106 >
107 >
108 > --
109 >
110 > Cumprimentos,
111 > João Brázio.
112
113 --
114 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] GNAP+VPN=PROBLEMS "João Brázio" <jbrazio@×××××××××.org>