You are not logged in.

#1 2004-10-29 11:51:57

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

[NEW]:firefox 1.0rc1 PKGBUILD and package

I have refresh my post so you  don't need sroll to the bottom for it.
Not really much to say, there is PKGBUILD, since I don't like to mess up my opt directory by many of mozilla.org's package, I change original PKGBUILD and mozconfig a little to put firefox under /opt/mozilla, and link as firefox, so you may type firefox instead of mozilla-firefox to run it. BTW, bug 257188 has been fixed, so I delete such part in the PKGBUILD.

# $Id: PKGBUILD,v 1.14 2004/10/04 17:11:13 judd Exp $
# Maintainer: Dale Blount <dale@archlinux.org>
# Contributer: Nick Penwarden <toth64@yahoo.com> Rhythm Gan <rhythm_gan@yahoo.com.cn>
pkgname=firefox
pkgver=1.0rc1
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
makedepends=('zip')
depends=('gtk2' 'libidl2' 'gcc' 'mozilla-common')
replaces=('mozilla-firebird' 'phoenix')
url="http://www.mozilla.org/projects/firefox"
license=GPL
source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/$pkgname-$pkgver-source.tar.bz2
firefox.desktop
mozconfig
firefox-nonroot.tar.gz)
md5sums=('7a0411859fc5d5f647e211c24beaf94b'
'09c16feac1c62a838258e0d9a382f9dc'
'a47ba3707ccac23b646627742722208e'
'8b0f9050e5eac329199f6b9d6ed380fc')

build() {
cd $startdir/src/mozilla
sed "s@#CFLAGS#@$CFLAGS@g" $startdir/src/mozconfig >.mozconfig
export MOZ_PHOENIX=1

make -f client.mk build || return 1
make DESTDIR=$startdir/pkg install || return 1

# create shortcut
install -D -m755 $startdir/pkg/opt/mozilla/firefox/bin/firefox $startdir/pkg/usr/bin/firefox
install -D -m644 ../firefox.desktop $startdir/pkg/usr/share/applications/firefox.desktop

# initialize some data so that firefox doesn't complain to run as a non-root user
cd $startdir/pkg/opt/mozilla/$pkgname/lib/$pkgname-1.0/
tar zxf $startdir/src/firefox-nonroot.tar.gz || return 1

}

mozconfig:

# load defaults from src tarball
. $topsrcdir/browser/config/mozconfig
# add our own options
ac_add_options --prefix=/opt/mozilla.org/firefox
ac_add_options --with-default-mozilla-five-home=/opt/mozilla/firefox/lib/firefox
ac_add_options --enable-crypto
ac_add_options --enable-optimize="#CFLAGS#"
ac_add_options --enable-official-branding
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-logging
ac_add_options --disable-installer
ac_add_options --disable-mathml
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --enable-strip
ac_add_options --enable-xft
ac_add_options --enable-toolkit-gtk2
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-toolkit-xlib
ac_add_options --disable-toolkit-qt
ac_add_options --disable-toolkit-gtk
ac_add_options --disable-freetype2
ac_add_options --disable-pedantic
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-mng
ac_add_options --with-pthreads
ac_add_options --disable-mailnews
ac_add_options --disable-calendar
ac_add_options --disable-composer
ac_add_options --disable-svg
ac_add_options --enable-single-profile
ac_add_options --disable-profilesharing

You need original  mozilla-firefox-nonroot.tar.gz and  mozilla-firefox.run to run 'makepkg', steal them from abs tree.
What's more, there is my firefox.desktop, thanks for Neo

[Desktop Entry]
Encoding=UTF-8
Name= Firefox Web Browser
GenericName=Browser
GenericName=
Comment=The Firefox Preview Release empowers you to browse faster
Comment=
Exec=firefox
Icon=/opt/mozilla/firefox/lib/firefox/lib/firefox-1.0/icons/default.xpm
Terminal=false
Type=Application
Categories=Application;Network;
StartupNotify=true

You have to download firefox-nonroot.tar.gz from here,
ftp://anonymous@ftp.archlinux.org:21/incoming/firefox-nonroot.tar.gz
or you can make it yourself.

For someone doesn't wanna compile it, here is ascar's compiled one:
http://oscar.stabilt.se/arch/
Have a fun.

Offline

#2 2004-10-29 15:02:02

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

Extension System Warning: Failed to set up default extensions files probably because you do not have write privileges to this location. While you can run Firefox like this, it is recommended that you run it at least once with privileges that allow it to generate these initial files to improve start performance. Running from a disk image on MacOS X is not recommended.

You can run firefox under root for one time and solve the problem, but it seems previous solution of extension permission no longer working, does everybody have any hints? Does it give more potential security risk by simply changing the permission of extension and chrome folders?

Offline

#3 2004-10-30 18:10:25

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

New revised PKGBUILD,
1. Simply it. The mozilla-firefox.run file is no longer needed, because the . firefox own start script of new version has been improved and doesn't have such problem. Put firefox under /opt/mozilla again with reference to openoffice package(it is under /opt/openoffice instaed of /opt/openoffice.org).
2. Automatically install menu entry(firefox.desktop) for gnome and kde.
3. Still not solve extension permission problem, anyone has any clue please help!!

# $Id: PKGBUILD,v 1.14 2004/10/04 17:11:13 judd Exp $
# Maintainer: Dale Blount <dale@archlinux.org>
# Contributer: Nick Penwarden <toth64@yahoo.com>
pkgname=firefox
pkgver=1.0rc1
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
makedepends=('zip')
depends=('gtk2' 'libidl2' 'gcc' 'mozilla-common')
replaces=('mozilla-firebird' 'phoenix')
url="http://www.mozilla.org/projects/firefox"
license=GPL
source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/$pkgname-$pkgver-source.tar.bz2
        firefox.desktop
    mozconfig)
#md5sums=('ff9eae3b90b8573bf44293ea44bf3c50'
#     'aea53b054e38b177043474670b4472ef'
#         'c28385288eb9a9cefba21d62d7870cfd'
#     '9d6f28de23b0603cafdfea95a6d00c28')

build() {
    cd $startdir/src/mozilla
    sed "s@#CFLAGS#@$CFLAGS@g" $startdir/src/mozconfig >.mozconfig
    export MOZ_PHOENIX=1

    make -f client.mk build || return 1
    make DESTDIR=$startdir/pkg install || return 1

  install -D -m755 $startdir/pkg/opt/mozilla/firefox/bin/firefox $startdir/pkg/usr/bin/firefox
  install -D -m644 ../firefox.desktop $startdir/pkg/usr/share/applications/firefox.desktop
}

Mozconfig:

# load defaults from src tarball
. $topsrcdir/browser/config/mozconfig
# add our own options
ac_add_options --prefix=/opt/mozilla/firefox
ac_add_options --with-default-mozilla-five-home=/opt/mozilla/firefox/lib/firefoxac_add_options --enable-crypto
ac_add_options --enable-optimize="#CFLAGS#"
ac_add_options --enable-official-branding
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-logging
ac_add_options --disable-installer
ac_add_options --disable-mathml
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --enable-strip
ac_add_options --enable-xft
ac_add_options --enable-toolkit-gtk2
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-toolkit-xlib
ac_add_options --disable-toolkit-qt
ac_add_options --disable-toolkit-gtk
ac_add_options --disable-freetype2
ac_add_options --disable-pedantic
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-mng
ac_add_options --with-pthreads
ac_add_options --disable-mailnews
ac_add_options --disable-calendar
ac_add_options --disable-composer
ac_add_options --disable-svg
ac_add_options --enable-single-profile
ac_add_options --disable-profilesharing

and the firefox.desktop:

[Desktop Entry]
Encoding=UTF-8
Name=Firefox Web Browser
GenericName=Browser
GenericName=
Comment=Standalone browser that is Better than Internet Explorer by leaps and bounds
Comment=
Exec=firefox
Icon=/opt/mozilla/firefox/lib/firefox-1.0/icons/default.xpm
Terminal=false
Type=Application
Categories=Application;Network;
StartupNotify=true

Offline

#4 2004-10-31 10:37:27

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

In 20-30 minutes or so, you will find a package based on this PKG-build on my workstation - here.
have fun!

edit:
the package is up.
time to restart this browser ^_^


To err is human... to really foul up requires the root password.

Offline

#5 2004-10-31 11:20:05

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

The problem that firefox complains when you run as a non root user has been solved. I runed firefox as root, then remove the firefox package by pacman -R, I found there are some data left. I compressed such data as firefox-nonroot.tar.gz (kept root permission of these data for security reason), and solved the problem the same way as original Nick Penwarden and Dale Blount solution.  For details look at the PKGBUILD and firefox-nonroot.tar.gz and original mozilla-firefox-nonroot.tar.gz. Please run 'makepkg' as root, or you can't compile the package. Not my fault anyway.
NOW, everything just works.
PKGBUILD:

# $Id: PKGBUILD,v 1.14 2004/10/04 17:11:13 judd Exp $
# Maintainer: Dale Blount <dale@archlinux.org>
# Contributer: Nick Penwarden <toth64@yahoo.com> Rhythm Gan <rhythm_gan@yahoo.com.cn>
pkgname=firefox
pkgver=1.0rc1
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
makedepends=('zip')
depends=('gtk2' 'libidl2' 'gcc' 'mozilla-common')
replaces=('mozilla-firebird' 'phoenix')
url="http://www.mozilla.org/projects/firefox"
license=GPL
source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/$pkgname-$pkgver-source.tar.bz2
        firefox.desktop
    mozconfig
        firefox-nonroot.tar.gz)
md5sums=('7a0411859fc5d5f647e211c24beaf94b'
     '09c16feac1c62a838258e0d9a382f9dc'
         'a47ba3707ccac23b646627742722208e'
     '8b0f9050e5eac329199f6b9d6ed380fc')

build() {
    cd $startdir/src/mozilla
    sed "s@#CFLAGS#@$CFLAGS@g" $startdir/src/mozconfig >.mozconfig
    export MOZ_PHOENIX=1

    make -f client.mk build || return 1
    make DESTDIR=$startdir/pkg install || return 1

        # create shortcut
        install -D -m755 $startdir/pkg/opt/mozilla/firefox/bin/firefox $startdir/pkg/usr/bin/firefox
        install -D -m644 ../firefox.desktop $startdir/pkg/usr/share/applications/firefox.desktop

        # initialize some data so that firefox doesn't complain to run as a non-root user
        cd $startdir/pkg/opt/mozilla/$pkgname/lib/$pkgname-1.0/
        tar zxf $startdir/src/firefox-nonroot.tar.gz || return 1

}

You have to download firefox-nonroot.tar.gz from here,
http://linuxsir.com/bbs/attachment.php?s=&postid=881738
or find it in ArchLinux incoming ftp:
ftp://anonymous@ftp.archlinux.org:21/incoming/firefox-nonroot.tar.gz
or you can make it yourself.

ascar:
If you use my PKGBUILD, I think it's better to re-package it.

Offline

#6 2004-10-31 11:24:58

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

repackage it?
huh?

I simply compiled it, and uploaded the pkg on my http hmm


To err is human... to really foul up requires the root password.

Offline

#7 2004-10-31 11:32:06

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

Oh, well, I mean re-compile it.

Offline

#8 2004-10-31 11:34:49

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

I haven't had any problems with running it as a non-root user...
anyways, I'll recompile it ASAP

I can't download firefox-nonroot, btw.


To err is human... to really foul up requires the root password.

Offline

#9 2004-11-01 03:09:57

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

I have upload it into arch ftp incoming, you can find it there, the second link.

Offline

#10 2004-11-05 15:14:01

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

rc2 is out


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#11 2004-11-05 19:44:40

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

You're not supposed to upload packages to INCOMING that are:
(a) already in the repos (firefox)
(b) would never be accepted into the repos (an RC?)

It's not your personal storage space, bandwidth is tight already.

Also, I thought awhile ago we decided to only upload PKGBUILDs and the scripts, not actual packages, since that's a security risk among other things. I mean, who would run an unknown binary?


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#12 2004-11-05 23:41:55

celeron2002
Member
From: Santiago, Chile.
Registered: 2004-02-18
Posts: 150

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

this pkgbuild works with rc2???
changing de url for the sources of rc2, obviously...


irc.bsd.cl #linux
irc.freenode.org #archlinux-es

Offline

#13 2004-11-06 01:58:12

dammit
Member
Registered: 2004-07-06
Posts: 67

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

Why is that freetype2 is disabled? isnt the better enable this to give better fonts?

Offline

#14 2004-11-06 02:15:41

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

dammit wrote:

Why is that freetype2 is disabled? isnt the better enable this to give better fonts?

I think it's replaced by Xft, which uses Freetype2 to provide pretty fonts. I'm not sure though; the mozilla build process is a bit convoluted.


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#15 2004-11-07 13:15:28

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

You're not supposed to upload packages to INCOMING that are:
(a) already in the repos (firefox)
(b) would never be accepted into the repos (an RC?)

It's not your personal storage space, bandwidth is tight already.

I don't upload firefox, I upload firefox-nonroot.tar.gz into incoming, which is just about 40k. The firefox mentioned is in oscar's ftp. I know what incoming should contain. Thank you for your reminder but you misunderstand my word.
I don't see rc2 source released, so it's possibly you can't make a rc2 build.
Freetype2 is not needed, if xft enabled, I have heard one of firefox dev said. Of course, you can enable it but that can't give you any advantage.

Offline

#16 2004-11-07 14:04:16

tgc
Member
From: DK
Registered: 2004-03-09
Posts: 96

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

Is there any known reason why the offcial archlinux firefox packages isn't updated? It seems a bit weird that archlinux is 2 releases behind on such an high-profile package!!

Offline

#17 2004-11-08 01:43:10

KalephOne
Member
From: Fortaleza, Brasil
Registered: 2004-04-02
Posts: 99

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

maybe because firefox 1.0 final is scheduled for November 9.


Kaleph
jabber: kaleph@jabber.org

Offline

#18 2004-11-14 07:18:17

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

tgc wrote:

Is there any known reason why the offcial archlinux firefox packages isn't updated? It seems a bit weird that archlinux is 2 releases behind on such an high-profile package!!

we were not two releases after - the 'releases' you spoke of where experimental RCs.


To err is human... to really foul up requires the root password.

Offline

#19 2004-11-14 10:46:39

tgc
Member
From: DK
Registered: 2004-03-09
Posts: 96

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

oscar wrote:
tgc wrote:

Is there any known reason why the offcial archlinux firefox packages isn't updated? It seems a bit weird that archlinux is 2 releases behind on such an high-profile package!!

we were not two releases after - the 'releases' you spoke of where experimental RCs.

So was the preview release which is currently the newest version of firefox availble through pacman, so i don't see that as an valid excuse...

Offline

#20 2004-11-14 11:03:44

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

tgc wrote:
oscar wrote:
tgc wrote:

Is there any known reason why the offcial archlinux firefox packages isn't updated? It seems a bit weird that archlinux is 2 releases behind on such an high-profile package!!

we were not two releases after - the 'releases' you spoke of where experimental RCs.

So was the preview release which is currently the newest version of firefox availble through pacman, so i don't see that as an valid excuse...

tongue


To err is human... to really foul up requires the root password.

Offline

#21 2004-11-17 06:24:32

miasma
Member
From: Boulder, CO
Registered: 2004-11-09
Posts: 39
Website

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

any word on when the official packages for firefox and thunderbird will be updated?  i am getting anxious... i thought arch was all about not feeling anxious...! tongue

Offline

#22 2004-11-17 21:03:47

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

miasma wrote:

any word on when the official packages for firefox and thunderbird will be updated?  i am getting anxious... i thought arch was all about not feeling anxious...! tongue

whining about bleeding edge versions is a thing you do within the gentoo desktop community, not here tongue


To err is human... to really foul up requires the root password.

Offline

#23 2004-11-20 15:29:58

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

After changing the version to 1.0 and updating the path for the sources, this package works fine for me. Thanks ganlu!

The new source link should be:

ftp://ftp.mozilla.org/pub/mozilla.org/f … ce.tar.bz2


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#24 2004-11-20 15:45:33

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

Bjørn wrote:

After changing the version to 1.0 and updating the path for the sources, this package works fine for me. Thanks ganlu!

The new source link should be:

ftp://ftp.mozilla.org/pub/mozilla.org/f … ce.tar.bz2

A warning, it seems installing themes is not working.

After trying out Firefox 1.0 though, I'm still experiencing it as buggy and am missing some features that are in Mozilla. Like I can't see where to configure inline autocomplete which is off in Firefox, I can't move my cursor in input field with the cursor keys (it just seems locked, though I can type), and when I open a new tab with Ctrl+T it fails to get selected. Not to mention Ctrl+clicking links does exactly the same as the broken Ctrl+T, failing to open the page at all.


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#25 2004-11-20 16:26:47

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: [NEW]:firefox 1.0rc1 PKGBUILD and package

Ok, forget about all that, and don't forget to remove your firefox profile when you experience similar problems! I don't know how old my profile was, but it was the culprit of all the above problems. Things seem to be working fine now that I did "rm -rfv ~/.mozilla/firefox", also theme installing works fine.


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

Board footer

Powered by FluxBB