Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15068 - redhat-artwork 0.63 fails to build due to sandbox errors
Summary: redhat-artwork 0.63 fails to build due to sandbox errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-03 14:32 UTC by Arno Ekkes
Modified: 2003-02-22 13:39 UTC (History)
2 users (show)

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


Attachments
an ebuild which also builds the bluecurve qt style (redhat-artwork-0.63.ebuild.marko,4.56 KB, text/plain)
2003-02-12 17:58 UTC, Marko van Dooren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arno Ekkes 2003-02-03 14:32:08 UTC
redhat-artworks fails to build, because of sandbox errors.
When trying to build with kde in the USE-var it crashs with the following output:

-- Installing theme Bluecurve
mkdir
/var/tmp/portage/redhat-artwork-0.63/image/usr/share/themes/Bluecurve/metacity-1
-- Installing ./Bluecurve/menu.png
-- Installing ./Bluecurve/maximize.png
-- Installing ./Bluecurve/bottom_left.png
-- Installing ./Bluecurve/bottom_right.png
-- Installing ./Bluecurve/minimize.png
-- Installing ./Bluecurve/restore.png
-- Installing ./Bluecurve/white_stripes_tile.png
-- Installing ./Bluecurve/title-blocker-bottom.png
-- Installing ./Bluecurve/close.png
-- Installing ./Bluecurve/metacity-theme-1.xml
-- Installing ./Bluecurve/title-blocker-right.png
-- Installing ./Bluecurve/title-gradient-bottom.png
make[3]: Leaving directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/metacity'
make[2]: Leaving directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/metacity'
Making install in kde
make[2]: Entering directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/kde'
Making install in kwin
make[3]: Entering directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/kde/kwin'
Making install in Bluecurve
make[4]: Entering directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/kde/kwin/Bluecurve'
make[5]: Entering directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/kde/kwin/Bluecurve'
make[5]: Nothing to be done for `install-exec-am'.
/bin/sh ../../../../mkinstalldirs \/usr/kde/3.1/lib
/bin/sh ../../../../libtool  --mode=install /bin/install -c -p kwin_bluecurve.la
\/usr/kde/3.1/lib/kwin_bluecurve.la
/bin/install -c -p .libs/kwin_bluecurve.so.0.0.0
/usr/kde/3.1/lib/kwin_bluecurve.so.0.0.0
ACCESS DENIED  open_wr:   /usr/kde/3.1/lib/kwin_bluecurve.so.0.0.0
/bin/install: cannot create regular file
`/usr/kde/3.1/lib/kwin_bluecurve.so.0.0.0': Permission denied
make[5]: *** [install-kde_moduleLTLIBRARIES] Error 1
make[5]: Leaving directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/kde/kwin/Bluecurve'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/kde/kwin/Bluecurve'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/kde/kwin'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art/kde'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/redhat-artwork-0.63/work/redhat-artwork-0.63/art'
make: *** [install-recursive] Error 1
!!! ERROR: x11-themes/redhat-artwork-0.63 failed.
!!! Function src_install, Line 127, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-redhat-artwork-0.63-855.log"

open_wr:   /usr/kde/3.1/lib/kwin_bluecurve.so.0.0.0
--------------------------------------------------------------------------------

Without kde in the USE-variables it builds perfectly.

And maybe there is something wrong during the configure-stage.
The following errors messages were displayed:
./config.status: line 1191: ./intltool-extract.in: No such file or directory
mv: cannot stat `intltool-extract.out': No such file or directory
chmod: failed to get attributes of `intltool-extract': No such file or directory
chmod: failed to get attributes of `intltool-extract': No such file or directory
./config.status: line 1200: ./intltool-merge.in: No such file or directory
mv: cannot stat `intltool-merge.out': No such file or directory
chmod: failed to get attributes of `intltool-merge': No such file or directory
chmod: failed to get attributes of `intltool-merge': No such file or directory
./config.status: line 1209: ./intltool-update.in: No such file or directory
mv: cannot stat `intltool-update.out': No such file or directory
chmod: failed to get attributes of `intltool-update': No such file or directory
chmod: failed to get attributes of `intltool-update': No such file or directory

And these one:
sh: line 1: xcursorgen: command not found
Error running xcursorgen for crosshair
sh: line 1: xcursorgen: command not found
Error running xcursorgen for right_ptr
sh: line 1: xcursorgen: command not found
Error running xcursorgen for top_left_corner
sh: line 1: xcursorgen: command not found
Error running xcursorgen for left_ptr
sh: line 1: xcursorgen: command not found
Error running xcursorgen for spraycan
sh: line 1: xcursorgen: command not found
Error running xcursorgen for gumby
sh: line 1: xcursorgen: command not found
Error running xcursorgen for dotbox
sh: line 1: xcursorgen: command not found
Error running xcursorgen for heart
sh: line 1: xcursorgen: command not found
Error running xcursorgen for arrow
sh: line 1: xcursorgen: command not found
Error running xcursorgen for question_arrow
sh: line 1: xcursorgen: command not found
Error running xcursorgen for top_right_corner
sh: line 1: xcursorgen: command not found
Error running xcursorgen for trek
sh: line 1: xcursorgen: command not found
Error running xcursorgen for bottom_side
sh: line 1: xcursorgen: command not found
Error running xcursorgen for man
sh: line 1: xcursorgen: command not found
Error running xcursorgen for gobbler
sh: line 1: xcursorgen: command not found
Error running xcursorgen for plus
sh: line 1: xcursorgen: command not found
Error running xcursorgen for spider
sh: line 1: xcursorgen: command not found
Error running xcursorgen for dot
sh: line 1: xcursorgen: command not found
Error running xcursorgen for bottom_right_corner
sh: line 1: xcursorgen: command not found
Error running xcursorgen for pirate
sh: line 1: xcursorgen: command not found
Error running xcursorgen for exchange
sh: line 1: xcursorgen: command not found
Error running xcursorgen for watch
sh: line 1: xcursorgen: command not found
Error running xcursorgen for draft_small
sh: line 1: xcursorgen: command not found
Error running xcursorgen for pencil
sh: line 1: xcursorgen: command not found
Error running xcursorgen for top_side
sh: line 1: xcursorgen: command not found
Error running xcursorgen for tcross
sh: line 1: xcursorgen: command not found
Error running xcursorgen for top_left_arrow
sh: line 1: xcursorgen: command not found
Error running xcursorgen for umbella
sh: line 1: xcursorgen: command not found
Error running xcursorgen for mouse
sh: line 1: xcursorgen: command not found
Error running xcursorgen for star
sh: line 1: xcursorgen: command not found
Error running xcursorgen for bottom_left_corner
sh: line 1: xcursorgen: command not found
Error running xcursorgen for center_ptr

I don't know if it's important. I hope it helps.

My emerge info gives the following output:
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ libwww mikmod mmx
mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gdbm
berkdb slang readline tcltk java guile X sdl tcpd pam ssl perl python esd imlib
oggvorbis gnome gtk qt kde motif opengl alsa -arts bonobo cdr dvd -gpm -svga evo
gb gd gtkhtml mbox mozilla pda pic scanner xml"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

I hope this was usefull.
Good luck!
Comment 1 Marko van Dooren 2003-02-12 17:58:53 UTC
Created attachment 8208 [details]
an ebuild which also builds the bluecurve qt style
Comment 2 Marko van Dooren 2003-02-12 18:02:11 UTC
I found the problem, and with the help of liquidx, I fixed it. Since posting it as attach 
 won't work, I'll past it. The difference is in src_install(). It's not elegant, but it works 
 
Greetz,  
  
Marko No. 5  
-------------------------- 
# Copyright 1999-2002 Gentoo Technologies, Inc. 
# Distributed under the terms of the GNU General Public License v2 
# $Header: 
/home/cvsroot/gentoo-x86/x11-themes/redhat-artwork/redhat-artwork-0.63.ebuild,v 
1.1 2003/02/02 19:48:08 hanno Exp $ 
 
RH_EXTRAVERSION="1" 
 
DESCRIPTION="RedHat's Bluecurve theme for GTK1, GTK2, KDE3, GDM, Metacity 
and Nautilus" 
HOMEPAGE="http://www.redhat.com" 
SRC_URI="ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/${P}-${RH_EXTRAVERSION}.src.rpm" 
LICENSE="GPL-2" 
SLOT="0" 
KEYWORDS="~x86 ~ppc ~alpha" 
IUSE="kde gtk" 
 
# Needed to build... 
DEPEND="sys-devel/autoconf 
	sys-devel/automake 
	app-arch/rpm2targz 
	>=x11-libs/gtk+-2.0 
	gtk? (  >=media-libs/gdk-pixbuf-0.2.5 
        	=x11-libs/gtk+-1.2* ) 
	kde? (	>=x11-libs/qt-3.0.5 
		>=kde-base/kdebase-3.0.2 )" 
 
# Because one may only want to use the theme with kde OR gtk OR Metacity 
# OR gdm, we don't want any run-time dependencies... 
RDEPEND="" 
 
S="${WORKDIR}/${P}" 
 
# We need to change some RedHat-specific stuff to Gentoo-style... 
_replace() { 
	FROM=$1 
	TO=$2 
 
	for FILE in $(fgrep -r -l "${FROM}" *); do 
		echo -n Changing \"${FROM}\" to \"${TO}\" in ${FILE}... 
		sed "s:${FROM}:${TO}:g" < "${FILE}" > "${FILE}.$$" 
		mv "${FILE}.$$" "${FILE}" 
		echo Done. 
	done 
} 
 
src_unpack() { 
	cd ${WORKDIR} 
	rpm2targz ${DISTDIR}/${A} 
	tar xzf ${P}*.src.tar.gz 
	tar xzf ${P}.tar.gz 
} 
 
src_compile() { 
 
	export WANT_AUTOCONF_2_5=1 
 
	# disable qt and kde support if kde use keyword is not set 
	# note: qt and kde support seem to be tied together... maybe someone with 
	# autoconf experience can seperate the two 
	use kde || ( 
 
	rm configure 
	mv configure.in configure.in.old 
	sed -e	"s|dnl KDE_USE_QT||" \ 
		-e "s|KDE_||g" \ 
		-e "s|AC_PATH_KDE||" \ 
		-e "s|art/kde/Makefile||" \ 
		-e "s|art/kde/kwin/Makefile||" \ 
		-e "s|art/kde/kwin/Bluecurve/Makefile||" \ 
			configure.in.old > configure.in 
 
	mv art/Makefile.am art/Makefile.am.old 
	sed -e 	"s|kde||" \ 
		-e	"s|qt||" \ 
			art/Makefile.am.old > art/Makefile.am 
 
	mv art/Makefile.in art/Makefile.in.old 
	sed -e  "s|kde||" \ 
		-e  "s|qt||" \ 
			art/Makefile.in.old > art/Makefile.in 
 
	autoconf 
	automake 
 
	) 
 
	# disable gtk 1.x support if gtk use keyword is not set 
	use gtk || ( 
 
	rm configure 
	mv configure.in configure.in.old 
	sed -e  "s|AM_PATH_GTK(1.2.9, ,||" \ 
		-e  "s|AC_MSG_ERROR(.*GTK+-1.*||" \ 
 		-e  "s|AC_CHECK_LIB(gtk, gtk_style_set_prop_experimental, :,||" \ 
		-e  "s|AC_MSG_ERROR(.*gtk_style.*||" \ 
		-e  "s|             \$GTK_LIBS)||" \ 
		-e  "s|AM_PATH_GDK_PIXBUF||" \ 
		-e  "s|art/gtk/Bluecurve1/Makefile||" \ 
		-e  "s|art/gtk/Bluecurve1/gtk/Makefile||" \ 
	configure.in.old > configure.in 
 
	mv art/gtk/Makefile.am art/gtk/Makefile.am.old 
	sed -e  "s|Bluecurve1||" \ 
	art/gtk/Makefile.am.old > art/gtk/Makefile.am 
 
	autoconf 
	automake 
	) 
 
	# paths have to be fixed for kde 
	use kde && ( 
 
	# Fix paths... 
	_replace "/usr/lib/qt3"          "${QTDIR}" 
	_replace '${libdir}/qt3'         "${QTDIR}" 
	_replace '$(libdir)/qt3'         "${QTDIR}" 
	_replace "/usr/lib/kde3"         "${KDEDIR}/lib" 
	_replace '${libdir}/kde3'        "${KDEDIR}/lib" 
	_replace "/usr/lib/kwin.la"      "${KDEDIR}/lib/kwin.la" 
	chmod +x configure 
 
	) 
 
	./configure || die 
        emake || die 
} 
 
src_install () { 
	make prefix=${D}/usr kde_moduledir=${D}/${KDEDIR}/lib install || die 
 
	use kde && ( 
		dodir ${KDEDIR}/share/apps 
		mv ${D}/usr/share/apps/* ${D}/${KDEDIR}/share/apps 
		rmdir ${D}/usr/share/apps 
 
		dodir ${KDEDIR}/share/icons 
		dodir ${KDEDIR}/lib/kde3/plugins/styles 
		dosym /usr/share/icons/Bluecurve ${KDEDIR}/share/icons/Bluecurve 
		dosym /usr/lib/qt-3.1/plugins/styles/bluecurve.so 
${KDEDIR}/lib/kde3/plugins/styles/bluecurve.so 
		dosym /usr/lib/qt-3.1/plugins/styles/bluecurve.la 
${KDEDIR}/lib/kde3/plugins/styles/bluecurve.la 
	) 
 
	use kde || ( 
		rm -rf ${D}/usr/share/apps 
	) 
 
	# yank redhat logos (registered trademarks, etc) 
	rm -f ${D}/usr/share/gdm/themes/Bluecurve/rh_logo-header.png 
	rm -f ${D}/usr/share/gdm/themes/Bluecurve/screenshot.png 
 
	cd ${D}/usr/share/gdm/themes/Bluecurve/ 
 
	# replace redhat logo with gnome logo from happygnome theme 
	sed -e 's|<normal file="rh_logo-header.png"/>|<normal 
file="/usr/share/gdm/themes/happygnome/gnome-logo.png"/>|' \ 
		-e 's|<pos x="3%" y="5%" width="398" height="128" 
anchor="nw"/>|<pos x="3%" y="3%"/>|' \ 
		Bluecurve.xml > Bluecurve.xml.mod || die 
 
	mv Bluecurve.xml.mod Bluecurve.xml 
 
	# Bluecurve GDM screenshot has redhat logo 
	# Theme copyright notice left intact... do not modify it 
	sed -e 's|Screenshot=|#Screenshot=|' GdmGreeterTheme.desktop > 
GdmGreeterTheme.desktop.mod 
	mv GdmGreeterTheme.desktop.mod GdmGreeterTheme.desktop 
 
	cd ${S} 
	dodoc AUTHORS NEWS README ChangeLog 
} 
 
 
Comment 3 Bruce A. Locke (RETIRED) gentoo-dev 2003-02-22 13:39:32 UTC
Should be fixed in 0.65...

Thank you for the bug report.