Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-22-2005, 11:05 PM
|
#16
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
Quote:
Originally posted by kodon
new windows or tabs created by the script are active
(they become the current focus)
i never start firefox by running the binary directly
|
I did not mean the binary directly.
In my system when i run i repress the laucher, the new window starts on top of the others but not activated (focused)
|
|
|
02-23-2005, 02:18 AM
|
#17
|
LQ Newbie
Registered: Sep 2004
Distribution: Slackware
Posts: 16
Rep:
|
Firefox is garbage. If you read about it on mozilla.org it tells about how features were removed to cater to [stupid] IE users.
Besides, the Mozilla suite that ships with slackware is great because not only because the browser is better, but it has java, flash, and xine plugins already ready to go.
oh, and I can bash Firefox because I used it when it was Pheonix 0.5
peace
|
|
|
02-23-2005, 05:01 PM
|
#18
|
Member
Registered: Mar 2004
Posts: 93
Rep:
|
Not sure I'd call it garbage... it does everything that the Mozilla Suite browser does, except it doesn't include Mozilla Mail, Chatzilla, etc. Otherwise, Firefox is for all intents and purposes the same. That is, as long as you don't mind going into about:config.
I do really like Seamonkey (the suite), but it will no longer be developed. The 1.8 betas will remain beta, and only be used for bugfixes before the code goes over to Firefox.
|
|
|
02-24-2005, 04:52 AM
|
#19
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
I don't think I trust packages that don't come from Pat. I built it from source.
Code:
#!/bin/sh
CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-firefox
rm -rf $PKG
mkdir -p $PKG/usr
VERSION=1.0
cd $TMP
rm -rf mozilla
echo
echo "This will go alot quicker if we don't output to the console"
echo "firefox-$VERSION-source.tar.bz2 is now extracting..."
tar xjf $CWD/firefox-$VERSION-source.tar.bz2
cd mozilla
chown -R root.root .
# Look at the Optimizations below
# I think we should just have it read
# --enable-optimize \
# It built fine the way it is, but looks
# to read your already defined CFLAGS
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_PHOENIX=1 \
./configure --prefix=/usr \
--with-default-mozilla-five-home=/usr/lib/firefox-${VERSION} \
--with-user-appdir=.firefox \
--with-system-zlib \
--with-system-png \
--with-system-jpeg \
--enable-application=browser \
--enable-default-toolkit=gtk2 \
--enable-extensions=all,-typeaheadfind \
--enable-crypto \
--enable-xft \
--enable-strip \
--enable-xinerama \
--enable-optimize="-march=i486 -O2" \
--enable-reorder \
--enable-strip \
--enable-cpp-rtti \
--enable-single-profile \
--disable-freetype2 \
--disable-accessibility \
--disable-debug \
--disable-tests \
--disable-logging \
--disable-pedantic \
--disable-installer \
--disable-mailnews \
--disable-ldap \
--disable-composer \
--disable-profilesharing &&
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_PHOENIX=1 make -j4 -s export
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_PHOENIX=1 make -j4 -s libs
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_PHOENIX=1 DESTDIR=$PKG make install
install -d $PKG/usr/include/firefox-${VERSION}/nss
cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
$PKG/usr/include/firefox-${VERSION}/nss
Just make yourself a slack-desc and build it with makepkg. The above build works great for me. I think your supposed to run as root once tho to create some additional files.
|
|
|
02-24-2005, 05:07 AM
|
#20
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
Quote:
--enable-optimize="-march=i486 -O2" \
|
Why not --enable-optimize="-march=i486 -O2 -mcpu=i686" \
Anyway, lets not be paranoid. Firefox source is 30-40MB and the guy who packed firefox in linuxpackages says he compiled it from source and run benchmarks and he did not see any speed-up from the official binaries. So he packed it using the official binaries. I'm sure mozilla has run test before releasing the official binaries for linux. Hope you trust The Mozilla Organization.
Last edited by perfect_circle; 02-24-2005 at 05:30 AM.
|
|
|
02-24-2005, 06:00 AM
|
#21
|
Member
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171
Rep:
|
What good is a firefox package compared to installing firefox directly from mozilla...? I don't see any possible advantage out of getting a package for something as simple as that?
|
|
|
02-24-2005, 06:40 AM
|
#22
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
Quote:
Originally posted by [GOD]Anck
What good is a firefox package compared to installing firefox directly from mozilla...? I don't see any possible advantage out of getting a package for something as simple as that?
|
Some people like to have all programs displayed in pkgtool.
But since the whole firefox program is installed under a single directory and
rm -fr <directory that contains firefox>, firefox does not need to be packed.
Also the packed version offered by linuxpackages, has the same behaviour as slackware's mozilla and netscape. When firefox is already running and you relaunch it, the profile chooser will be displayed and won't let you use the same profile again. The firefox-installer version, does not do that, at least in my system, and i prefer the firefox-installer version for this. Actually the guy who packed it, used a different enviroment-setup script that the official.
Last edited by perfect_circle; 02-24-2005 at 06:42 AM.
|
|
|
02-24-2005, 08:46 PM
|
#23
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
Sure.. I trust Mozilla. Slack is basically a source distribution tho. I don't install precompiled anything unless it comes from Pat. If he doesn't offer binaries, I make them myself is all.... With recent versions of GCC, -mcpu= is depreciated. It doesn't do anything. The very beginning of ./configure will detect your host arch and adjust accordingly anyway. I have CFLAGS set for my shell too, so even defining those in the build script is pointless. Just having "--enable-optimize" will set the correct flags.
I just don't know how dude compiled his firefox, so I wouldn't use it. Thats all..  I'm sure it's a perfectly good slak-pak.
|
|
|
02-24-2005, 09:04 PM
|
#24
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
i think it would be so cool if linuxpackages.net required slackpack submitters to always provide the build scripts (in true slackware style)...
more power to the people and maybe even bandwidth savings for the site...
|
|
|
02-25-2005, 05:29 AM
|
#25
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
Quote:
I just don't know how dude compiled his firefox, so I wouldn't use it. Thats all.. I'm sure it's a perfectly good slak-pak.
|
Read my posts more careful...He did not compile firefox. He used the precompiled binaries mozilla offers, because he did not see any difference in the speed after compiling the source.... So he just packed the binaries.
Quote:
With recent versions of GCC, -mcpu= is depreciated.
|
Are you sure about this? Because in an IRC log file(january 2005) I've found this:
" Jan 14 13:56:38 <Papyrus> volkerdi : will new slackware release based on i686 or still on i486 ???
......................................
.......................................
.......................................
Jan 14 14:02:02 <volkerdi> There is essentially _no_ difference in speed between -march=i686, and -march=i486 -mcpu=i686 (which Slackware uses). Run benchmarks and you'll see. By going -march=i686 all you're doing is preventing people with old machine from running the software."
Quote:
I have CFLAGS set for my shell too, so even defining those in the build script is pointless
|
Yes but when you post yous build script we could not know this.
Personally i do:
Code:
CFLAGS=" -O2 -march=i486 -mcpu=athlon-xp" ./configure
or
Code:
CFLAGS=" -O2 -march=atllon-xp -mcpu=athlon-xp" ./configure
Quote:
The very beginning of ./configure will detect your host arch and adjust accordingly anyway.
|
Mplayer detects my arch athlon-4, but athlon-xp is athlon-6 I think. I can't tell for sure if there is a difference in the speed. I'm not trying to make a big deal out of this (optimization stuff), or i may end up like the Gentoo users: http://funroll-loops.org/
Quote:
i think it would be so cool if linuxpackages.net required slackpack submitters to always provide the build scripts (in true slackware style)...
more power to the people and maybe even bandwidth savings for the site...
|
Thats so true...
|
|
|
02-25-2005, 04:15 PM
|
#26
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
-mcpu is depreciated on GCC 3.4.x... Once you start using it, I can guarantee that you'll stop using that flag pretty quick. Unless of course you like to see:
WARNING: -mcpu is depreciated. Use -march or -mtune instead...
every other line.... Whatever tho. Up to you. Since it seems that you MAY enjoy a good pointless arguement, I went ahead and refined my build script that was just meant to be a rough guideline of what you CAN do. Let me know if there is anything else I can change in it.
Code:
#!/bin/sh
# Set initial variables:
CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-firefox
rm -rf $PKG
mkdir -p $PKG/usr
VERSION=1.0.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mcpu=i686"
elif [ "$ARCH" = "athlon_xp" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=athlon-xp"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
cd $TMP
rm -rf mozilla
echo
echo "This will go alot quicker if we don't output to the console"
echo "firefox-$VERSION-source.tar.bz2 is now extracting..."
tar xjf $CWD/firefox-$VERSION-source.tar.bz2
cd mozilla
chown -R root.root .
# I'm still not comfortable with the way CFLAGS are being handled
# in this script. It seems to me that they should be explictly defined
# in the configure switch. eg:
# --enable-optimize="-O2 -march=i486 -mcpu=i686" \
CFLAGS="$SLKCFLAGS" \
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_PHOENIX=1 \
./configure --prefix=/usr \
--with-default-mozilla-five-home=/usr/lib/firefox-${VERSION} \
--with-user-appdir=.firefox \
--with-system-zlib \
--with-system-png \
--with-system-jpeg \
--enable-application=browser \
--enable-default-toolkit=gtk2 \
--enable-extensions=all,-typeaheadfind \
--enable-crypto \
--enable-xft \
--enable-strip \
--enable-xinerama \
--enable-optimize \
--enable-reorder \
--enable-strip \
--enable-cpp-rtti \
--enable-single-profile \
--disable-freetype2 \
--disable-accessibility \
--disable-debug \
--disable-tests \
--disable-logging \
--disable-pedantic \
--disable-installer \
--disable-mailnews \
--disable-ldap \
--disable-composer \
--disable-profilesharing
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_PHOENIX=1 make -j4 -s export
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_PHOENIX=1 make -j4 -s libs
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_PHOENIX=1 DESTDIR=$PKG make install
chown -R root.bin $PKG/usr/bin
# Install nss headers.
install -d $PKG/usr/include/firefox-${VERSION}/nss
cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
$PKG/usr/include/firefox-${VERSION}/nss
# They short-changed us on the default firefox icon...
# I suppose this will do.
#mkdir -p $PKG/usr/share/pixmaps
#cp -a $PKG/usr/lib/firefox-$VERSION/icons/mozicon50.xpm $PKG/usr/share/pixmaps/firefox.xpm
#chown -R root.root $PKG/usr/share/pixmaps
#chmod 644 $PKG/usr/share/pixmaps/firefox.xpm
# Or, we could do this if you have an internet connection.
( mkdir -p $PKG/usr/share/pixmaps
cd $PKG/usr/share/pixmaps
wget http://www.mozilla.org/images/product-firefox.png
mv product-firefox.png firefox.png
chown -R root.root $PKG/usr/share/pixmaps
chmod 644 firefox.png
)
# Install the docs.
mkdir -p $PKG/usr/doc/firefox-$VERSION
cp -a \
LEGAL LICENSE README.txt \
$PKG/usr/doc/firefox-$VERSION
# Make the slack-desc.
mkdir -p $PKG/install
cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
firefox: firefox (web browser)
firefox:
firefox: Firefox 1.0 empowers you to browse faster, more safely and more
firefox: efficiently than with any other browser. Firefox imports your
firefox: Favorites, settings and other information, from an existing web
firefox: browser. Enjoy many other features such as a built in Popup
firefox: Blocker, Tabbed Browsing and much more.
firefox:
firefox:
firefox:
firefox:
EOF
# Build the package:
cd $PKG
makepkg -l y -c n $TMP/firefox-$VERSION-$ARCH-$BUILD.tgz
Last edited by jong357; 05-18-2005 at 08:24 AM.
|
|
|
03-12-2005, 08:22 AM
|
#27
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
jong357, remember the discussion we had about compiling firefox from source, and not using the official binaries. Well guess what....
from slackware changelog:
Quote:
xap/mozilla-firefox-1.0.1-i686-1.tgz: Added Mozilla Firefox (from the
official binary distribution.) Thanks to the Mozilla Foundation! :-)
xap/mozilla-thunderbird-1.0-i686-1.tgz: Added Mozilla Thunderbird (also
from the official binary distribution.)
|
Also about the deprecated mcpu option, I think mtune does the same job.
Last edited by perfect_circle; 03-12-2005 at 10:11 AM.
|
|
|
03-12-2005, 08:39 AM
|
#28
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
Nice.... I never keep up with the changelog. I'm sure Pats script is very different from mine. I'll have to look at it. Yea, -mtune is the same thing, recent GCC wants you to use that over -mcpu for some reason
|
|
|
03-12-2005, 08:59 AM
|
#29
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
Wow I can't believe no one knows that it is in slackware-current? Mozilla and netscape have been removed from slackware and replaced by firefox in current. also pat patiently waited until it hit 1.01 because he doesn't include beta stuff in slack.
|
|
|
03-12-2005, 09:12 AM
|
#30
|
Member
Registered: Jan 2003
Location: Dayton, Ohio
Distribution: Slackware 10.2
Posts: 116
Original Poster
Rep:
|
If you look at the date of my question you will realize this was posted _BEFORE_ the change log was updated to include Firefox. Maybe I can read Pat's mind?
TVR
|
|
|
All times are GMT -5. The time now is 02:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|