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