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