public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] GNAP+VPN=PROBLEMS
@ 2005-12-28 11:45 João Brázio
  2005-12-28 13:34 ` Thierry Carrez
  0 siblings, 1 reply; 16+ messages in thread
From: João Brázio @ 2005-12-28 11:45 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

Dear all,

I've been trying to configure GNAP as a VPN server without any success.

I want to allow 10 clients connected to the VPN server at the same time and
each one of them should have a different local IP address. This is possible
to do with a bridge.
I need to create br0 bridge with eth0 with tap0. The problem is that I can't
see the interfaces when I do ifconfig -a altought i can see /dev/net/tun so
I think TUN/TAP module is loaded.

Can this be done with a vanilla GNAP system ?
How is supposed to use the USE_VPN flag on GNAP, p2p VPN or a Server-to-many
solution ?

Thanks in advance.

--

Best regards,
João Brázio.

[-- Attachment #2: Type: text/html, Size: 694 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-28 11:45 [gentoo-embedded] GNAP+VPN=PROBLEMS João Brázio
@ 2005-12-28 13:34 ` Thierry Carrez
  2005-12-28 19:09   ` João Brázio
  0 siblings, 1 reply; 16+ messages in thread
From: Thierry Carrez @ 2005-12-28 13:34 UTC (permalink / raw
  To: gentoo-embedded

João Brázio wrote:

> I've been trying to configure GNAP as a VPN server without any success.
> 
> I want to allow 10 clients connected to the VPN server at the same time
> and each one of them should have a different local IP address. This is
> possible to do with a bridge.

This is also possible to do without a bridge, using OpenVPN 2.0 "server"
mode. See http://openvpn.net/howto.html

> I need to create br0 bridge with eth0 with tap0. The problem is that I
> can't see the interfaces when I do ifconfig -a altought i can see
> /dev/net/tun so I think TUN/TAP module is loaded.

GNAP vanilla kernel is missing bridge support.

> Can this be done with a vanilla GNAP system ?
> How is supposed to use the USE_VPN flag on GNAP, p2p VPN or a
> Server-to-many solution ?

USE_VPN triggers the use of OpenVPN. It supports both modes.

-- 
Thierry Carrez (Koon)
GNAP Developer
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-28 13:34 ` Thierry Carrez
@ 2005-12-28 19:09   ` João Brázio
  2005-12-28 23:22     ` Natanael Copa
  2005-12-29 10:01     ` Thierry Carrez
  0 siblings, 2 replies; 16+ messages in thread
From: João Brázio @ 2005-12-28 19:09 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 5625 bytes --]

Dear Thierry,
It works great but now I've got another problem, I'm trying to compile GNAP
with nylon, a sock proxy and the following error occurs:

File: myspecs/extensions.conf
  extensions: nylon

  nylon/packlist: nylon libevent
  nylon/cleanup: /usr/share

Portage: http://mirrors.tds.net/gentoo/snapshots/portage-20051227.tar.bz2


# gnap_make -t extensions -e myspecs -p portage-20051227.tar.bz2
GNAP Core Building tool gnap_make version 1.8.2
 * Checking parameters...                                                 [
ok ]
 * 'livecd-stage1' or 'extensions' was selected without 'stage3'.
 * Should I use the seed stage as stage3 result ? [N]: y
 * The following targets will be called:
 * [extensions]
 * Preparing portage snapshot...                                          [
ok ]
 * [extensions] stage start...                                            [
ok ]
 *   Building nylon extension...                                          [
!! ]
 * Extension build failed, see ./gnap_make-20051228.err and .out for det  [
!! ]
 * Cleaning temporary directories...                                      [
ok ]
Build failed, try man gnap_make for more help


# cat gnap_make-20051228.err
>>> Regenerating /etc/ld.so.cache...


Performing Global Updates: /usr/portage/profiles/updates/4Q-2005
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update
/etc/portage/package.*'


# cat gnap_make-20051228.out
........................
Calculating dependencies

!!! Problem in sys-apps/portage dependencies.
!!! [Errno 38] Function not implemented:
'/var/cache/edb/dep//usr/portage/sys-apps/.update.8098.portage-2.0.53'
exceptions
Calculating dependencies

!!! Problem in net-proxy/nylon dependencies.
!!! [Errno 38] Function not implemented:
'/var/cache/edb/dep//usr/portage/net-proxy/.update.8144.nylon-1.2-r2'
exceptions
Gentoo Catalyst, version 1.1.10.10
Copyright 2003-2005 The Gentoo Foundation
Distributed under the GNU General Public License version 2

Using command line specified Catalyst configuration file,
/etc/catalyst/catalyst.conf
Setting storedir to config file value "/var/tmp/catalyst"
Setting portdir to default value "/usr/portage"
Setting distdir to config file value "/usr/portage/distfiles"
Setting options to config file value "pkgcache kerncache"
Setting sharedir to config file value "/usr/lib/catalyst"
Package cache support enabled.
Kernel cache support enabled.

        WARNING: No value set for key: grp/use
        deleting key: grp/use

Building natively for x86
Checking for processes running in chroot and killing them.
Running command "/bin/bash /usr/lib/catalyst/targets/support/kill-
chroot-pids.sh"
Running action sequence: dir_setup
Setting up directories...
Running action sequence: unpack_and_bind
Unpacking stage tarball...
Running command "/bin/tar xjpf /var/tmp/catalyst/builds/gnap/stage3-
x86-20051228.tar.bz2 -C /var/tmp/catalyst/tmp/gnap/grp-x86-20051228"
Unpacking portage tree snapshot...
Running command "/bin/tar xjpf /var/tmp/catalyst/snapshots/portage-
20051228.tar.bz2 -C /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/usr"
Configuring profile link...
Running command "rm -f
/var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.profile"
Running command "ln -sf ../usr/portage/profiles/uclibc/x86/hardened
/var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.profile"
Running action sequence: chroot_setup
Setting up chroot...
Running command "cp /etc/resolv.conf
/var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc"
Running command "mv /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts
/var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts.bck"
Running command "cp /etc/hosts
/var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts"
Running command "rm -f
/var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.conf"
Running action sequence: setup_environment
Running action sequence: run_local
Running command "/bin/bash /usr/lib/catalyst/targets/grp/grp.sh run pkgset
nylon 'nylon' 'libevent'"

Traceback (most recent call last):
  File "modules/grp_target.py", line 44, in run_local
    cmd("/bin/bash "+self.settings["sharedir"]+\
  File "/usr/lib/catalyst/modules/catalyst_support.py", line 102, in cmd
    raise CatalystError,myexc
CatalystError: <unprintable instance object>
None

!!! catalyst: GRP build aborting due to error.

On 12/28/05, Thierry Carrez <koon@gentoo.org> wrote:
>
> João Brázio wrote:
>
> > I've been trying to configure GNAP as a VPN server without any success.
> >
> > I want to allow 10 clients connected to the VPN server at the same time
> > and each one of them should have a different local IP address. This is
> > possible to do with a bridge.
>
> This is also possible to do without a bridge, using OpenVPN 2.0 "server"
> mode. See http://openvpn.net/howto.html
>
> > I need to create br0 bridge with eth0 with tap0. The problem is that I
> > can't see the interfaces when I do ifconfig -a altought i can see
> > /dev/net/tun so I think TUN/TAP module is loaded.
>
> GNAP vanilla kernel is missing bridge support.
>
> > Can this be done with a vanilla GNAP system ?
> > How is supposed to use the USE_VPN flag on GNAP, p2p VPN or a
> > Server-to-many solution ?
>
> USE_VPN triggers the use of OpenVPN. It supports both modes.
>
> --
> Thierry Carrez (Koon)
> GNAP Developer
> --
> gentoo-embedded@gentoo.org mailing list
>
>


--

Cumprimentos,
João Brázio.

[-- Attachment #2: Type: text/html, Size: 8060 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-28 19:09   ` João Brázio
@ 2005-12-28 23:22     ` Natanael Copa
  2005-12-29 10:01     ` Thierry Carrez
  1 sibling, 0 replies; 16+ messages in thread
From: Natanael Copa @ 2005-12-28 23:22 UTC (permalink / raw
  To: gentoo-embedded

I'm not sure if this is the proper place to suggest this but, anyway...

I have a bootable proof-of-concept CD, build from gnetoo-embedded, that
probably could do what you want without you needing compiling anything.

fetch latest iso from http://jv.lmdata.org/alpine/hardened/isoimages/

This is totally undocumented (still alfa, but I think you should be able
to use it). All runtimes are installed in RAM so you need at least 64MB,
probably more.

boot the cd.

configure your network (debian/busybox style)
in /etc/network/interfaces. You can install nano or vim runtimes for
that with:

  apk_add openvpn

(You migh want to install dhcpcd or pump for dhcp. busybox internal
doesnt work because of no /share/ directory containing the scripts)

install openvpn runtimes:

  apk_add openvpn

configure openvpn (you might want to install bash for running the
openvpn scripts: apk_add bash)

bridgeutils are available with:

  apk_add bridge-utils

shorewall is available with:

  apk_add shorewall

Now as soon you reboot you would lose your configs so you would want to
store it on floppy or usb.

To add files to the save-to-writeable-media-list use:

  lbu_add FILE...

for example:

  lbu_add /etc/resolv.conf /etc/network/interfaces /etc/ssl /etc/openvpn

To really preform the write to floppy, use:

  lbu_commit floppy

You could store configs to usb stick too but then you will need usbd.

  apk_add usbd
  /etc/init.d/usbd start
  modprobe ub
  lbu_commit usb

Now next reboot, everythign in the lbu_add'ed files will be restored and
all pacakges installed will be reinstalled during boot.

make symblinks in /etc/rc2.d and add those links to local backup list
with lbu_add and the services will be started too.

For manpages on apk_add apk_delete and friends, visit
http://apk-tools.sf.net

I know atleast one person using this cd for openvpn.

On ons, 2005-12-28 at 19:09 +0000, João Brázio wrote:
> Dear Thierry,
> It works great but now I've got another problem, I'm trying to compile
> GNAP with nylon, a sock proxy and the following error occurs:
> 
> File: myspecs/extensions.conf
>   extensions: nylon
> 
>   nylon/packlist: nylon libevent 
>   nylon/cleanup: /usr/share
> 
> Portage:
> http://mirrors.tds.net/gentoo/snapshots/portage-20051227.tar.bz2
> 
> 
> # gnap_make -t extensions -e myspecs -p portage-20051227.tar.bz2
> GNAP Core Building tool gnap_make version 1.8.2
>  * Checking parameters...
> [ ok ]
>  * 'livecd-stage1' or 'extensions' was selected without 'stage3'. 
>  * Should I use the seed stage as stage3 result ? [N]: y
>  * The following targets will be called:
>  * [extensions]
>  * Preparing portage snapshot...
> [ ok ]
>  * [extensions] stage start...
> [ ok ] 
>  *   Building nylon extension...
> [ !! ]
>  * Extension build failed, see ./gnap_make-20051228.err and .out for
> det  [ !! ]
>  * Cleaning temporary directories...
> [ ok ] 
> Build failed, try man gnap_make for more help
> 
> 
> # cat gnap_make-20051228.err
> >>> Regenerating /etc/ld.so.cache...
> 
> 
> Performing Global Updates: /usr/portage/profiles/updates/4Q-2005
> (Could take a couple of minutes if you have a lot of binary
> packages.) 
>   .='update pass'  *='binary update'  @='/var/db move'
>   s='/var/db SLOT move' S='binary SLOT move'
> p='update /etc/portage/package.*'
> 
> 
> # cat gnap_make-20051228.out
> ........................
> Calculating dependencies 
> 
> !!! Problem in sys-apps/portage dependencies.
> !!! [Errno 38] Function not implemented:
> '/var/cache/edb/dep//usr/portage/sys-apps/.update.8098.portage-2.0.53'
> exceptions
> Calculating dependencies
> 
> !!! Problem in net-proxy/nylon dependencies. 
> !!! [Errno 38] Function not implemented:
> '/var/cache/edb/dep//usr/portage/net-proxy/.update.8144.nylon-1.2-r2'
> exceptions
> Gentoo Catalyst, version 1.1.10.10
> Copyright 2003-2005 The Gentoo Foundation 
> Distributed under the GNU General Public License version 2
> 
> Using command line specified Catalyst configuration
> file, /etc/catalyst/catalyst.conf
> Setting storedir to config file value "/var/tmp/catalyst" 
> Setting portdir to default value "/usr/portage"
> Setting distdir to config file value "/usr/portage/distfiles"
> Setting options to config file value "pkgcache kerncache"
> Setting sharedir to config file value "/usr/lib/catalyst" 
> Package cache support enabled.
> Kernel cache support enabled.
> 
>         WARNING: No value set for key: grp/use
>         deleting key: grp/use
> 
> Building natively for x86
> Checking for processes running in chroot and killing them. 
> Running command
> "/bin/bash /usr/lib/catalyst/targets/support/kill-chroot-pids.sh"
> Running action sequence: dir_setup
> Setting up directories...
> Running action sequence: unpack_and_bind
> Unpacking stage tarball... 
> Running command "/bin/tar
> xjpf /var/tmp/catalyst/builds/gnap/stage3-x86-20051228.tar.bz2
> -C /var/tmp/catalyst/tmp/gnap/grp-x86-20051228"
> Unpacking portage tree snapshot...
> Running command "/bin/tar xjpf /var/tmp/catalyst/snapshots/portage-
> 20051228.tar.bz2 -C /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/usr"
> Configuring profile link...
> Running command "rm
> -f /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.profile"
> Running command "ln
> -sf ../usr/portage/profiles/uclibc/x86/hardened /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.profile" 
> Running action sequence: chroot_setup
> Setting up chroot...
> Running command
> "cp /etc/resolv.conf /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc"
> Running command
> "mv /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts.bck" 
> Running command
> "cp /etc/hosts /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts"
> Running command "rm
> -f /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.conf"
> Running action sequence: setup_environment 
> Running action sequence: run_local
> Running command "/bin/bash /usr/lib/catalyst/targets/grp/grp.sh run
> pkgset nylon 'nylon' 'libevent'"
> 
> Traceback (most recent call last):
>   File "modules/grp_target.py", line 44, in run_local 
>     cmd("/bin/bash "+self.settings["sharedir"]+\
>   File "/usr/lib/catalyst/modules/catalyst_support.py", line 102, in
> cmd
>     raise CatalystError,myexc
> CatalystError: <unprintable instance object> 
> None
> 
> !!! catalyst: GRP build aborting due to error.
> 
> On 12/28/05, Thierry Carrez <koon@gentoo.org> wrote:
>         João Brázio wrote:
>         
>         > I've been trying to configure GNAP as a VPN server without
>         any success. 
>         >
>         > I want to allow 10 clients connected to the VPN server at
>         the same time
>         > and each one of them should have a different local IP
>         address. This is
>         > possible to do with a bridge.
>         
>         This is also possible to do without a bridge, using OpenVPN
>         2.0 "server"
>         mode. See http://openvpn.net/howto.html
>         
>         > I need to create br0 bridge with eth0 with tap0. The problem
>         is that I 
>         > can't see the interfaces when I do ifconfig -a altought i
>         can see 
>         > /dev/net/tun so I think TUN/TAP module is loaded.
>         
>         GNAP vanilla kernel is missing bridge support.
>         
>         > Can this be done with a vanilla GNAP system ?
>         > How is supposed to use the USE_VPN flag on GNAP, p2p VPN or
>         a 
>         > Server-to-many solution ?
>         
>         USE_VPN triggers the use of OpenVPN. It supports both modes.
>         
>         --
>         Thierry Carrez (Koon)
>         GNAP Developer
>         --
>         gentoo-embedded@gentoo.org mailing list
>         
> 
> 
> 
> -- 
> 
> Cumprimentos,
> João Brázio.

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-28 19:09   ` João Brázio
  2005-12-28 23:22     ` Natanael Copa
@ 2005-12-29 10:01     ` Thierry Carrez
  2005-12-29 10:24       ` João Brázio
  1 sibling, 1 reply; 16+ messages in thread
From: Thierry Carrez @ 2005-12-29 10:01 UTC (permalink / raw
  To: gentoo-embedded

João Brázio wrote:

> It works great but now I've got another problem, I'm trying to compile
> GNAP with nylon, a sock proxy and the following error occurs:
> [...]

Try :

# chroot /var/tmp/catalyst/tmp/gnap/grp-x86-20051228 /bin/bash
# emerge -av nylon libevent

And see how it works. One of those ebuilds might have some
uclibc-related problems.

Also this doesn't sound too good :

> Calculating dependencies
> 
> !!! Problem in net-proxy/nylon dependencies.
> !!! [Errno 38] Function not implemented:
> '/var/cache/edb/dep//usr/portage/net-proxy/.update.8144.nylon-1.2-r2'
> exceptions

but I have no clue about it.

-- 
Koon
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 10:01     ` Thierry Carrez
@ 2005-12-29 10:24       ` João Brázio
  2005-12-29 10:30         ` Brian Harring
  0 siblings, 1 reply; 16+ messages in thread
From: João Brázio @ 2005-12-29 10:24 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 3298 bytes --]

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.portage-2.0.53'
exceptions

# emerge -av nylon libevent

These are the packages that I would merge, in order:

Calculating dependencies

!!! Problem in net-proxy/nylon dependencies.
!!! [Errno 38] Function not implemented:
'/var/cache/edb/dep//usr/portage/net-proxy/.update.23864.nylon-1.2-r2'
exceptions

# emerge --regen
Regenerating cache entries...
processing app-accessibility/SphinxTrain

  error processing app-accessibility/SphinxTrain-0.9.1-r1, continuing...
([Errno 38] Function not implemented:
'/var/cache/edb/dep//usr/portage/app-accessibility/.update.24051.SphinxTrain-
0.9.1-r1')
processing app-accessibility/at-poke

  error processing app-accessibility/at-poke-0.2.2, continuing... ([Errno
38] Function not implemented:
'/var/cache/edb/dep//usr/portage/app-accessibility/.update.24051.at-
poke-0.2.2')
processing app-accessibility/brltty

  error processing app-accessibility/brltty-3.6.1-r1, continuing... ([Errno
38] Function not implemented:
'/var/cache/edb/dep//usr/portage/app-accessibility/.update.24051.brltty-
3.6.1-r1')

  error processing app-accessibility/brltty-3.6, continuing... ([Errno 38]
Function not implemented:
'/var/cache/edb/dep//usr/portage/app-accessibility/.update.24051.brltty-3.6
')

  error processing app-accessibility/brltty-3.5, continuing... ([Errno 38]
Function not implemented:
'/var/cache/edb/dep//usr/portage/app-accessibility/.update.24051.brltty-3.5
')
processing app-accessibility/dasher

  error processing app-accessibility/dasher-3.2.18, continuing... ([Errno
38] Function not implemented:
'/var/cache/edb/dep//usr/portage/app-accessibility/.update.24051.dasher-
3.2.18')

  error processing app-accessibility/dasher-3.2.16, continuing... ([Errno
38] Function not implemented:
'/var/cache/edb/dep//usr/portage/app-accessibility/.update.24051.dasher-
3.2.16')
  error processing app-accessibility/dasher-3.2.17, continuing... ([Errno
38] Function not implemented:
'/var/cache/edb/dep//usr/portage/app-accessibility/.update.24051.dasher-
3.2.17')
sandbox:  Caught signal 2 in pid 24388
[...]


I'm now trying to remerge on my live system the uclibc..


On 12/29/05, Thierry Carrez <koon@gentoo.org> wrote:
>
> João Brázio wrote:
>
> > It works great but now I've got another problem, I'm trying to compile
> > GNAP with nylon, a sock proxy and the following error occurs:
> > [...]
>
> Try :
>
> # chroot /var/tmp/catalyst/tmp/gnap/grp-x86-20051228 /bin/bash
> # emerge -av nylon libevent
>
> And see how it works. One of those ebuilds might have some
> uclibc-related problems.
>
> Also this doesn't sound too good :
>
> > Calculating dependencies
> >
> > !!! Problem in net-proxy/nylon dependencies.
> > !!! [Errno 38] Function not implemented:
> > '/var/cache/edb/dep//usr/portage/net-proxy/.update.8144.nylon-1.2-r2'
> > exceptions
>
> but I have no clue about it.
>
> --
> Koon
> --
> gentoo-embedded@gentoo.org mailing list
>
>


--

Cumprimentos,
João Brázio.

[-- Attachment #2: Type: text/html, Size: 3863 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 10:24       ` João Brázio
@ 2005-12-29 10:30         ` Brian Harring
  2005-12-29 10:35           ` João Brázio
  0 siblings, 1 reply; 16+ messages in thread
From: Brian Harring @ 2005-12-29 10:30 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

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.portage-2.0.53
>    ' exceptions

utime or rename offhand...

~harring

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 10:30         ` Brian Harring
@ 2005-12-29 10:35           ` João Brázio
  2005-12-29 10:53             ` Brian Harring
  0 siblings, 1 reply; 16+ messages in thread
From: João Brázio @ 2005-12-29 10:35 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

Dear Brian,

Excuse me but what do you mean with "offhand" ?


On 12/29/05, Brian Harring <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.portage-
> 2.0.53
> >    ' exceptions
>
> utime or rename offhand...
>
> ~harring
>
>
>


--

Cumprimentos,
João Brázio.

[-- Attachment #2: Type: text/html, Size: 1179 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 10:35           ` João Brázio
@ 2005-12-29 10:53             ` Brian Harring
  2005-12-29 12:21               ` João Brázio
  2005-12-29 14:18               ` João Brázio
  0 siblings, 2 replies; 16+ messages in thread
From: Brian Harring @ 2005-12-29 10:53 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]

On Thu, Dec 29, 2005 at 10:35:12AM +0000, João Brázio 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=open(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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 10:53             ` Brian Harring
@ 2005-12-29 12:21               ` João Brázio
  2005-12-29 14:18               ` João Brázio
  1 sibling, 0 replies; 16+ messages in thread
From: João Brázio @ 2005-12-29 12:21 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 2728 bytes --]

OK.. I'm getting out of ideias.

Now I've got the same error with a different file..

# chroot (...)
# emerge portage
[...]
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3200, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1912, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2724, in doebuild
    return
merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
  File "/usr/lib/portage/pym/portage.py", line 2896, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6893, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6502, in treewalk
    if self.mergeme
(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
  File "/usr/lib/portage/pym/portage.py", line 6758, in mergeme
    if self.mergeme
(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6791, in mergeme
    os.utime(mydest,(thismtime,thismtime))
OSError: [Errno 38] Function not implemented: '/etc/make.globals'



On 12/29/05, Brian Harring <ferringb@gentoo.org> wrote:
>
> On Thu, Dec 29, 2005 at 10:35:12AM +0000, João Brázio 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=open(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ão Brázio.

[-- Attachment #2: Type: text/html, Size: 3652 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 10:53             ` Brian Harring
  2005-12-29 12:21               ` João Brázio
@ 2005-12-29 14:18               ` João Brázio
  2005-12-29 14:40                 ` Natanael Copa
  1 sibling, 1 reply; 16+ messages in thread
From: João Brázio @ 2005-12-29 14:18 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 3248 bytes --]

Dear Brian,

The function not implemented is "utime", is this a known bug ?

# cat test.py
import os,time
f = 'foobar'
a = 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)
=================================================================
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="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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ão Brázio 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=open(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ão Brázio.

[-- Attachment #2: Type: text/html, Size: 4407 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 14:18               ` João Brázio
@ 2005-12-29 14:40                 ` Natanael Copa
  2005-12-29 14:55                   ` João Brázio
  0 siblings, 1 reply; 16+ messages in thread
From: Natanael Copa @ 2005-12-29 14:40 UTC (permalink / raw
  To: gentoo-embedded

On tor, 2005-12-29 at 14:18 +0000, João Brázio 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 = 'foobar'
> a = 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)
> =================================================================
> 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="x86"
> AUTOCLEAN="yes"
> CBUILD="i386-gentoo-linux-uclibc"
> CFLAGS="-Os -pipe" 
> CHOST="i386-gentoo-linux-uclibc"
> CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
> CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
> CXXFLAGS="-Os -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoconfig distlocks nodoc noinfo noman sandbox sfperms
> strict"
> GENTOO_MIRRORS="http://distfiles.gentoo.org
> http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
> PKGDIR="/usr/portage/packages"
> PORTAGE_TMPDIR="/var/tmp" 
> PORTDIR="/usr/portage"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="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ão Brázio 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=open(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ão Brázio. 

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 14:40                 ` Natanael Copa
@ 2005-12-29 14:55                   ` João Brázio
  2005-12-29 15:08                     ` Natanael Copa
  0 siblings, 1 reply; 16+ messages in thread
From: João Brázio @ 2005-12-29 14:55 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 4390 bytes --]

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ão Brázio 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 = 'foobar'
> > a = 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)
> > =================================================================
> > 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="x86"
> > AUTOCLEAN="yes"
> > CBUILD="i386-gentoo-linux-uclibc"
> > CFLAGS="-Os -pipe"
> > CHOST="i386-gentoo-linux-uclibc"
> > CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
> /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
> > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
> > CXXFLAGS="-Os -pipe"
> > DISTDIR="/usr/portage/distfiles"
> > FEATURES="autoconfig distlocks nodoc noinfo noman sandbox sfperms
> > strict"
> > GENTOO_MIRRORS="http://distfiles.gentoo.org
> > http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
> > PKGDIR="/usr/portage/packages"
> > PORTAGE_TMPDIR="/var/tmp"
> > PORTDIR="/usr/portage"
> > SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> > USE="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ão Brázio 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=open(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ão Brázio.
>
> --
> gentoo-embedded@gentoo.org mailing list
>
>


--

Cumprimentos,
João Brázio.

[-- Attachment #2: Type: text/html, Size: 7299 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 14:55                   ` João Brázio
@ 2005-12-29 15:08                     ` Natanael Copa
  2005-12-29 16:15                       ` Thierry Carrez
  0 siblings, 1 reply; 16+ messages in thread
From: Natanael Copa @ 2005-12-29 15:08 UTC (permalink / raw
  To: gentoo-embedded

On tor, 2005-12-29 at 14:55 +0000, João Brázio wrote:
> Nice catch !
> How do I update them according to my running kernel ? (A little bit
> offtopic..)

probably by pointing /etc/make.profile to a 2.4 profile.

emerge kernel-headers
emerge uclibc

I believe that should be enough.
 
> 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ão Brázio 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 = 'foobar'
>         > a = 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)
>         >
>         =================================================================
>         > 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="x86"
>         > AUTOCLEAN="yes"
>         > CBUILD="i386-gentoo-linux-uclibc"
>         > CFLAGS="-Os -pipe" 
>         > CHOST="i386-gentoo-linux-uclibc"
>         >
>         CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
>         > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
>         > CXXFLAGS="-Os -pipe"
>         > DISTDIR="/usr/portage/distfiles"
>         > FEATURES="autoconfig distlocks nodoc noinfo noman sandbox
>         sfperms
>         > strict"
>         > GENTOO_MIRRORS="http://distfiles.gentoo.org
>         > http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
>         > PKGDIR="/usr/portage/packages" 
>         > PORTAGE_TMPDIR="/var/tmp"
>         > PORTDIR="/usr/portage"
>         > SYNC="rsync://rsync.gentoo.org/gentoo-portage"
>         > USE="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ão
>         Brázio 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=open(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ão Brázio.
>         
>         --
>         gentoo-embedded@gentoo.org mailing list
>         
> 
> 
> 
> -- 
> 
> Cumprimentos,
> João Brázio. 

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 15:08                     ` Natanael Copa
@ 2005-12-29 16:15                       ` Thierry Carrez
  2005-12-29 19:02                         ` João Brázio
  0 siblings, 1 reply; 16+ messages in thread
From: Thierry Carrez @ 2005-12-29 16:15 UTC (permalink / raw
  To: gentoo-embedded

Natanael Copa wrote:
> On tor, 2005-12-29 at 14:55 +0000, João Brázio wrote:
> 
>>Nice catch !
>>How do I update them according to my running kernel ? (A little bit
>>offtopic..)
> 
> 
> probably by pointing /etc/make.profile to a 2.4 profile.
> 
> emerge kernel-headers
> emerge uclibc
> 
> I believe that should be enough.

Not sure that would work with GNAP: it builds a 2.6 system so you will
end up with a 2.6-based chroot... What you need is use a 2.6 kernel on
the GNAP build host... or use a 2.4 profile and run Catalyst all by
yourself without GNAP.

-- 
Koon
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-embedded] GNAP+VPN=PROBLEMS
  2005-12-29 16:15                       ` Thierry Carrez
@ 2005-12-29 19:02                         ` João Brázio
  0 siblings, 0 replies; 16+ messages in thread
From: João Brázio @ 2005-12-29 19:02 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

It works like a charm !
I'm very grateful to all of you for the information provided.


On 12/29/05, Thierry Carrez <koon@gentoo.org> wrote:
>
> Natanael Copa wrote:
> > On tor, 2005-12-29 at 14:55 +0000, João Brázio wrote:
> >
> >>Nice catch !
> >>How do I update them according to my running kernel ? (A little bit
> >>offtopic..)
> >
> >
> > probably by pointing /etc/make.profile to a 2.4 profile.
> >
> > emerge kernel-headers
> > emerge uclibc
> >
> > I believe that should be enough.
>
> Not sure that would work with GNAP: it builds a 2.6 system so you will
> end up with a 2.6-based chroot... What you need is use a 2.6 kernel on
> the GNAP build host... or use a 2.4 profile and run Catalyst all by
> yourself without GNAP.
>
> --
> Koon
> --
> gentoo-embedded@gentoo.org mailing list
>
>


--

Cumprimentos,
João Brázio.

[-- Attachment #2: Type: text/html, Size: 1267 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-12-29 19:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-28 11:45 [gentoo-embedded] GNAP+VPN=PROBLEMS João Brázio
2005-12-28 13:34 ` Thierry Carrez
2005-12-28 19:09   ` João Brázio
2005-12-28 23:22     ` Natanael Copa
2005-12-29 10:01     ` Thierry Carrez
2005-12-29 10:24       ` João Brázio
2005-12-29 10:30         ` Brian Harring
2005-12-29 10:35           ` João Brázio
2005-12-29 10:53             ` Brian Harring
2005-12-29 12:21               ` João Brázio
2005-12-29 14:18               ` João Brázio
2005-12-29 14:40                 ` Natanael Copa
2005-12-29 14:55                   ` João Brázio
2005-12-29 15:08                     ` Natanael Copa
2005-12-29 16:15                       ` Thierry Carrez
2005-12-29 19:02                         ` João Brázio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox