Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48196 - /usr/lib/pkgconfig los t "+x" permission (was: openoffice-1.1.1 fails to compile with 'userpriv')
Summary: /usr/lib/pkgconfig los t "+x" permission (was: openoffice-1.1.1 fails to comp...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-18 02:09 UTC by Daniel Seyffer
Modified: 2004-05-03 11:44 UTC (History)
1 user (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 Daniel Seyffer 2004-04-18 02:09:50 UTC
Trying to update OpenOffice to 1.1.1 gives me:

#######################################################################
# LANGUAGE=49 emerge -u openoffice
[...]
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XOpenDisplay in -lX11... yes
checking for gnu_get_libc_version in -lc... yes
checking the installed libc is at least version 2.1.1... checked
checking for bison... /usr/bin/bison
checking for flex... /usr/bin/flex
checking for patch... /usr/bin/patch
checking for zip... /usr/bin/zip
checking GPC files... GPC files found
checking for pkg-config... /usr/bin/pkg-config
checking for libstartup-notification-1.0 >= 0.5 ... Failed to open '/usr/lib/pkgconfig/libstartup-notification-1.0.pc': Permission denied
No package 'libstartup-notification-1.0' found

configure: error: Library requirements (libstartup-notification-1.0 >= 0.5 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

!!! ERROR: app-office/openoffice-1.1.1 failed.
!!! Function src_compile, Line 331, Exitcode 1
!!! (no error message)
#######################################################################

Unsetting the FEATURES flag 'userpriv' and it gets past this point of configure. (it is currently still compiling in the background... ;-))

checking the file...nothing particular.
# ls -laF | grep libstartup
-rw-r--r--    1 root root   268  9. Apr 11:24 libstartup-notification-1.0.pc

checking the directory:
# cd .. ; ls -laF | grep pkgconfig
drw-r--r--    2 root root    5880 13. Apr 13:08 pkgconfig/
-> :-o uuups! That seems quite broken to me.

# qpkg -f /usr/lib/pkgconfig/libstartup-notification-1.0.pc
x11-libs/startup-notification *

using x11-base/xorg-x11-6.7.0

#######################################################################
emerge --info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.5)
=================================================================
System uname: 2.6.5 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.4.9
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow S3TC X aalib acpi acpi4linux alsa apache2 apm arts artswrappersuid avi berkdb bonobo cdr crypt cups dga directfb dvb dvd dvdr encode esd ethereal evo fbcon fbdev foomaticdb freetype gb gdbm gif gnome gphoto2 gpm gtk gtk2 gtk2i gtkhtml guile hbci icq imagemagick imap imlib java javascript jikes joystick jpeg kde lcms libg++ libwww linguas_de mad maildir mikmod mmx motif mozilla moznocompose moznoirc mpeg mysql ncurses nls nptl oav oggvorbis opengl pam pcmcia pdflib perl pic png pnp ppds python qt quicktime readline samba sdl slang spell sse ssl svga tcpd tiff transcode truetype trusted type1 usb videos x86 xml xml2 xmms xv zlib"
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2004-04-26 12:40:57 UTC
Apparently the rights on the .pc file are not correct. Please use chmod to make the file world readable.
Comment 2 foser (RETIRED) gentoo-dev 2004-04-26 13:30:29 UTC
The dir rights are broken, but it's fine here, so i don't know how this could happen.

startup-notification giving problems is a symptom, but probably unrelated. i bet there are way more .pc files available.
Comment 3 Daniel Seyffer 2004-04-27 09:25:23 UTC
Ooh, sure, foser you are right - I didn't realize back then that this was _the_ pkgconfig directory. :-o So you're probably right, that startup-notification is not really directly related. ;-)
I changed this bug's subject accordingly.

Sure I can change the directory's permissions back manually (I did) and as long as I don't use privsep I won't have problems either. 
Question remains what (which ebuild?) made the permissions change...quite strange.
Comment 4 Daniel Seyffer 2004-05-03 11:44:55 UTC
Hhmm. I'll feel so free to mark this resolved/WORKSFORME as it was easy to fix/workaround, I don't see how this could possibly happen, also seems it just happened to me and probably this whole thing can't be easily reproduced... ;-) *never mind*