Gentoo Archives: gentoo-dev

From: Daniel <dragonheart@×××××××.au>
To: Torsten Veller <ml-en@××××××.net>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] wwwoffle ebuild problem with tar commmand on symbolic links
Date: Sun, 04 Jan 2004 05:24:52
Message-Id: 200401041445.32329.dragonheart@tpg.com.au
In Reply to: [gentoo-dev] wwwoffle ebuild problem with tar commmand on symbolic links by Torsten Veller
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Wed, 31 Dec 2003 08:40 pm, Torsten Veller wrote:
5 > Hi,
6 >
7 > i hope this list is okay, if not,....
8 >
9 > i am trying to write a wwwoffle ebuild. At the moment i am having
10 > problems with src_install. src_install calls
11 > "make DESTDIR=${D} install || die"
12 >
13 > # ebuild wwwoffle-2.8a.ebuild install
14 > stops at the tar command with the following output:
15 >
16 > tar cf /var/tmp/portage/wwwoffle-2.8a/image//var/spool/wwwoffle/html.tar
17 > html && cd /var/tmp/portage/wwwoffle-2.8a/image//var/spool/wwwoffle && tar
18 > xpf html.tar && rm html.tar tar: html/de/search/htdig/index.html: Cannot
19 > change ownership to uid 0, gid 0: No such file or directory tar:
20 > html/en/search/htdig/index.html: Cannot change ownership to uid 0, gid 0:
21 > No such file or directory [...]
22 >
23 > So what's the problem here? Is this a portage problem?
24 >
25
26 Portage is being run as the portage user (FEATURES userpriv) and cannot create
27 uid 0 files. Options to fix this are:
28
29 1. Unpack the tar before the make does using the 'unpack' directive and hope
30 that the make process detects that it is unpacked.
31 2. Hack the make process to change the tar command to "tar
32 - --no-same-owner" ...
33 Could use:
34 sed -i -e 's#tar #tar --no-same-owner #' Makefile
35 or some variation of it.
36
37 - --
38
39 Daniel Black
40 - --
41 Proudly a Gentoo Linux User.
42 GnuPG/PGP signed and encrypted email preferred
43 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8
44 -----BEGIN PGP SIGNATURE-----
45 Version: GnuPG v1.2.3 (GNU/Linux)
46
47 iD8DBQE/96FkTDSbtjKmTcgRAmZEAKDEdb51ryuxiO+Sam+u1ZuNqzKLwACg3D66
48 1m1PNpRV/Wi8Lwd3keLOUoo=
49 =IeNE
50 -----END PGP SIGNATURE-----
51
52
53 --
54 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] wwwoffle ebuild problem with tar commmand on symbolic links Torsten Veller <ml-en@××××××.net>