Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8483 - postgresql 7.2.2 still has an sandbox violation with perl
Summary: postgresql 7.2.2 still has an sandbox violation with perl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
: 8574 8656 8971 8990 9171 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-27 17:37 UTC by Alexander Holler
Modified: 2007-09-22 23:08 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Still Busted with the 7.2.3 port (sandbox-postgresql-7.2.3-27736.log,68 bytes, text/plain)
2002-10-16 18:37 UTC, Christopher Bryan Olsen
Details
list of installed packets (pkglist,3.47 KB, text/plain)
2002-10-23 17:31 UTC, Sascha Wuestemann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Holler 2002-09-27 17:37:13 UTC
Hi, I get the following error: 
------------------------- 
make[4]: Wechsel in das Verzeichnis Verzeichnis 
Comment 1 Alexander Holler 2002-09-27 17:37:13 UTC
Hi, I get the following error: 
------------------------- 
make[4]: Wechsel in das Verzeichnis Verzeichnis 
»/var/tmp/portage/postgresql-7.2.2/work/postgresql-7.2.2/src/interfaces/perl5« 
Installing 
/var/tmp/portage/postgresql-7.2.2/image/usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Pg/Pg.so 
Installing 
/var/tmp/portage/postgresql-7.2.2/image/usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Pg/Pg.bs 
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree 
Installing 
/var/tmp/portage/postgresql-7.2.2/image/usr/lib/perl5/site_perl/5.6.1/i686-linux/Pg.pm 
Installing 
/var/tmp/portage/postgresql-7.2.2/image/usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Pg/autosplit.ix 
ACCESS DENIED  open_wr:   /usr/share/man/man3/Pg.3pm 
Installing /usr/share/man/man3/Pg.3pm 
ACCESS DENIED  chmod:     /usr/share/man/man3/Pg.3pm 
-----------------------------
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2002-09-30 17:28:04 UTC
rphillips - didn't you just post a corrected ebuild for this? (Or have I
officially lost it?)
Comment 3 Ryan Phillips (RETIRED) gentoo-dev 2002-10-02 02:00:03 UTC
*** Bug 8574 has been marked as a duplicate of this bug. ***
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2002-10-04 07:36:52 UTC
I could duuplicate this problem for a week while testing. Then I emerge 
rsynched and it went away - without any help from me. Do you still have this 
problem when you try to emerge postgres?
Comment 5 Sascha Wuestemann 2002-10-04 10:42:01 UTC
after `emerge rsync` emergeing postgresql worked perfectly.
thanks for solving this problem.
as I am not maintainer of this solved bug, I leave changing it to you.
greetings, sascha
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2002-10-04 11:37:16 UTC
Sascha,

     Sad thing is, I really didn't do anything. It "magically" started working 
on my end too. Going to check with the other devs to see if anyone made any 
unrelated fixes last week that might explain it. Will close out this ticket 
once I'm sure rphillips has had a chance to catch up (the other reader on the 
bug).

Mike
Comment 7 Alexander Holler 2002-10-04 14:11:36 UTC
I've just build a fresh 1.4, still the same problem. 
Comment 8 Ryan Phillips (RETIRED) gentoo-dev 2002-10-07 17:12:07 UTC
The ebuild still flakes on my desktop with gcc 3.2 and latest portage (2.0.38).
 The ebuild works fine on my laptop running 2.0.38 of portage and gcc 3.0.4 (I
know, pretty old)... Maybe it is a gcc 3.2 issue?
Comment 9 Kim Nielsen 2002-10-08 00:27:16 UTC
I have incountered same problem. And writing outside the sandbox should not be a
gcc 3.2 problem.
Comment 10 Daniele Arduini 2002-10-08 09:13:34 UTC
gentoo 1.4_rc1:

emerge postgresql
...
---------------- ACCESS VIOLATION SUMMARY -------------------
LOG FILE = "/tmp/sandbox-postgresql-7.2.2-8212.log"

open_wr:   /usr/share/man/man3/Pg.3pm
chmod:     /usr/share/man/man3/Pg.3pm
-------------------------------------------------------------

I think the problem is how perl generate the Makefile from
the Makefile.PL:

all "INSTALL*" variables are correctly prefixed by the "$(PREFIX)" but
"INSTALLMAN?DIR" variables are not!

Comment 11 SpanKY gentoo-dev 2002-10-10 14:25:26 UTC
*** Bug 8971 has been marked as a duplicate of this bug. ***
Comment 12 SpanKY gentoo-dev 2002-10-10 15:13:51 UTC
*** Bug 8990 has been marked as a duplicate of this bug. ***
Comment 13 Jim Sparks 2002-10-10 17:53:38 UTC
I had no problems with the 7.2.2 ebuild but now I'm getting this problem with
the 7.2.3 ebuild.  I tried doing the rsync thing with no luck.

Is there a work-around for this?
Comment 14 Alexander Holler 2002-10-11 02:45:17 UTC
Workaround: 
emerge unmerge ExtUtils-MakeMaker 
emerge perl 
emerge postgresql 
 
Comment 15 Michael Cummings (RETIRED) gentoo-dev 2002-10-11 07:25:35 UTC
Ryan,

    Locally, I put the gentoo-diff back in and it installed perfectly without 
sandbox violation. The ebuild you commited takes us back to the sandbox 
violation on the 3pm section.
Comment 16 Nick Hadaway 2002-10-11 09:37:29 UTC
I worked with mcummings today on the perl-module.eclass to add some more 
variables so perl modules install without sandboxing.  Please update your 
portage tree and try things again.
Comment 17 Paul de Vrieze (RETIRED) gentoo-dev 2002-10-14 05:56:02 UTC
It still doesn't work:
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-postgresql-7.2.3-29209.log"

open_wr:   /usr/man/man3/Pg.3pm
chmod:     /usr/man/man3/Pg.3pm
--------------------------------------------------------------------------------
Comment 18 Erwann CORVELLEC 2002-10-14 11:01:02 UTC
$ qpkg -v -I portage
sys-apps/portage-2.0.38 *
$ qpkg -v -I perl
sys-devel/perl-5.6.1-r4 *
sys-devel/perl-5.6.1-r8 *
dev-perl/MIME-Base64-2.12-r1 *
dev-perl/URI-1.18 *
dev-perl/Digest-MD5-2.20 *
dev-perl/libnet-1.11 *
dev-perl/HTML-Tagset-3.03-r1 *
dev-perl/HTML-Parser-3.26 *
dev-perl/libwww-perl-5.64 *
dev-perl/mod_perl-1.27 *
dev-perl/CGI-2.78-r2 *
dev-perl/MailTools-1.44 *
dev-perl/POP3Client-2.7-r1 *
dev-perl/Mail-Audit-2.1 *
dev-perl/Digest-SHA1-2.01 *
dev-perl/Digest-HMAC-1.01 *
dev-perl/Net-DNS-0.22 *
dev-perl/Email-Valid-0.14 *
dev-perl/Bit-Vector-6.3 *
dev-perl/Date-Calc-5.0-r3 *
$ qpkg -v -I postgresql
dev-db/postgresql-7.2.2


 Still doesn't work with ExtUtils-MakeMaker :
$ qpkg -v -I ExtUtils-MakeMaker
dev-perl/ExtUtils-MakeMaker-6.03-r1 *
$ emerge postgresql
Calculating dependencies ...done!
>>> emerge dev-db/postgresql-7.2.3 to /
... <<< OUTPUT TRUNCATED >>> ...
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-postgresql-7.2.3-14752.log"

open_wr:   /usr/man/man3/Pg.3pm
chmod:     /usr/man/man3/Pg.3pm
--------------------------------------------------------------------------------


 Or without ExtUtils-MakeMaker :
$ qpkg -v -I ExtUtils-MakeMaker
$ emerge postgresql
Calculating dependencies ...done!
>>> emerge dev-db/postgresql-7.2.3 to /
... <<< OUTPUT TRUNCATED >>> ...
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-postgresql-7.2.3-29736.log"

open_wr:   /usr/man/man3pm/Pg.3pm
chmod:     /usr/man/man3pm/Pg.3pm
--------------------------------------------------------------------------------
Comment 19 SpanKY gentoo-dev 2002-10-15 18:46:54 UTC
*** Bug 8656 has been marked as a duplicate of this bug. ***
Comment 20 SpanKY gentoo-dev 2002-10-15 18:47:08 UTC
*** Bug 9171 has been marked as a duplicate of this bug. ***
Comment 21 Markus Bertheau (RETIRED) gentoo-dev 2002-10-16 14:08:29 UTC
I experienced that today, too. I solved it by fixing src/interfaces/perl5/Makefile 
between compile and install. There is a line in it that reads

INSTALLSITEMAN3DIR = /usr/man/man3

I changed it to

INSTALLSITEMAN3DIR = $(DESTDIR)/usr/man/man3

There are related INSTALL* variables near by, and strangely some of them have
$(DESTDIR) prepended, others don't.
Comment 22 Christopher Bryan Olsen 2002-10-16 18:37:16 UTC
Created attachment 4759 [details]
Still Busted with the 7.2.3 port

water tmp # cat sandbox-postgresql-7.2.3-27736.log
chmod:	   /usr/man/man3pm/Pg.3pm
unlink:    /usr/man/man3pm/Pg.3pm
Comment 23 Kurt Hindenburg 2002-10-16 18:50:43 UTC
Follow comment #20.  You just need to add the $(DESTDIR) in front of the one
INSTALLSITE line under src/interfaces/perl5/Makefile.

It worked on my system with 7.2.3.ebuild
Comment 24 Michael Cummings (RETIRED) gentoo-dev 2002-10-18 06:15:38 UTC
OK, this is embarrassing. The reason this has worked for me locally for the 
last month is because (put that heavy, blunt rock down) I had locally made a 
fix to the perl-diff file that among other things accounted for the man page 
locations. I just commited the new diff file and the modified ebuild that calls 
the diff. Please rsync and let me know if this works for you all.
Comment 25 Erwann CORVELLEC 2002-10-18 09:28:19 UTC
It works for me now.
Comment 26 Sascha Wuestemann 2002-10-18 10:59:01 UTC
I emerged rsync (installed new perl version and gtk-perl, which problem seems 
to be fixed now) but emerging postgresql failed strangly:

---schnipp---
These are the packages that I would merge, in order.

Calculating dependencies ...done!
[ebuild  N   ] dev-db/postgresql-7.2.3

Calculating dependencies \>>> Unpacking source...
>>> Source unpacked.

>>> Install postgresql-7.2.3 into /var/tmp/portage/postgresql-7.2.3/image/ 
categ
ory dev-db
strip:
>>> Completed installing into /var/tmp/portage/postgresql-7.2.3/image/

 ...done!
>>> emerge dev-db/postgresql-7.2.3 to /
>>> Merging dev-db/postgresql-7.2.3 to /

>>> Regenerating /etc/ld.so.cache...
>>> dev-db/postgresql-7.2.3 merged.
>>> Recording dev-db/postgresql in "world" favorites file...

 * GNU info directory index is up-to-date.
---schnapp---

command was `emerge postgresql 2>&1 | tee -a emerge.postgresql`

`find / -name postgres*` gives the following:
---schnipp---
/var/tmp/portage/postgresql-7.2.3
/var/cache/edb/dep/dev-db/postgresql-7.2-r2
/var/cache/edb/dep/dev-db/postgresql-7.2-r3
/var/cache/edb/dep/dev-db/postgresql-7.2.1-r1
/var/cache/edb/dep/dev-db/postgresql-7.2.1-r2
/var/cache/edb/dep/dev-db/postgresql-7.2.1
/var/cache/edb/dep/dev-db/postgresql-7.2.2
/var/cache/edb/dep/dev-db/postgresql-7.2.3
/var/db/pkg/dev-db/postgresql-7.2.3
/var/db/pkg/dev-db/postgresql-7.2.3/postgresql-7.2.3.ebuild
/usr/portage/dev-db/postgresql
/usr/portage/dev-db/postgresql/files/7.1.3/postgresql
/usr/portage/dev-db/postgresql/files/7.2/postgresql
/usr/portage/dev-db/postgresql/files/7.2.1/postgresql
/usr/portage/dev-db/postgresql/files/7.2.2/postgresql
/usr/portage/dev-db/postgresql/files/7.2.3/postgresql
/usr/portage/dev-db/postgresql/files/postgres
/usr/portage/dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.di
f
f
/usr/portage/dev-db/postgresql/files/postgresql-7.1.3-dyn-libperl-gentoo.diff
/usr/portage/dev-db/postgresql/files/postgresql-7.1.3-perl5-GNUmakefile-gentoo.
d
iff
/usr/portage/dev-db/postgresql/files/postgresql-7.1.3-python21-makefiles-gentoo
.
diff
/usr/portage/dev-db/postgresql/files/postgresql-7.2-dyn-libperl-gentoo.diff
/usr/portage/dev-db/postgresql/files/postgresql-7.2.1-dyn-libperl-gentoo.diff
/usr/portage/dev-db/postgresql/files/postgresql-7.2.2-dyn-libperl-gentoo.diff
/usr/portage/dev-db/postgresql/files/postgresql-7.2.2-perl-gentoo.diff
/usr/portage/dev-db/postgresql/files/postgresql-7.2.3-dyn-libperl-gentoo.diff
/usr/portage/dev-db/postgresql/files/postgresql-7.2.3-perl-gentoo.diff
/usr/portage/dev-db/postgresql/postgresql-7.2-r2.ebuild
/usr/portage/dev-db/postgresql/postgresql-7.2-r3.ebuild
/usr/portage/dev-db/postgresql/postgresql-7.2.1-r1.ebuild
/usr/portage/dev-db/postgresql/postgresql-7.2.1-r2.ebuild
/usr/portage/dev-db/postgresql/postgresql-7.2.1.ebuild
/usr/portage/dev-db/postgresql/postgresql-7.2.2.ebuild
/usr/portage/dev-db/postgresql/postgresql-7.2.3.ebuild
/usr/portage/metadata/cache/dev-db/postgresql-7.0.3-r3
/usr/portage/metadata/cache/dev-db/postgresql-7.1-r1
/usr/portage/metadata/cache/dev-db/postgresql-7.1.3-r4
/usr/portage/metadata/cache/dev-db/postgresql-7.2-r2
/usr/portage/metadata/cache/dev-db/postgresql-7.2-r3
/usr/portage/metadata/cache/dev-db/postgresql-7.2.1
/usr/portage/metadata/cache/dev-db/postgresql-7.2.1-r1
/usr/portage/metadata/cache/dev-db/postgresql-7.2.1-r2
/usr/portage/metadata/cache/dev-db/postgresql-7.2.2
/usr/portage/metadata/cache/dev-db/postgresql-7.2.3
---schnapp---

info: fresh 1.4 and uptodate rsync (see above).

regars.
Comment 27 Sascha Wuestemann 2002-10-23 17:31:02 UTC
Created attachment 4955 [details]
list of installed packets

Maybe my last posting wasn't explained good enough for quick reading and so 
it was ignored.

emerge postgres fails, because it is installed into 

/var/tmp/portage/postgresql-7.2.3/image/

and not copied into / (even not compiled, I assume)

This is a behavior which I sometimes notice when several packages are emerged,
but they will be found at e.g. /usr in the end. postgres is not!

I have done a lot emerge rsync for a couple of days and I am still waiting to
get this fixed. Today I emerged -u system and world, but still the same.

if the attachment thingy works you will find a pgklist encluded to this posting

(my first try of attaching anything).

greetings, Sascha
Comment 28 Ryan Phillips (RETIRED) gentoo-dev 2002-10-27 13:07:47 UTC
Sasha: If your big is still valid, please open a new bug report.