View previous topic :: View next topic |
Author |
Message |
Apolonius Guru
Joined: 24 Jan 2003 Posts: 325
|
Posted: Thu Apr 17, 2003 8:03 pm Post subject: mozilla-cvs.ebuild |
|
|
this is another quick hack based on phoenix-cvs-r2.ebuild and mozilla-1.3-r1.ebuild.
Name it mozilla-5.ebuild:
Code: |
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/net-www/phoenix-cvs/phoenix-cvs-0.5-r2.ebuild,v 1.4 2003/04/02 08:27:34 seemant Exp $
IUSE="java crypt ipv6 gtk2 ssl ldap gnome"
# Internal USE flags that I do not really want to advertise ...
IUSE="${IUSE} mozsvg mozcalendar mozaccess mozinterfaceinfo mozp3p mozxmlterm"
IUSE="${IUSE} moznoirc moznomail moznocompose moznoxft"
inherit makeedit flag-o-matic gcc eutils nsplugins
MY_PV1="1.4b"
MY_PV2=${MY_PV1/eta}
S=${WORKDIR}/mozilla
DESCRIPTION="Mozilla-cvs"
HOMEPAGE="http://www.mozilla.org/projects/mozilla/"
KEYWORDS="~x86 ~ppc ~sparc"
SLOT="0"
LICENSE="MPL-1.1 | NPL-1.1"
IUSE="java gtk2 ipv6"
RDEPEND="virtual/x11
>=dev-libs/libIDL-0.8.0
>=gnome-base/ORBit-0.5.10-r1
virtual/xft
>=sys-libs/zlib-1.1.4
>=media-libs/jpeg-6b
>=media-libs/libmng-1.0.0
>=media-libs/libpng-1.2.1
>=sys-apps/portage-2.0.36
dev-libs/expat
app-arch/zip
app-arch/unzip
( gtk2? >=x11-libs/gtk+-2.1.1 :
=x11-libs/gtk+-1.2* )
java? ( virtual/jre )
crypt? ( >=app-crypt/gnupg-1.2.1 )
( gtk2? >=x11-libs/gtk+-2.2.0 :
=x11-libs/gtk+-1.2* )
( gtk2? >=dev-libs/glib-2.2.0 :
=dev-libs/glib-1.2* )
gtk2? ( >=x11-libs/pango-1.2.1 )"
DEPEND="${RDEPEND}
virtual/glibc
app-editors/vi
dev-lang/perl
dev-util/cvs
java? ( >=dev-java/java-config-0.2.0 )
dev-util/pkgconfig"
# needed by src_compile() and src_install()
export MOZ_INTERNAL_LIBART_LGPL=1
export MOZ_ENABLE_XFT=1
export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
moz_setup() {
# Setup CC and CXX
if [ -z "${CC}" ]
then
export CC="gcc"
fi
if [ -z "${CXX}" ]
then
export CXX="g++"
fi
#This should enable parallel builds, I hope
if [ -f /proc/cpuinfo ]
then
# Set MAKEOPTS to have proper -j? option ..
get_number_of_jobs
export MAKE="emake"
fi
# make sure the nss module gets build (for NSS support)
if [ -n "`use ssl`" ]
then
export MOZ_PSM="1"
fi
}
src_unpack() {
moz_setup
# This is hackish, but it works.
addwrite ${DISTDIR}/cvs-src
mkdir -p ${DISTDIR}/cvs-src/
cd ${DISTDIR}/cvs-src/
echo ":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot A" > "${T}/cvspass"
export CVS_PASSFILE="${T}/cvspass"
einfo "Checking out latest Mozilla from CVS..."
einfo "[ mozilla/browser & mozilla/toolkit ]"
cvs -z3 -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit mozilla/client.mk
make -f mozilla/client.mk checkout
einfo "Checking out latest IPC and Enigmail from CVS..."
cvs -z3 -d:pserver:guest:guest@mozdev.org:/cvs co protozilla/ipc enigmail/src
einfo "Copying mozilla stuff in ${S}"
cp -a mozilla ${S}
cp -a protozilla/ipc ${S}/extensions/ipc
cp -a enigmail/src ${S}/extensions/enigmail
# Fix an ownership problem
chown -R root.root ${S}
export WANT_AUTOCONF_2_1=1
autoconf &> /dev/null
unset WANT_AUTOCONF_2_1
}
src_compile() {
moz_setup
local myconf=""
# NOTE: QT and XLIB toolkit seems very unstable, leave disabled until
# tested ok -- azarah
if [ -n "`use gtk2`" ]
then
myconf="${myconf} --enable-toolkit-gtk2 \
--enable-default-toolkit=gtk2 \
--disable-toolkit-qt \
--disable-toolkit-xlib \
--disable-toolkit-gtk"
else
myconf="${myconf} --enable-toolkit-gtk \
--enable-default-toolkit=gtk \
--disable-toolkit-qt \
--disable-toolkit-xlib \
--disable-toolkit-gtk2"
fi
if [ -z "`use ldap`" ]
then
myconf="${myconf} --disable-ldap"
fi
if [ "${DEBUGBUILD}" != "yes" ]
then
myconf="${myconf} --enable-strip-libs \
--disable-debug \
--disable-tests \
--enable-reorder \
--enable-strip"
# --enable-cpp-rtti"
# Currently --enable-elf-dynstr-gc only works for x86 and ppc,
# thanks to Jason Wever <weeve@gentoo.org> for the fix.
if [ -n "`use x86`" -o -n "`use ppc`" ]
then
myconf="${myconf} --enable-elf-dynstr-gc"
fi
fi
# Check if we should enable Xft support ...
if [ -z "`use moznoxft`" ]
then
if [ -n "`use gtk2`" ]
then
local pango_version=""
# We need Xft2.0 localy installed
if (test -x /usr/bin/pkg-config) && (pkg-config xft)
then
pango_version="`pkg-config --modversion pango | cut -d. -f1,2`"
pango_version="`echo ${pango_version} | sed -e 's:\.::g'`"
# We also need pango-1.1, else Mozilla links to both
# Xft1.1 *and* Xft2.0, and segfault...
if [ "${pango_version}" -gt "10" ]
then
einfo "Building with Xft2.0 (Gtk+-2.0) support!"
myconf="${myconf} --enable-xft --disable-freetype2"
touch ${WORKDIR}/.xft
else
ewarn "Building without Xft2.0 support!"
myconf="${myconf} --disable-xft `use_enable truetype freetype2`"
fi
else
ewarn "Building without Xft2.0 support!"
myconf="${myconf} --disable-xft `use_enable truetype freetype2`"
fi
else
einfo "Building with Xft2.0 (Gtk+-1.0) support!"
myconf="${myconf} --enable-xft --disable-freetype2"
touch ${WORKDIR}/.xft
fi
else
myconf="${myconf} --disable-xft `use_enable truetype freetype2`"
fi
if [ -n "`use ipv6`" ]
then
myconf="${myconf} --enable-ipv6"
fi
# NB!!: Due to the fact that the non default extensions do not always
# compile properly, using them is considered unsupported, and
# is just here for completeness. Please do not use if you
# do not know what you are doing!
#
# The defaults are (as of 1.2, according to configure (line ~11445)):
# cookie, wallet, content-packs, xml-rpc, xmlextras, help, pref, transformiix,
# venkman, inspector, irc, universalchardet, typeaheadfind
# Non-defaults are:
# xmlterm access-builtin p3p interfaceinfo datetime finger cview
local myext="default"
if [ -n "`use mozxmlterm`" ]
then
myext="${myext},xmlterm"
fi
if [ -n "`use mozaccess-builtin`" ]
then
myext="${myext},access-builtin"
fi
if [ -n "`use mozp3p`" ]
then
myext="${myext},p3p"
fi
if [ -n "`use mozinterfaceinfo`" ]
then
myext="${myext},interfaceinfo"
fi
if [ -n "`use moznoirc`" ]
then
myext="${myext},-irc"
fi
if [ -n "`use mozsvg`" ]
then
export MOZ_INTERNAL_LIBART_LGPL="1"
myconf="${myconf} --enable-svg --enable-svg-renderer-libart"
else
myconf="${myconf} --disable-svg"
fi
if [ -n "`use moznomail`" ]
then
myconf="${myconf} --disable-mailnews"
fi
if [ -n "`use mozcalendar`" ]
then
myconf="${myconf} --enable-calendar"
fi
if [ -n "`use moznocompose`" -a -n "`use moznomail`" ]
then
myconf="${myconf} --disable-composer"
fi
if [ "$(gcc-major-version)" -eq "3" ]
then
# Currently gcc-3.2 or older do not work well if we specify "-march"
# and other optimizations for pentium4.
export CFLAGS="${CFLAGS/-march=pentium4/-march=pentium3}"
export CXXFLAGS="${CXXFLAGS/-march=pentium4/-march=pentium3}"
# Enable us to use flash, etc plugins compiled with gcc-2.95.3
if [ "${ARCH}" = "x86" ]
then
myconf="${myconf} --enable-old-abi-compat-wrappers"
fi
fi
#
*********************************************************************
#
# Configure and build Mozilla
#
# *********************************************************************
export BUILD_MODULES=all
export BUILD_OPT=1
# Get it to work without warnings on gcc3xport CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
cd ${S}
einfo "Configuring Mozilla..."
./configure --prefix=/usr/lib/mozilla \
--disable-pedantic \
--disable-short-wchar \
--disable-xprint \
--enable-mathml \
--without-system-nspr \
--enable-nspr-autoconf \
--with-system-zlib \
--enable-xsl \
--enable-crypto \
--enable-extensions="${myext}" \
--enable-optimize="-O2" \
--with-default-mozilla-five-home=/usr/lib/mozilla \
${myconf} || die
einfo "Building Mozilla..."
make WORKDIR="${WORKDIR}" || die
# *********************************************************************
#
# Build Mozilla NSS
#
# *********************************************************************
# Build the NSS/SSL support
if [ "`use ssl`" ]
then
einfo "Building Mozilla NSS..."
cd ${S}/security/coreconf
# Fix #include problem
cp headers.mk headers.mk.orig
echo 'INCLUDES += -I$(DIST)/include/nspr -I$(DIST)/include/dbm'\
>>headers.mk
# Disable jobserver here ...
make MAKE="make" || die
cd ${S}/security/nss
# Disable jobserver here ...
make MAKE="make" moz_import || die
make MAKE="make" || die
cd ${S}
fi
# *********************************************************************
#
# Build Enigmail plugin
#
# *********************************************************************
# Build the enigmail plugin
if [ -n "`use crypt`" -a -z "`use moznomail`" ]
then
einfo "Building Enigmail plugin..."
cd ${S}/extensions/ipc
./makemake -r
make || die
cd ${S}/extensions/enigmail
./makemake -r
make || die
fi
}
src_install() {
moz_setup
# Install, don't create tarball
dodir /usr/lib
cd ${S}/xpinstall/packager
einfo "Installing mozilla into build root..."
make MOZ_PKG_FORMAT="RAW" TAR_CREATE_FLAGS="-chf" > /dev/null || die
mv -f ${S}/dist/mozilla ${D}/usr/lib/mozilla
einfo "Installing includes and idl files..."
# Copy the include and idl files
dodir /usr/lib/mozilla/include/idl /usr/include
cd ${S}/dist
cp -LfR include/* ${D}/usr/lib/mozilla/include
cp -LfR idl/* ${D}/usr/lib/mozilla/include/idl
dosym /usr/lib/mozilla/include /usr/include/mozilla
# Install the development tools in /usr
dodir /usr/bin
mv ${D}/usr/lib/mozilla/{xpcshell,xpidl,xpt_dump,xpt_link} ${D}/usr/bin
# Install the NSS/SSL libs, headers and tools
if [ "`use ssl`" ]
then
einfo "Installing Mozilla NSS..."
# Install the headers ('make install' do not work for headers ...)
insinto /usr/lib/mozilla/include/nss
[ -d ${S}/dist/public/nss ] && doins ${S}/dist/public/nss/*.h
[ -d ${S}/dist/public/seccmd ] && doins ${S}/dist/public/seccmd/*.h
[ -d ${S}/dist/public/security ] && doins ${S}/dist/public/security/*.h
# These come with zlib ...
rm -f ${D}/usr/lib/mozilla/include/nss/{zconf.h,zlib.h}
cd ${S}/security/nss
mkdir -p ${WORKDIR}/nss/{bin,lib}
export BUILD_OPT=1
export SOURCE_BIN_DIR=${WORKDIR}/nss/bin
export SOURCE_LIB_DIR=${WORKDIR}/nss/lib
make install || die
# Gets installed as symbolic links ...
cp -Lf ${WORKDIR}/nss/bin/* ${D}/usr/bin
cp -Lf ${WORKDIR}/nss/lib/* ${D}/usr/lib/mozilla
# Need to unset these incase we want to rebuild, else the build
# gets newked.
unset SOURCE_LIB_DIR
unset SOURCE_BIN_DIR
fi
cd ${S}/build/unix
# Fix mozilla-config and install it
perl -pi -e "s:/lib/mozilla-${MY_PV2}::g" mozilla-config
perl -pi -e "s:/mozilla-${MY_PV2}::g" mozilla-config
exeinto /usr/lib/mozilla
doexe mozilla-config
# Fix pkgconfig files and install them
insinto /usr/lib/pkgconfig
for x in *.pc
do
if [ -f ${x} ]
then
perl -pi -e "s:/lib/mozilla-${MY_PV2}::g" ${x}
perl -pi -e "s:/mozilla-${MY_PV2}::g" ${x}
doins ${x}
fi
done
cd ${S}
exeinto /usr/bin
newexe ${FILESDIR}/mozilla.sh mozilla
insinto /etc/env.d
doins ${FILESDIR}/10mozilla
dodoc LEGAL LICENSE README/mozilla/README*
# Install rebuild script
exeinto /usr/lib/mozilla/
newexe ${S}/build/package/rpm/SOURCES/mozilla-rebuild-databases.pl.in \
mozilla-rebuild-databases.pl
dosed 's|LIBDIR|/usr/lib|g' /usr/lib/mozilla/mozilla-rebuild-databases.pl
dosed 's|-MOZILLA_VERSION||g' /usr/lib/mozilla/mozilla-rebuild-databases.pl
# Move plugins dir
src_mv_plugins /usr/lib/mozilla/plugins
# Update Google search plugin to use UTF8 charset ...
insinto /usr/lib/mozilla/searchplugins
doins ${FILESDIR}/google.src
if [ -f "${WORKDIR}/.xft" ]
then
# We are using Xft, so change the default font
insinto /usr/lib/mozilla/defaults/pref
doins ${FILESDIR}/xft.js
fi
# Fix icons to look the same everywhere
insinto /usr/lib/mozilla/icons
doins ${S}/build/package/rpm/SOURCES/mozicon16.xpm
doins ${S}/build/package/rpm/SOURCES/mozicon50.xpm
# Install icon and .desktop for menu entry
if [ "`use gnome`" ]
then
insinto /usr/share/pixmaps
doins ${S}/build/package/rpm/SOURCES/mozilla-icon.png
# Fix comment of menu entry
cd ${S}/build/package/rpm/SOURCES
perl -pi -e 's:Comment=Mozilla:Comment=Mozilla Web Browser:' mozilla.desktop
cd ${S}
insinto /usr/share/gnome/apps/Internet
doins ${S}/build/package/rpm/SOURCES/mozilla.desktop
fi
# Take care of non root execution
# (seems the problem is that not all files are readible by the user)
einfo "Fixing Permissions..."
chmod -R g+r,o+r ${D}/usr/lib/mozilla
find ${D}/usr/lib/mozilla/ -type d -exec chmod 0755 {} \; || :
}
pkg_preinst() {
# Stale components and chrome files break when unmerging old
if [ -d ${ROOT}/usr/lib/mozilla/components ]
then
rm -rf ${ROOT}/usr/lib/mozilla/components
fi
if [ -d ${ROOT}/usr/lib/mozilla/chrome ]
then
rm -rf ${ROOT}/usr/lib/mozilla/chrome
fi
# Remove stale component registry.
if [ -e ${ROOT}/usr/lib/component.reg ]
then
rm -f ${ROOT}/usr/lib/component.reg
fi
# Make sure these are removed.
rm -f ${ROOT}/usr/lib/mozilla/lib{Xft,Xrender}.so*
# Move old plugins dir
pkg_mv_plugins /usr/lib/mozilla/plugins
}
pkg_postinst() {
export MOZILLA_FIVE_HOME="${ROOT}/usr/lib/mozilla"
# Needed to update the run time bindings for REGXPCOM
# (do not remove next line!)
env-update
# Register Components and Chrome
einfo "Registering Components and Chrome..."
${MOZILLA_FIVE_HOME}/mozilla-rebuild-databases.pl
# Fix directory permissions
find ${MOZILLA_FIVE_HOME}/ -type d -perm 0700 -exec chmod 755 {} \; || :
# Fix permissions on chrome files
find ${MOZILLA_FIVE_HOME}/chrome/ -name '*.rdf' -exec chmod 0644 {} \; || :
echo
ewarn "Please unmerge old versions of mozilla, as the header"
ewarn "layout in /usr/lib/mozilla/include have changed and will"
ewarn "result in compile errors when compiling programs that need"
ewarn "mozilla headers and libs (galeon, nautilus, ...)"
}
pkg_postrm() {
# Regenerate component.reg in case some things changed
if [ -e ${ROOT}/usr/lib/mozilla/regxpcom ]
then
export MOZILLA_FIVE_HOME="${ROOT}/usr/lib/mozilla"
if [ -x "${MOZILLA_FIVE_HOME}/mozilla-rebuild-databases.pl" ]
then
${MOZILLA_FIVE_HOME}/mozilla-rebuild-databases.pl
# Fix directory permissions
find ${MOZILLA_FIVE_HOME}/ -type d -perm 0700 -exec chmod 755 {} \; || :
# Fix permissions on chrome files
find ${MOZILLA_FIVE_HOME}/chrome/ -name '*.rdf' -exec chmod 0644 {} \; || :
fi
fi
}
|
Happy testing...
EDIT: added the envar MOZ_INTERNAL_LIBART_LGPL=1 to build mozsvg
EDIT2: support of svg . Now use cvs to update IPC and enigmail.
Last edited by Apolonius on Sun May 04, 2003 9:34 am; edited 5 times in total |
|
Back to top |
|
|
floam Veteran
Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Thu Apr 24, 2003 3:13 am Post subject: |
|
|
nice! why hasn't anyone else replyed? does it not work? |
|
Back to top |
|
|
watersb Apprentice
Joined: 04 Sep 2002 Posts: 297 Location: take a left turn in Tesuque
|
Posted: Thu Apr 24, 2003 9:37 pm Post subject: |
|
|
floam wrote: | nice! why hasn't anyone else replyed? does it not work? |
Geez, it's been only a week!
I'm trying it now... stay tuned! |
|
Back to top |
|
|
Apolonius Guru
Joined: 24 Jan 2003 Posts: 325
|
Posted: Fri Apr 25, 2003 11:20 am Post subject: |
|
|
Any feedback would be greatly appreciated
By the way, it seems moz-1.4b (=moz-cvs) solves the issue with galeon opening multiple instances of itself when root. |
|
Back to top |
|
|
emiddleton n00b
Joined: 22 Sep 2002 Posts: 8
|
Posted: Sat Apr 26, 2003 2:59 am Post subject: |
|
|
I can't get it to compile, any ideas. This is the error I get.
Code: |
make[2]: Leaving directory `/var/tmp/portage/mozilla-5/work/mozilla/jpeg'
make[2]: Entering directory `/var/tmp/portage/mozilla-5/work/mozilla/modules/zlib/standalone'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
Creating .deps
Creating ../../../dist/include/zlib
../../../config/nsinstall -R -m 644 ../../../modules/zlib/src/zlib.h ../../../modules/zlib/src/zconf.h ../../../dist/include/zlib
/usr/bin/perl -I../../../config ../../../config/build-list.pl ../../../dist/include/zlib/.headerlist zlib.h zconf.h
../../../config/nsinstall -R ../../../modules/zlib/src/adler32.c ../../../modules/zlib/src/crc32.c ../../../modules/zlib/src/compress.c ../../../modules/zlib/src/uncompr.c ../../../modules/zlib/src/deflate.c ../../../modules/zlib/src/trees.c ../../../modules/zlib/src/gzio.c ../../../modules/zlib/src/zutil.c ../../../modules/zlib/src/inflate.c ../../../modules/zlib/src/infblock.c ../../../modules/zlib/src/inftrees.c ../../../modules/zlib/src/infcodes.c ../../../modules/zlib/src/infutil.c ../../../modules/zlib/src/inffast.c .
make[2]: Leaving directory `/var/tmp/portage/mozilla-5/work/mozilla/modules/zlib/standalone'
make[2]: Entering directory `/var/tmp/portage/mozilla-5/work/mozilla/other-licenses/libart_lgpl'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
make[2]: *** No rule to make target `export'. Stop.
make[2]: Leaving directory `/var/tmp/portage/mozilla-5/work/mozilla/other-licenses/libart_lgpl'
make[1]: *** [tier_1] Error 2
make[1]: Leaving directory `/var/tmp/portage/mozilla-5/work/mozilla'
make: *** [default] Error 2
!!! ERROR: net-www/mozilla-5 failed.
!!! Function src_compile, Line 306, Exitcode 2
!!! (no error message)
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/mozilla-5 to /
>>> md5 ;-) enigmail-0.74.1.tar.gz
>>> md5 ;-) ipc-1.0.3.tar.gz
|
|
|
Back to top |
|
|
ajb128 n00b
Joined: 26 Sep 2002 Posts: 11 Location: Moo-town USA
|
Posted: Sun Apr 27, 2003 9:09 pm Post subject: |
|
|
I tried the ebuild. Everything compiled, but when I run mozilla it just quits. The error message is:
Illegal Instruction
That's it, nothing else. No other debug messages or anything.
Does anyone know how I can debug this? Or was there something I should have done before I used the ebuild? My previous version of Mozzila was already unmerged. |
|
Back to top |
|
|
ajb128 n00b
Joined: 26 Sep 2002 Posts: 11 Location: Moo-town USA
|
Posted: Mon Apr 28, 2003 8:52 pm Post subject: |
|
|
Never mind, I figured out the problem. Nothing to do with the Mozilla-cvs ebuild. I had a bad setting in my USE flags. |
|
Back to top |
|
|
Apolonius Guru
Joined: 24 Jan 2003 Posts: 325
|
Posted: Mon Apr 28, 2003 9:12 pm Post subject: |
|
|
this is the second time i compiled this ebuild with no problem |
|
Back to top |
|
|
taveren Tux's lil' helper
Joined: 24 Jul 2002 Posts: 145 Location: London, Ontario
|
Posted: Tue Apr 29, 2003 12:50 pm Post subject: XFT required? |
|
|
When I tried this ebuild, it told me XFT was a dependancy. Wasn't a problem before, but now XFree-4.3-r2 is blocking XFT from installing. I removed XFT to install the new XFree since I wasn't using XFT anyways. How can I get this ebuild to not require XFT?
Edit: Forget that. I'm an idiot. USE="moznoxft"
Edit Edit: Bah. It only recognizes 3 USE flags according to "emerge -pv" Those being +java -gtk2 -ipv6 |
|
Back to top |
|
|
Apolonius Guru
Joined: 24 Jan 2003 Posts: 325
|
Posted: Tue Apr 29, 2003 1:03 pm Post subject: Re: mozilla-cvs.ebuild |
|
|
this is not perfect.
i think the configure for the 1.4b version has changed, so the default IUSE are no more the same as for the 1.3a version. |
|
Back to top |
|
|
Apolonius Guru
Joined: 24 Jan 2003 Posts: 325
|
Posted: Wed Apr 30, 2003 9:24 pm Post subject: |
|
|
emiddleton> you tried to compile mozsvg, right ?
I added MOZ_INTERNAL_LIBART_LGPL=1 to pull LIBART from the cvs tree. Now it should work (it worked for me). |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Wed Apr 30, 2003 9:35 pm Post subject: |
|
|
i am getting a command not found error on --enable-toolkit-gtk then the ebuild errors out.... anyone know what can fix this?
actually its more then that , heres the output Code: | >>> Unpacking ipc-1.0.3.tar.gz to /var/tmp/portage/mozilla-5/work/mozilla
>>> Source unpacked.
* Setting make jobs to "-j2" to ensure successful merge...
* Building with Xft2.0 (Gtk+-1.0) support!
/usr/sbin/ebuild.sh: line 278: CVS: command not found
* Configuring Mozilla...
/usr/sbin/ebuild.sh: line 291: ./configure: No such file or directory
/usr/sbin/ebuild.sh: line 292: --disable-pedantic: command not found
/usr/sbin/ebuild.sh: line 293: --disable-short-wchar: command not found
/usr/sbin/ebuild.sh: line 294: --disable-xprint: command not found
/usr/sbin/ebuild.sh: line 295: --enable-mathml: command not found
/usr/sbin/ebuild.sh: line 296: --without-system-nspr: command not found
/usr/sbin/ebuild.sh: line 297: --enable-nspr-autoconf: command not found
/usr/sbin/ebuild.sh: line 298: --with-system-zlib: command not found
/usr/sbin/ebuild.sh: line 299: --enable-xsl: command not found
/usr/sbin/ebuild.sh: line 300: --enable-crypto: command not found
/usr/sbin/ebuild.sh: line 301: --enable-extensions=default: command not found
/usr/sbin/ebuild.sh: line 302: --enable-optimize=-O2: command not found
/usr/sbin/ebuild.sh: line 303: --with-default-mozilla-five-home=/usr/lib/mozilla: No such file or directory
/usr/sbin/ebuild.sh: line 304: --enable-toolkit-gtk: command not found
!!! ERROR: net-www/mozilla-5 failed.
!!! Function src_compile, Line 304, Exitcode 127
!!! (no error message)
|
any suggestions |
|
Back to top |
|
|
eGore911 Apprentice
Joined: 11 Mar 2003 Posts: 290
|
Posted: Wed Apr 30, 2003 10:58 pm Post subject: |
|
|
sorry, this has to be posted twice but i could not find it anywhere else (maybe i'm just blind), but:
i created in /usr/portage/net-www/mozilla-cvs a file called mozilla-cvs.ebuild and pasted the ebuild written above in it. but i cant emerge it, because he cannot find it, neither using "emerge mozilla-cvs" nor "emerge net-www/mozilla-cvs". First i thought i'm not able to type, but after a few tries i realized, i'm just not able to use the portage-tree.
i'm quite sure to add it to cache, but have no idea how. Can someone tell me please because some of you seem to got it working |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Thu May 01, 2003 7:10 am Post subject: |
|
|
well the above post is eroneous... i copied the ebuild over and am still getting a error but its different. Code: | chown: changing ownership of `/var/tmp/portage/mozilla-5/work/mozilla/browser/resources/locale/CVS/Root': Operation not permitted
chown: changing ownership of `/var/tmp/portage/mozilla-5/work/mozilla/browser/resources/locale/CVS/Repository': Operation not permitted
chown: changing ownership of `/var/tmp/portage/mozilla-5/work/mozilla/browser/resources/locale/CVS/Entries': Operation not permitted
chown: changing ownership of `/var/tmp/portage/mozilla-5/work/mozilla/browser/README.html': Operation not permitted
chown: changing ownership of `/var/tmp/portage/mozilla-5/work/mozilla/browser/.cvsignore': Operation not permitted
>>> Unpacking enigmail-0.74.1.tar.gz to /var/tmp/portage/mozilla-5/work/mozilla
>>> Unpacking ipc-1.0.3.tar.gz to /var/tmp/portage/mozilla-5/work/mozilla
>>> Source unpacked.
* Setting make jobs to "-j2" to ensure successful merge...
* Building with Xft2.0 (Gtk+-1.0) support!
/usr/sbin/ebuild.sh: line 279: CVS: command not found
* Configuring Mozilla...
/usr/sbin/ebuild.sh: line 292: ./configure: No such file or directory
!!! ERROR: net-www/mozilla-5 failed.
!!! Function src_compile, Line 305, Exitcode 127
!!! (no error message)
| this was further up and saw it flash by so i re-emerged then killed it to keep it in the buffer Code: | cvs server: Updating mozilla/toolkit/skin/win/tree
cvs server: Updating mozilla/toolkit/xre
cvs server: existing repository /cvsroot/CVSROOT/Emptydir does not match /cvsroot/mozilla
cvs server: ignoring module mozilla/client.mk
make: mozilla/client.mk: No such file or directory
make: *** No rule to make target `mozilla/client.mk'. Stop.
chown: changing ownership of `/var/tmp/portage/mozilla-5/work/mozilla': Operation not permitted
chown: changing ownership of `/var/tmp/portage/mozilla-5/work/mozilla/CVS': Operation not permitted
| well anyone have an idea of what to try?
eGore911 i think it would be better to enable /usr/local/portage by uncommenting PORTDIR_OVERLAY=/usr/local/portage
in make.conf then mkdir -p /usr/local/portage/net-www/mozilla/ then mv /usr/portage/net-www/mozilla/files to the newly created mozilla directory in /usr/local/portage (this will mozilla access to any files that it 'might' need)... cp the above ebuild to /usr/local/portage/net-www/mozilla/ and preserve the name of the ebuild as mozilla-5.ebuild.... cd to that copied files directory and issue #ebuild ../mozilla-5.ebuild digest then you can emerge the ebuild by its path , i.e. if your still in the files directory after creating the digest #emerge ../mozilla-5.ebuild.
ciao
edit: well forget the errors posted above... they were apparently self induced... i killed the first emerge attempt early on and had to delete /usr/portage/distfiles/cvs-src and then restart teh emerge... now its building fine. |
|
Back to top |
|
|
baboo n00b
Joined: 11 Jan 2003 Posts: 5 Location: Switzerland, Berne
|
Posted: Thu May 01, 2003 4:52 pm Post subject: Phoenix CVS |
|
|
i had the same problem with client.mk but it seems that i found a not very elegant, but working solution..
you have to edit the ebuild net-www/phenix-cvs.
there you have to add the line
Code: | cvs -z3 -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/client.mk |
directly under the line which checks the others out:
Code: | cvs -z3 -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit mozilla/client.mk |
the first attempt to get client.mk will fail.. but the added line causes the ebuild to fetch it a second time.. witch works.. (@ least on my penguin)
Have fun..
Manu |
|
Back to top |
|
|
linut n00b
Joined: 07 Dec 2002 Posts: 18
|
Posted: Thu May 01, 2003 6:12 pm Post subject: |
|
|
thanks for the ebuild
Last edited by linut on Fri May 02, 2003 4:23 pm; edited 1 time in total |
|
Back to top |
|
|
emiddleton n00b
Joined: 22 Sep 2002 Posts: 8
|
Posted: Fri May 02, 2003 11:33 am Post subject: |
|
|
Apolonius> Sorry for taking so long to reply. I have been away for a week. Yes I did use mozsvg and basically every other option. It compiled and run when I didn't use any moz options. |
|
Back to top |
|
|
Apolonius Guru
Joined: 24 Jan 2003 Posts: 325
|
Posted: Fri May 02, 2003 4:07 pm Post subject: |
|
|
updated! |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Sat May 03, 2003 2:48 am Post subject: |
|
|
silly minor suggestion... change the depend for xft to virtual/xft so that emerge doesnt crap out if your running xfree-4.3.0-r2 and r3 . |
|
Back to top |
|
|
emiddleton n00b
Joined: 22 Sep 2002 Posts: 8
|
Posted: Sun May 04, 2003 2:13 am Post subject: |
|
|
It seems to now be dying on the interfaceinfo compiling. I noticed it is not creating the make file. Here is the error.
Code: |
make[1]: Leaving directory `/var/tmp/portage/mozilla-5/work/mozilla'
/usr/lib/portage/bin/emake tier_94
make[1]: Entering directory `/var/tmp/portage/mozilla-5/work/mozilla'
tier_94: extensions
make[2]: Entering directory `/var/tmp/portage/mozilla-5/work/mozilla/extensions'make[2]: warning: -jN forced in submake: disabling jobserver mode.
make[2]: *** No rule to make target `interfaceinfo/Makefile.in', needed by `interfaceinfo/Makefile'. Stop.
make[2]: Leaving directory `/var/tmp/portage/mozilla-5/work/mozilla/extensions'
make[1]: *** [tier_94] Error 2
make[1]: Leaving directory `/var/tmp/portage/mozilla-5/work/mozilla'
make: *** [default] Error 2
!!! ERROR: net-www/mozilla-5 failed.
!!! Function src_compile, Line 300, Exitcode 2
!!! (no error message)
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/mozilla-5 to /
|
I also noticed xmlterm requires gtk and won't compile with gtk2. There is a missing # on line 271 of the ebuild
Code: |
fi
*********************************************************************
#
# Configure and build Mozilla
|
|
|
Back to top |
|
|
Apolonius Guru
Joined: 24 Jan 2003 Posts: 325
|
Posted: Sun May 04, 2003 9:42 am Post subject: |
|
|
thz for the reply!
i will try to build xmlterm and update the ebuild, next time i will re-emerge mozilla-cvs. |
|
Back to top |
|
|
fca Guru
Joined: 22 Feb 2003 Posts: 346 Location: Netherlands
|
Posted: Sun May 04, 2003 10:46 am Post subject: |
|
|
It fails with the following errors:
Code: | /usr/sbin/ebuild.sh: line 284: --disable-pedantic: command not found
/usr/sbin/ebuild.sh: line 285: --disable-short-wchar: command not found
/usr/sbin/ebuild.sh: line 286: --disable-xprint: command not found
/usr/sbin/ebuild.sh: line 287: --enable-mathml: command not found
/usr/sbin/ebuild.sh: line 288: --without-system-nspr: command not found
/usr/sbin/ebuild.sh: line 289: --enable-nspr-autoconf: command not found
/usr/sbin/ebuild.sh: line 290: --with-system-zlib: command not found
/usr/sbin/ebuild.sh: line 291: --enable-xsl: command not found
/usr/sbin/ebuild.sh: line 292: --enable-crypto: command not found
/usr/sbin/ebuild.sh: line 293: --enable-extensions=default: command not found
/usr/sbin/ebuild.sh: line 294: --enable-optimize=-O2: command not found
/usr/sbin/ebuild.sh: line 296: --with-default-mozilla-five-home=/usr/lib/mozilla: No such file or directory
/usr/sbin/ebuild.sh: line 297: --enable-default-toolkit=gtk2: command not found
!!! ERROR: net-www/mozilla-5 failed.
!!! Function src_compile, Line 297, Exitcode 127
!!! (no error message)
|
And I commented the line of asteriskes out.
Any idea what went wrong?
Edit: OK, it was a problem with copy pasting from the browser... |
|
Back to top |
|
|
emiddleton n00b
Joined: 22 Sep 2002 Posts: 8
|
Posted: Sun May 04, 2003 1:45 pm Post subject: |
|
|
Apolonius> When I said xmlterm won't compile with gtk2 I ment that gtk is required in the configure script and gtk/gtk2 seem to be mutually exclusive. The error message is
Code: |
checking for XpGetPrinterList in -lXp... yes
configure: warning: Cannot build xmlterm without gtk toolkit. Removing xmlterm from MOZ_EXTENSIONS.
checking for valid optimization flags... yes
|
and the code in the configure script is.
Code: |
if test -z "$MOZ_ENABLE_GTK" && test `echo "$MOZ_EXTENSIONS" | grep -c xmlterm` -ne 0; then
echo "configure: warning: Cannot build xmlterm without gtk toolkit. Removing xmlterm from MOZ_EXTENSIONS." 1>&2
MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|xmlterm||'`
fi
|
|
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Sun May 04, 2003 6:57 pm Post subject: |
|
|
fca: i was getting those errors too... then i took the original ebuild that Apolonius had posted and that had built successfully for me and edited it adding the changes for ipc and enigmail as well as svga ... and it worked... i have no idea why either... i will look more into it and see if there was a small diff i missed some where but dont have time right now... if you want leave an email and i'll send you the ebuild that i edited.
ciao |
|
Back to top |
|
|
floam Veteran
Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Wed May 07, 2003 12:47 am Post subject: |
|
|
whats with it not using my CFLAGS/CXXFLAGS?
Quote: | g++ -o nsConflictSet.o -c -DOSTYPE=\"Linux2.5\" -DOSARCH=\"Linux\" -I./../../../base/src -I./../../content/src -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/js -I../../../../dist/include/xpconnect -I../../../../dist/include/caps -I../../../../dist/include/gfx -I../../../../dist/include/htmlparser -I../../../../dist/include/layout -I../../../../dist/include/content -I../../../../dist/include/widget -I../../../../dist/include/dom -I../../../../dist/include/rdf -I../../../../dist/include/necko -I../../../../dist/include/locale -I../../../../dist/include/unicharutil -I../../../../dist/include/xul -I../../../../dist/include/xuldoc -I../../../../dist/include/webshell -I../../../../dist/include/xultmpl -I../../../../dist/include -I/var/tmp/portage/mozilla-1.5/work/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -fno-rtti -fno-handle-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -O2 -mcpu=i686 -pipe -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -Wno-deprecated -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsConflictSet.pp nsConflictSet.cpp
nsContentSupportMap.cpp |
/me sad. |
|
Back to top |
|
|
|