LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-22-2005, 11:05 PM   #16
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53

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)
 
Old 02-23-2005, 02:18 AM   #17
tdking19
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
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
 
Old 02-23-2005, 05:01 PM   #18
Makaelin
Member
 
Registered: Mar 2004
Posts: 93

Rep: Reputation: 15
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.
 
Old 02-24-2005, 04:52 AM   #19
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
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.
 
Old 02-24-2005, 05:07 AM   #20
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
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.
 
Old 02-24-2005, 06:00 AM   #21
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 35
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?
 
Old 02-24-2005, 06:40 AM   #22
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
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.
 
Old 02-24-2005, 08:46 PM   #23
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
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.
 
Old 02-24-2005, 09:04 PM   #24
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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...
 
Old 02-25-2005, 05:29 AM   #25
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
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...
 
Old 02-25-2005, 04:15 PM   #26
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
-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.
 
Old 03-12-2005, 08:22 AM   #27
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
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.
 
Old 03-12-2005, 08:39 AM   #28
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
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
 
Old 03-12-2005, 08:59 AM   #29
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
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.
 
Old 03-12-2005, 09:12 AM   #30
rovitotv
Member
 
Registered: Jan 2003
Location: Dayton, Ohio
Distribution: Slackware 10.2
Posts: 116

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jumping the Good Ship Fedora N3Lorax Linux - General 7 10-16-2005 09:09 AM
Ubuntu Free CD ship time jughead Ubuntu 2 06-24-2005 01:37 AM
Nvidia Slowing the Ship Boffy Linux - Hardware 2 10-11-2004 12:38 PM
HP to ship notebook with preloaded Linux jamaso General 5 08-04-2004 12:43 PM
Ship Date? freakallen Slackware 3 07-06-2002 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration