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 ; Thu, 29 Dec 2005 14:55:05 GMT Received: by xproxy.gmail.com with SMTP id s6so1210569wxc for ; 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?= 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: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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 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 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
Nice catch !
How do I update them according to my running kernel ? (A little bit of= ftopic..)
 
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.o= rg> wrote:
On tor, 2005-12-29 at 14:18 +000= 0, 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'
&g= t; a =3D file(f, "w")
> a.write("a")
> a.cl= ose ()
> os.utime(f, (long(time.time()), long(time.time())))
>
&= gt; # python test.py
> Traceback (most recent call last):
>&nbs= p;  File "test.py", line 7, in ?
>   &n= bsp; os.utime(f, (long(time.time ()), long(time.time())))
> OSError: [Errno 38] Function not implement= ed: 'foobar'
>
>
> [OUTPUT FROM THE GNAP CHROOT() SYSTEM]=
>
> # emerge --info
> Portage 2.0.51.22-r3 (uclibc/x86/h= ardened,=20 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-a= pps/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
> virtu= al/os-headers:  2.6.11-r2
> ACCEPT_KEYWORDS=3D"x86&quo= t;
> AUTOCLEAN=3D"yes"
> CBUILD=3D"i386-gentoo-l= inux-uclibc"
> CFLAGS=3D"-Os -pipe"
> CHOST=3D"i386-gentoo-linux-uclibc"
> CONFIG_PROTEC= T=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/port= age/distfiles"
> FEATURES=3D"autoconfig distlocks nodoc noi= nfo noman sandbox sfperms
> strict"
> GENTOO_MIRRORS=3D&qu= ot; http://distfiles.gentoo.org
> http://distro.ibiblio.org/pub/Linux= /distributions/gentoo"
> PKGDIR=3D"/usr/portage/package= s"
> 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: &= nbsp;ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS,
> PO= RTDIR_OVERLAY
>
>
>
> On 12/29/05, Brian Harring &l= t; ferringb@gentoo.org> wrote:
>     &nb= sp;   On Thu, Dec 29, 2005 at 10:35:12AM +0000, Jo=E3o Br=E1zio w= rote:
>         > On 12/29= /05, Brian Harring <[1]ferringb@ gentoo.or= g> wrote:
>         > > On Thu, = Dec 29, 2005 at 10:24:06AM +0000, Jo?o Br?zio
>   &nbs= p;     wrote:
>     &nbs= p;   > > > Wel.. I've already tryed to chroot() into the=
>         grp-x86-20051228 a= nd
>         > > > issued:=
>         > > > # e= merge portage
>         > = > > Calculating dependencies
>     &nb= sp;   > > >
>      &= nbsp;  > > > !!! Problem in sys-apps/portage dependencies.
>         > > > !!!= [Errno 38] Function not implemented:
>     =     > > >
>     &nbs= p;   '/var/cache/edb/dep//usr/portage/sys-apps/.update.23778.port= aege-2.0.53
>         > &g= t; > ' exceptions
>         > > utime or= rename offhand...
>         = > Excuse me but what do you mean with "offhand" ?
>
&= gt;         That name for a file is= only created with a flat_list cache
>     &= nbsp;   backend,
>         specifically when = it's doing an update to an existing entry
>    &n= bsp;    (kind of a
>     &nbs= p;   duh there considering the name, I know).
>
>&nbs= p;        The algo is roughly
>&nb= sp;        f=3Dopen(tmp_update_entry)
>         write to it
>= ;         close it
> &nb= sp;       utime it (reset mtime)
> = ;        rename(tmp_update_entry, update= _entry)
>
>         Hen= ce the 'offhand'.  Don't know if it's rename or utime
>         that's not
>=          defined- just know that th= ose are the only two syscalls that
>     &nb= sp;   could
>       &nbs= p; sanely trigger that (failed update will trigger an unlink, but
>&n= bsp;        I'd be
>         amazed if that cal= l was missing).
>
>       &n= bsp; ~harring
>
>
>
>
>
> --
>> Cumprimentos,
> Jo=E3o Br=E1zio.

--
gentoo-embedded@gentoo.org mailing list


<= br clear=3D"all">
--

Cumprimentos,
Jo=E3o Br=E1zio.=20 ------=_Part_19295_7330552.1135868103771-- -- gentoo-embedded@gentoo.org mailing list