Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34088 - openssl-0.9.7c-r1 fails to install openssl.pc due to permission issue
Summary: openssl-0.9.7c-r1 fails to install openssl.pc due to permission issue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
: 34286 35451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-22 02:12 UTC by Li Zhengang
Modified: 2004-03-05 11:35 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Li Zhengang 2003-11-22 02:12:03 UTC
A newly installed Gentoo 1.4( 20030911 livecd) from GRP packages.
After " emerge sync ", I did a " emerge -uv system " update,
the openssl-0.9.7c-r1 always fails. the error looks like this:

!!! Failed to move
/var/tmp/portage-pkg/openssl-0.9.7c-r1/bin/usr/lib/pkgconfig/openssl.pc to
/usr/lib/pkgconfig/openssl.pc
!!! [Errno 13] Permission denied

the actual openssl.pc has the permission " -rw-r--r-- "
neither can I remove or unlink the file manually

And I did try packaging a tbz2 package from other system, then " emerge -ukv
openssl-0.9.7c-r1.tbz2" in the local environment. Still the same error.

my "emerge info" prints these:
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test9-mm4)
=================================================================
System uname: 2.6.0-test9-mm4 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.3.12
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox autoaddcvs ccache distcc"
GENTOO_MIRRORS="http://ftp1.fudan.edu.cn http://ftp1.fudan.edu.cn/dist-lack
ftp://ftp.tsinghua.edu.cn/mirror/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://ftp1.fudan.edu.cn/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif imlib jpeg libg++ libwww
mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png quicktime sdl
spell svga truetype xml2 xmms xv zlib gdbm berkdb readline tcpd pam ssl perl
python cscope -X -slang -gtk -gnome -alsa -java -qt -arts -kde -gpm"


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2003-11-22 14:48:36 UTC
please fsck your system
Comment 2 Li Zhengang 2003-11-23 00:54:44 UTC
OK, I found the problem.
it is not a file system corrupt reason.
the originall stage3 tarball seems to set the /usr/lib/pkgconfig directory's permission to " drw-r--r--",
which would cause a permission error when deleting any file in that directory.
and so does the openssl package, where the "openssl.pc" reside in /var/tmp/portage/openssl-0.9.7c-r1/image/usr/lib/pkgconfig.

I just manually added a "x" permission to both /usr/lib/pkgconfig and /var/tmp/portage/openssl-0.9.7c-r1/image/usr/lib/pkgconfig( exactly after "ebuild install" before" ebuild qmerge".
now the package is installed.
Comment 3 SpanKY gentoo-dev 2003-11-24 14:27:01 UTC
*** Bug 34286 has been marked as a duplicate of this bug. ***
Comment 4 Chris Millard 2003-12-09 10:32:03 UTC
I could be incorrect about this, but I believe the sequence is:
compile
install
merge
chmod u+x /usr/lib/pkgconfig
chmod u+x /var/tmp/portage-pkg/openssl-0.9.7c-r1/bin/usr/lib/pkgconfig
qmerge

Worked for me.
I wonder if there isn't anything that can be done to prevent this problem?  It looks like the pkgconfig directory in /var/tmp/ gets created with rw- permissions every time.
Comment 5 SpanKY gentoo-dev 2003-12-11 16:32:54 UTC
*** Bug 35451 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2003-12-11 16:33:11 UTC
going to have the release guys double check their stuff
Comment 7 SpanKY gentoo-dev 2003-12-11 16:33:43 UTC
release peeps, could you make sure comment #2 is fixed in all the current tarballs
Comment 8 Chris Millard 2003-12-11 19:11:51 UTC
SpanKY --
I think part of the problem lies somewhere in the ebuild/source tarball for openssl.  Every time I emerge openssl (after the 'install' step I believe, I don't recall), /var/tmp/portage/openssl-0.9.7c-r1/image/usr/lib/pkgconfig *always* gets *created* with rw- permissions.  Even with proper permissions on usr/lib/pkgconfig I still get this problem.

Thanks for looking into this =)
Comment 9 Venkat Manakkal 2003-12-14 18:58:12 UTC
Please see http://bugs.gentoo.org/attachment.cgi?id=22227&action=view - sorry I submitted to the duplicate. The attachment is an ebuild that has a quick hack to fix the missing execute permission on the /usr/lib/pkgconfig/. This ebuild compiles, installs and qmerges without a problem.
Comment 10 SpanKY gentoo-dev 2003-12-14 21:42:08 UTC
ok, the openssl ebuild has been fixed ... tarball makers, could you make sure your end is fixed too ?
Comment 11 John Davis (zhen) (RETIRED) gentoo-dev 2004-03-05 11:35:22 UTC
its fixed on our end