From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.54)
	id 1ErzC4-0005yt-Q8
	for garchives@archives.gentoo.org; Thu, 29 Dec 2005 14:55:53 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBTEt6oF023948;
	Thu, 29 Dec 2005 14:55:06 GMT
Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204])
	by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jBTEt4R6021384
	for <gentoo-embedded@lists.gentoo.org>; Thu, 29 Dec 2005 14:55:05 GMT
Received: by xproxy.gmail.com with SMTP id s6so1210569wxc
        for <gentoo-embedded@lists.gentoo.org>; Thu, 29 Dec 2005 06:55:04 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references;
        b=dVtG/DCDu8gZWrj3UffgGYW73T6kHSflxW6dvs4aR3c/uHQoWZqaNTmbgzYCUeSqF3fmSRm5vtRJMeriTzYI35s6OTd7SDVgLrh5WwALbGbGgjtLtZ7mAQs3fwmg844EDjp5Mfx/UsuLMgZkdp0FCYkbF0EKjgbBGRQ7VRc7gVU=
Received: by 10.70.22.19 with SMTP id 19mr8955366wxv;
        Thu, 29 Dec 2005 06:55:03 -0800 (PST)
Received: by 10.70.26.13 with HTTP; Thu, 29 Dec 2005 06:55:03 -0800 (PST)
Message-ID: <7399af0a0512290655s29ea09fdge97209424dbe395@mail.gmail.com>
Date: Thu, 29 Dec 2005 14:55:03 +0000
From: =?ISO-8859-1?Q?Jo=E3o_Br=E1zio?= <jbrazio@stinkfist.org>
Sender: jbrazio@gmail.com
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
In-Reply-To: <1135867206.12838.163.camel@nc>
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_19295_7330552.1135868103771"
References: <7399af0a0512280345g442fe576n8f3df66267f353fb@mail.gmail.com>
	 <43B29454.8050701@gentoo.org>
	 <7399af0a0512281109u17c21de3rfc69c73285245b@mail.gmail.com>
	 <43B3B400.1080207@gentoo.org>
	 <7399af0a0512290224y45c663ffyd8e16850da677d1c@mail.gmail.com>
	 <20051229103029.GC10459@nightcrawler.e-centre.net>
	 <7399af0a0512290235m68ffd25h3ee4c5ea51196127@mail.gmail.com>
	 <20051229105331.GD10459@nightcrawler.e-centre.net>
	 <7399af0a0512290618l33ffe95bu11383d3af09b4535@mail.gmail.com>
	 <1135867206.12838.163.camel@nc>
X-Archives-Salt: 89f754c5-0586-4e79-a347-fc2b52ff78fa
X-Archives-Hash: 5eabbd5f456dff5f527e7374045202bf

------=_Part_19295_7330552.1135868103771
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Nice catch !
How do I update them according to my running kernel ? (A little bit
offtopic..)

Closest match: linux-headers/linux-headers-2.4.26.ebuild
Kernel: 2.4.28-gentoo-r8 #1 Mon Mar 14 10:57:18 GMT 2005 i686


On 12/29/05, Natanael Copa <mlists@tanael.org> wrote:
>
> On tor, 2005-12-29 at 14:18 +0000, Jo=E3o Br=E1zio wrote:
> > Dear Brian,
> >
> > The function not implemented is "utime", is this a known bug ?
>
> You run on a 2.4 kernel with uclibc compiled agains 2.6 headers.
>
> > # cat test.py
> > import os,time
> > f =3D 'foobar'
> > a =3D file(f, "w")
> > a.write("a")
> > a.close()
> > os.utime(f, (long(time.time()), long(time.time())))
> >
> > # python test.py
> > Traceback (most recent call last):
> >   File "test.py", line 7, in ?
> >     os.utime(f, (long(time.time()), long(time.time())))
> > OSError: [Errno 38] Function not implemented: 'foobar'
> >
> >
> > [OUTPUT FROM THE GNAP CHROOT() SYSTEM]
> >
> > # emerge --info
> > Portage 2.0.51.22-r3 (uclibc/x86/hardened, gcc-3.3.6,
> > uclibc-0.9.27-r0, 2.4.28-gentoo-r8 i686)
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > System uname: 2.4.28-gentoo-r8 i686
> > Gentoo Base System version 1.6.13
> > dev-lang/python:     2.3.4-r1, 2.4.2
> > sys-apps/sandbox:    1.2.12
> > sys-devel/autoconf:  2.13, 2.59-r6
> > 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.15.92.0.2-r10
> > sys-devel/libtool:   1.5.20
> > virtual/os-headers:  2.6.11-r2
> > ACCEPT_KEYWORDS=3D"x86"
> > AUTOCLEAN=3D"yes"
> > CBUILD=3D"i386-gentoo-linux-uclibc"
> > CFLAGS=3D"-Os -pipe"
> > CHOST=3D"i386-gentoo-linux-uclibc"
> > CONFIG_PROTECT=3D"/etc /usr/kde/2/share/config /usr/kde/3/share/config
> /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
> > CONFIG_PROTECT_MASK=3D"/etc/gconf /etc/terminfo /etc/env.d"
> > CXXFLAGS=3D"-Os -pipe"
> > DISTDIR=3D"/usr/portage/distfiles"
> > FEATURES=3D"autoconfig distlocks nodoc noinfo noman sandbox sfperms
> > strict"
> > GENTOO_MIRRORS=3D"http://distfiles.gentoo.org
> > http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
> > PKGDIR=3D"/usr/portage/packages"
> > PORTAGE_TMPDIR=3D"/var/tmp"
> > PORTDIR=3D"/usr/portage"
> > SYNC=3D"rsync://rsync.gentoo.org/gentoo-portage"
> > USE=3D"x86 hardened ncurses perl pic python readline uclibc zlib
> > userland_GNU kernel_linux elibc_uclibc"
> > Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS,
> > PORTDIR_OVERLAY
> >
> >
> >
> > On 12/29/05, Brian Harring <ferringb@gentoo.org> wrote:
> >         On Thu, Dec 29, 2005 at 10:35:12AM +0000, Jo=E3o Br=E1zio wrote=
:
> >         > On 12/29/05, Brian Harring <[1]ferringb@ gentoo.org> wrote:
> >         > > On Thu, Dec 29, 2005 at 10:24:06AM +0000, Jo?o Br?zio
> >         wrote:
> >         > > > Wel.. I've already tryed to chroot() into the
> >         grp-x86-20051228 and
> >         > > > issued:
> >         > > > # emerge portage
> >         > > > Calculating dependencies
> >         > > >
> >         > > > !!! Problem in sys-apps/portage dependencies.
> >         > > > !!! [Errno 38] Function not implemented:
> >         > > >
> >
> '/var/cache/edb/dep//usr/portage/sys-apps/.update.23778.portaege-2.0.53
> >         > > > ' exceptions
> >         > > utime or rename offhand...
> >         > Excuse me but what do you mean with "offhand" ?
> >
> >         That name for a file is only created with a flat_list cache
> >         backend,
> >         specifically when it's doing an update to an existing entry
> >         (kind of a
> >         duh there considering the name, I know).
> >
> >         The algo is roughly
> >         f=3Dopen(tmp_update_entry)
> >         write to it
> >         close it
> >         utime it (reset mtime)
> >         rename(tmp_update_entry, update_entry)
> >
> >         Hence the 'offhand'.  Don't know if it's rename or utime
> >         that's not
> >         defined- just know that those are the only two syscalls that
> >         could
> >         sanely trigger that (failed update will trigger an unlink, but
> >         I'd be
> >         amazed if that call was missing).
> >
> >         ~harring
> >
> >
> >
> >
> >
> > --
> >
> > Cumprimentos,
> > Jo=E3o Br=E1zio.
>
> --
> gentoo-embedded@gentoo.org mailing list
>
>


--

Cumprimentos,
Jo=E3o Br=E1zio.

------=_Part_19295_7330552.1135868103771
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div>Nice catch !</div>
<div>How do I update them according to my running kernel ? (A little bit of=
ftopic..)</div>
<div>&nbsp;</div>
<div>Closest match: linux-headers/linux-headers-2.4.26.ebuild</div>
<div>Kernel:&nbsp;2.4.28-gentoo-r8 #1 Mon Mar 14 10:57:18 GMT 2005 i686<br>=
<br>&nbsp;</div>
<div><span class=3D"gmail_quote">On 12/29/05, <b class=3D"gmail_sendername"=
>Natanael Copa</b> &lt;<a href=3D"mailto:mlists@tanael.org">mlists@tanael.o=
rg</a>&gt; wrote:</span>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On tor, 2005-12-29 at 14:18 +000=
0, Jo=E3o Br=E1zio wrote:<br>&gt; Dear Brian,<br>&gt;<br>&gt; The function =
not implemented is &quot;utime&quot;, is this a known bug ?
<br><br>You run on a 2.4 kernel with uclibc compiled agains 2.6 headers.<br=
><br>&gt; # cat test.py<br>&gt; import os,time<br>&gt; f =3D 'foobar'<br>&g=
t; a =3D file(f, &quot;w&quot;)<br>&gt; a.write(&quot;a&quot;)<br>&gt; a.cl=
ose
()<br>&gt; os.utime(f, (long(time.time()), long(time.time())))<br>&gt;<br>&=
gt; # python test.py<br>&gt; Traceback (most recent call last):<br>&gt;&nbs=
p;&nbsp; File &quot;test.py&quot;, line 7, in ?<br>&gt;&nbsp;&nbsp;&nbsp;&n=
bsp; os.utime(f, (long(time.time
()), long(time.time())))<br>&gt; OSError: [Errno 38] Function not implement=
ed: 'foobar'<br>&gt;<br>&gt;<br>&gt; [OUTPUT FROM THE GNAP CHROOT() SYSTEM]=
<br>&gt;<br>&gt; # emerge --info<br>&gt; Portage 2.0.51.22-r3 (uclibc/x86/h=
ardened,=20
gcc-3.3.6,<br>&gt; uclibc-0.9.27-r0, 2.4.28-gentoo-r8 i686)<br>&gt; =3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>&gt; System uname: 2.4.28-gentoo=
-r8 i686<br>&gt; Gentoo Base System version 1.6.13<br>
&gt; dev-lang/python:&nbsp;&nbsp;&nbsp;&nbsp; 2.3.4-r1, 2.4.2<br>&gt; sys-a=
pps/sandbox:&nbsp;&nbsp;&nbsp;&nbsp;1.2.12<br>&gt; sys-devel/autoconf:&nbsp=
;&nbsp;2.13, 2.59-r6<br>&gt; sys-devel/automake:&nbsp;&nbsp;1.4_p6, 1.5, 1.=
6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1<br>&gt; sys-devel/binutils:&nbsp;&nbsp;
2.15.92.0.2-r10<br>&gt; sys-devel/libtool:&nbsp;&nbsp; 1.5.20<br>&gt; virtu=
al/os-headers:&nbsp;&nbsp;2.6.11-r2<br>&gt; ACCEPT_KEYWORDS=3D&quot;x86&quo=
t;<br>&gt; AUTOCLEAN=3D&quot;yes&quot;<br>&gt; CBUILD=3D&quot;i386-gentoo-l=
inux-uclibc&quot;<br>&gt; CFLAGS=3D&quot;-Os -pipe&quot;
<br>&gt; CHOST=3D&quot;i386-gentoo-linux-uclibc&quot;<br>&gt; CONFIG_PROTEC=
T=3D&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11=
/xkb /usr/share/config /var/qmail/control&quot;<br>&gt; CONFIG_PROTECT_MASK=
=3D&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
<br>&gt; CXXFLAGS=3D&quot;-Os -pipe&quot;<br>&gt; DISTDIR=3D&quot;/usr/port=
age/distfiles&quot;<br>&gt; FEATURES=3D&quot;autoconfig distlocks nodoc noi=
nfo noman sandbox sfperms<br>&gt; strict&quot;<br>&gt; GENTOO_MIRRORS=3D&qu=
ot;<a href=3D"http://distfiles.gentoo.org">
http://distfiles.gentoo.org</a><br>&gt; <a href=3D"http://distro.ibiblio.or=
g/pub/Linux/distributions/gentoo&quot;">http://distro.ibiblio.org/pub/Linux=
/distributions/gentoo&quot;</a><br>&gt; PKGDIR=3D&quot;/usr/portage/package=
s&quot;
<br>&gt; PORTAGE_TMPDIR=3D&quot;/var/tmp&quot;<br>&gt; PORTDIR=3D&quot;/usr=
/portage&quot;<br>&gt; SYNC=3D&quot;<a href=3D"rsync://rsync.gentoo.org/gen=
too-portage">rsync://rsync.gentoo.org/gentoo-portage</a>&quot;<br>&gt; USE=
=3D&quot;x86 hardened ncurses perl pic python readline uclibc zlib
<br>&gt; userland_GNU kernel_linux elibc_uclibc&quot;<br>&gt; Unset:&nbsp;&=
nbsp;ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS,<br>&gt; PO=
RTDIR_OVERLAY<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 12/29/05, Brian Harring &l=
t;<a href=3D"mailto:ferringb@gentoo.org">
ferringb@gentoo.org</a>&gt; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; On Thu, Dec 29, 2005 at 10:35:12AM +0000, Jo=E3o Br=E1zio w=
rote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; On 12/29=
/05, Brian Harring &lt;[1]ferringb@ <a href=3D"http://gentoo.org">gentoo.or=
g</a>&gt; wrote:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; On Thu, =
Dec 29, 2005 at 10:24:06AM +0000, Jo?o Br?zio<br>&gt;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; &gt; &gt; &gt; Wel.. I've already tryed to chroot() into the=
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; grp-x86-20051228 a=
nd<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; &gt; issued:=
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; &gt; # e=
merge portage<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; =
&gt; &gt; Calculating dependencies<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; &gt; &gt; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp; &gt; &gt; &gt; !!! Problem in sys-apps/portage dependencies.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; &gt; !!!=
 [Errno 38] Function not implemented:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; &gt; &gt; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; '/var/cache/edb/dep//usr/portage/sys-apps/.update.23778.port=
aege-2.0.53<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &g=
t; &gt; ' exceptions
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; &gt; utime or=
 rename offhand...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&gt; Excuse me but what do you mean with &quot;offhand&quot; ?<br>&gt;<br>&=
gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; That name for a file is=
 only created with a flat_list cache<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; backend,
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; specifically when =
it's doing an update to an existing entry<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp; (kind of a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; duh there considering the name, I know).<br>&gt;<br>&gt;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The algo is roughly<br>&gt;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f=3Dopen(tmp_update_entry)
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write to it<br>&gt=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; close it<br>&gt;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; utime it (reset mtime)<br>&gt;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rename(tmp_update_entry, update=
_entry)<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hen=
ce the 'offhand'.&nbsp;&nbsp;Don't know if it's rename or utime
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; that's not<br>&gt;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defined- just know that th=
ose are the only two syscalls that<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; could<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; sanely trigger that (failed update will trigger an unlink, but<br>&gt;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I'd be
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; amazed if that cal=
l was missing).<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; ~harring<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt;<br=
>&gt; Cumprimentos,<br>&gt; Jo=E3o Br=E1zio.<br><br>--<br><a href=3D"mailto=
:gentoo-embedded@gentoo.org">
gentoo-embedded@gentoo.org</a> mailing list<br><br></blockquote></div><br><=
br clear=3D"all"><br>-- <br><br>Cumprimentos,<br>Jo=E3o Br=E1zio.=20

------=_Part_19295_7330552.1135868103771--
-- 
gentoo-embedded@gentoo.org mailing list