At least one bug: line 90, "exit 0" should read "return 0". Otherwise, the whole script exits and you don't get to the _activate_profile calls that should follow _deactivate_profile. I see other "exit 0" statements. I didn't check them, because now motif apps seem to work again, but maybe you want to comb over each exit statement. -------------------------------------------------------------------------------- Portage 2.0.51-r15 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 i686) ================================================================= System uname: 2.6.10-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 11:12:55)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r3 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -Os -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -Os -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X acpi adns apache2 atlas berkdb bitmap-fonts bonobo bzlib crypt cups curl emboss f77 fam fbcon fftw foomaticdb fortran gdbm gif gimpprint gnome gpm gtk gtk2 imagemagick imlib java jpeg lesstif libg++ libwww maildir mime mmx motif mozilla moznoirc moznomail mpeg ncurses nptl nptlonly opengl pam pdflib perl pic png pnp ppds python readline sdl shared slang spell sse ssl tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales x86 xml2 xv zlib video_cards_radeon" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL
yeah, fixed in motif-config-0.2
I just emerged motif-config-0.2, and looks like nothing changed. Same problem.
sorry, the ebuild installed the old version, fixed?
no. motif-config-0.2 still contains "exit 0" on line 90 instead of "return 0". i just ran into this when emerging it today.
change doexe ${FILESDIR}/motif-config-0.1 to doexe ${FILESDIR}/motif-config-0.2 in motif-config-0.2.ebuild