You are not logged in.
you say use --enable-system-cairo when compiling Firefox... can you please explain what you mean by compile and where you would use that command?
Offline
It's an option that can be added to the mozconfig file.
ac_add_options --enable-system-cairo
Notice that Arch has the line commented out.
Offline
ah ok... so basically find the firefox linux package and try to install with makepkg?
edit: ok doing that now.. I will report the changes if any
edit2: I get this error when trying to make firefox
-> Found mozconfig
-> Found firefox.desktop
-> Found firefox-install-dir.patch
-> Found vendor.js
-> Found shared-libs.patch
==> Validating source files with md5sums...
firefox-18.0.1.source.tar.bz2 ... Passed
mozconfig ... FAILED
firefox.desktop ... Passed
firefox-install-dir.patch ... Passed
vendor.js ... Passed
shared-libs.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
here is the edited mozconfig file:
. $topsrcdir/browser/config/mozconfig
ac_add_options --prefix=/usr
ac_add_options --libdir=/usr/lib
ac_add_options --enable-official-branding
# System libraries
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --with-system-png
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --enable-system-hunspell
ac_add_options --enable-system-sqlite
ac_add_options --enable-system-ffi
ac_add_options --enable-system-cairo
ac_add_options --enable-system-pixman
ac_add_options --with-pthreads
# Features
ac_add_options --enable-startup-notification
#ac_add_options --enable-gstreamer
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-tests
ac_add_options --disable-installer
# PGO
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py 10'
I just uncommented the cairo option like you mentioned
Last edited by rg_arc (2013-01-25 09:51:32)
Offline
-> Found mozconfig -> Found firefox.desktop -> Found firefox-install-dir.patch -> Found vendor.js -> Found shared-libs.patch ==> Validating source files with md5sums... firefox-18.0.1.source.tar.bz2 ... Passed mozconfig ... FAILED firefox.desktop ... Passed firefox-install-dir.patch ... Passed vendor.js ... Passed shared-libs.patch ... Passed ==> ERROR: One or more files did not pass the validity check!
If you modified a file, its checksum must have been changed. Run
makepkg -g >> PKGBUILD
to fix this.
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
I ran makepkg --skipinteg and its compiling now
Offline
I keep getting errors with the build()... So is arch trying to stop everyone from using the cairo option or something?
Offline
I don't think you read my post properly. I did link to the cairo patch that comes *first*.
Don't say "getting errors", show the error line.
Offline
==> Validating source files with md5sums...
firefox-18.0.1.source.tar.bz2 ... Passed
mozconfig ... Passed
firefox.desktop ... Passed
cairo-1.12.2-expose-snapshot-1.patch ... Passed
firefox-install-dir.patch ... Passed
vendor.js ... Passed
shared-libs.patch ... Passed
==> Extracting Sources...
-> Extracting firefox-18.0.1.source.tar.bz2 with bsdtar
==> Starting build()...
can't find file to patch at input line 15
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Andrew Benton <andy@benton.eu.com>
|Date: 2012-04-22
|Initial Package Version: 1.12.0
|Upstream Status: Unknown
|Origin: Mozilla. From the Firefox-12 source.
|Description: this is gfx/cairo/expose-snapshot.patch applied to the system
|cairo to expose some private functions. It allows Firefox to be compiled
|with --enable-system-cairo
|more details https://bugzilla.mozilla.org/show_bug.cgi?id=722975
|
|
|diff -Naur cairo-1.12.0.orig/src/cairo-analysis-surface.c cairo-1.12.0/src/cairo-analysis-surface.c
|--- cairo-1.12.0.orig/src/cairo-analysis-surface.c 2012-02-12 09:46:01.000000000 +0000
|+++ cairo-1.12.0/src/cairo-analysis-surface.c 2012-03-31 18:23:49.418555251 +0100
--------------------------
File to patch:
Here is the error I am getting now
and here is the PKGBUILD:
# $Id: PKGBUILD 175530 2013-01-19 07:31:00Z heftig $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Jakub Schmidtke <sjakub@gmail.com>
pkgname=firefox
pkgver=18.0.1
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
depends=('gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib'
'libnotify' 'desktop-file-utils' 'hicolor-icon-theme'
'libvpx' 'libevent' 'nss>=3.14.1' 'hunspell' 'sqlite')
makedepends=('unzip' 'zip' 'diffutils' 'python2' 'yasm' 'mesa'
'autoconf2.13' 'libidl2' 'xorg-server-xvfb' 'imake')
optdepends=('networkmanager: Location detection via available WiFi networks')
url="http://www.mozilla.org/projects/firefox"
install=firefox.install
options=(!emptydirs)
source=(https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.bz2
mozconfig firefox.desktop cairo-1.12.2-expose-snapshot-1.patch firefox-install-dir.patch vendor.js shared-libs.patch)
md5sums=('8b400555fc7063163e3b99472d0c92a1'
'efdd58626b2f56dea31e26879eb2db3b'
'6174396b4788deffa399db3f6f010a94'
'150ac0fb3ac7b2114c8e8851a9e0516c'
'0d053487907de4376d67d8f499c5502b'
'52e52f840a49eb1d14be1c0065b03a93')
build() {
cd mozilla-release
cp ../mozconfig .mozconfig
patch -p1 -i ../cairo-1.12.2-expose-snapshot-1.patch
patch -Np1 -i ../firefox-install-dir.patch
patch -Np1 -i ../shared-libs.patch
# Fix PRE_RELEASE_SUFFIX
sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' \
browser/base/Makefile.in
# WebRTC build tries to execute "python" and expects Python 2
# Workaround taken from chromium PKGBUILD
mkdir "$srcdir/python2-path"
ln -s /usr/bin/python2 "$srcdir/python2-path/python"
export PATH="$srcdir/python2-path:$PATH"
export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/firefox"
export PYTHON="/usr/bin/python2"
export MOZ_MAKE_FLAGS="$MAKEFLAGS"
unset MAKEFLAGS
# Enable PGO
export MOZ_PGO=1
export DISPLAY=:99
Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 $DISPLAY &
_fail=0
make -f client.mk build || _fail=1
kill $! || true
return $_fail
}
package() {
cd mozilla-release
make -j1 -f client.mk DESTDIR="$pkgdir" install
install -Dm644 ../vendor.js "$pkgdir/usr/lib/firefox/defaults/preferences/vendor.js"
for i in 16 22 24 32 48 256; do
install -Dm644 browser/branding/official/default$i.png \
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/firefox.png"
done
install -Dm644 ../firefox.desktop \
"$pkgdir/usr/share/applications/firefox.desktop"
# Use system-provided dictionaries
rm -rf "$pkgdir"/usr/lib/firefox/{dictionaries,hyphenation}
ln -s /usr/share/hunspell "$pkgdir/usr/lib/firefox/dictionaries"
ln -s /usr/share/hyphen "$pkgdir/usr/lib/firefox/hyphenation"
# We don't want the development stuff
rm -r "$pkgdir"/usr/{include,lib/firefox-devel,share/idl}
#workaround for now
#https://bugzilla.mozilla.org/show_bug.cgi?id=658850
ln -sf firefox "$pkgdir/usr/lib/firefox/firefox-bin"
}
md5sums=('8b400555fc7063163e3b99472d0c92a1'
'58ec1be83253b0f9444d5623bbd86995'
'6174396b4788deffa399db3f6f010a94'
'4e3667a4e4e598fab1a08170417cd96d'
'150ac0fb3ac7b2114c8e8851a9e0516c'
'0d053487907de4376d67d8f499c5502b'
'52e52f840a49eb1d14be1c0065b03a93')
md5sums=('8b400555fc7063163e3b99472d0c92a1'
'58ec1be83253b0f9444d5623bbd86995'
'6174396b4788deffa399db3f6f010a94'
'4e3667a4e4e598fab1a08170417cd96d'
'150ac0fb3ac7b2114c8e8851a9e0516c'
'0d053487907de4376d67d8f499c5502b'
'52e52f840a49eb1d14be1c0065b03a93')
md5sums=('8b400555fc7063163e3b99472d0c92a1'
'58ec1be83253b0f9444d5623bbd86995'
'6174396b4788deffa399db3f6f010a94'
'4e3667a4e4e598fab1a08170417cd96d'
'150ac0fb3ac7b2114c8e8851a9e0516c'
'0d053487907de4376d67d8f499c5502b'
'52e52f840a49eb1d14be1c0065b03a93')
Last edited by rg_arc (2013-01-26 00:42:40)
Offline
No, that cairo patch is called cairo because it's for the cairo package, not firefox
Offline
No, that cairo patch is called cairo because it's for the cairo package, not firefox
alright, I patched cairo successfully and now I get this error after trying to makepkg firefox:
collect2: error: ld terminated with signal 9 [Killed]
make[6]: *** [libxul.so] Error 1
make[6]: Leaving directory `/home/ricky/firefox/src/mozilla-release/obj-x86_64-unknown-linux-gnu/toolkit/library'
make[5]: *** [libs_tier_platform] Error 2
make[5]: Leaving directory `/home/ricky/firefox/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[4]: *** [tier_platform] Error 2
make[4]: Leaving directory `/home/ricky/firefox/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/home/ricky/firefox/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[2]: *** [realbuild] Error 2
make[2]: Leaving directory `/home/ricky/firefox/src/mozilla-release'
make[1]: *** [profiledbuild] Error 2
make[1]: Leaving directory `/home/ricky/firefox/src/mozilla-release'
make: *** [build] Error 2
==> ERROR: A failure occurred in build().
Aborting...
PKGBUILD:
# $Id: PKGBUILD 175530 2013-01-19 07:31:00Z heftig $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Jakub Schmidtke <sjakub@gmail.com>
pkgname=firefox
pkgver=18.0.1
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
depends=('gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib'
'libnotify' 'desktop-file-utils' 'hicolor-icon-theme'
'libvpx' 'libevent' 'nss>=3.14.1' 'hunspell' 'sqlite')
makedepends=('unzip' 'zip' 'diffutils' 'python2' 'yasm' 'mesa'
'autoconf2.13' 'libidl2' 'xorg-server-xvfb' 'imake')
optdepends=('networkmanager: Location detection via available WiFi networks')
url="http://www.mozilla.org/projects/firefox"
install=firefox.install
options=(!emptydirs)
source=(https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.bz2
mozconfig firefox.desktop firefox-install-dir.patch vendor.js shared-libs.patch)
md5sums=('8b400555fc7063163e3b99472d0c92a1'
'efdd58626b2f56dea31e26879eb2db3b'
'6174396b4788deffa399db3f6f010a94'
'150ac0fb3ac7b2114c8e8851a9e0516c'
'0d053487907de4376d67d8f499c5502b'
'52e52f840a49eb1d14be1c0065b03a93')
build() {
cd mozilla-release
cp ../mozconfig .mozconfig
patch -Np1 -i ../firefox-install-dir.patch
patch -Np1 -i ../shared-libs.patch
# Fix PRE_RELEASE_SUFFIX
sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' \
browser/base/Makefile.in
# WebRTC build tries to execute "python" and expects Python 2
# Workaround taken from chromium PKGBUILD
mkdir "$srcdir/python2-path"
ln -s /usr/bin/python2 "$srcdir/python2-path/python"
export PATH="$srcdir/python2-path:$PATH"
export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/firefox"
export PYTHON="/usr/bin/python2"
export MOZ_MAKE_FLAGS="$MAKEFLAGS"
unset MAKEFLAGS
# Enable PGO
export MOZ_PGO=1
export DISPLAY=:99
Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 $DISPLAY &
_fail=0
make -f client.mk build || _fail=1
kill $! || true
return $_fail
}
package() {
cd mozilla-release
make -j1 -f client.mk DESTDIR="$pkgdir" install
install -Dm644 ../vendor.js "$pkgdir/usr/lib/firefox/defaults/preferences/vendor.js"
for i in 16 22 24 32 48 256; do
install -Dm644 browser/branding/official/default$i.png \
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/firefox.png"
done
install -Dm644 ../firefox.desktop \
"$pkgdir/usr/share/applications/firefox.desktop"
# Use system-provided dictionaries
rm -rf "$pkgdir"/usr/lib/firefox/{dictionaries,hyphenation}
ln -s /usr/share/hunspell "$pkgdir/usr/lib/firefox/dictionaries"
ln -s /usr/share/hyphen "$pkgdir/usr/lib/firefox/hyphenation"
# We don't want the development stuff
rm -r "$pkgdir"/usr/{include,lib/firefox-devel,share/idl}
#workaround for now
#https://bugzilla.mozilla.org/show_bug.cgi?id=658850
ln -sf firefox "$pkgdir/usr/lib/firefox/firefox-bin"
}
md5sums=('8b400555fc7063163e3b99472d0c92a1'
'58ec1be83253b0f9444d5623bbd86995'
'6174396b4788deffa399db3f6f010a94'
'150ac0fb3ac7b2114c8e8851a9e0516c'
'0d053487907de4376d67d8f499c5502b'
'52e52f840a49eb1d14be1c0065b03a93')
I ran makepkg -g >> PKGBUILD before I ran the makepkg command and I have the cairo line uncommented in mozconfig... So I am not sure why there is a failure with build()
Last edited by rg_arc (2013-01-26 10:06:09)
Offline
Is that really the *first* error line?
With firefox 18, PGO didn't want to compile for me (don't have the details handy), so try removing the PROFILE_GEN_SCRIPT line from your mozconfig file.
Offline
Is that really the *first* error line?
With firefox 18, PGO didn't want to compile for me (don't have the details handy), so try removing the PROFILE_GEN_SCRIPT line from your mozconfig file.
well that is the start of what looks like error lines... I mean what else is there to look at anything before that line is a jumbled mess of... well... nothing conclusive.
anyways I get this error after deleting that line in mozconfig:
collect2: error: ld terminated with signal 9 [Killed]
make[6]: *** [libxul.so] Error 1
make[6]: Leaving directory `/home/ricky/firefox/src/mozilla-release/obj-x86_64-unknown-linux-gnu/toolkit/library'
make[5]: *** [libs_tier_platform] Error 2
make[5]: Leaving directory `/home/ricky/firefox/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[4]: *** [tier_platform] Error 2
make[4]: Leaving directory `/home/ricky/firefox/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/home/ricky/firefox/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[2]: *** [realbuild] Error 2
make[2]: Leaving directory `/home/ricky/firefox/src/mozilla-release'
make[1]: *** [profiledbuild] Error 2
make[1]: Leaving directory `/home/ricky/firefox/src/mozilla-release'
make: *** [build] Error 2
==> ERROR: A failure occurred in build().
Aborting...
mozconfig:
. $topsrcdir/browser/config/mozconfig
ac_add_options --prefix=/usr
ac_add_options --libdir=/usr/lib
ac_add_options --enable-official-branding
# System libraries
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --with-system-png
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --enable-system-hunspell
ac_add_options --enable-system-sqlite
ac_add_options --enable-system-ffi
ac_add_options --enable-system-cairo
ac_add_options --enable-system-pixman
ac_add_options --with-pthreads
# Features
ac_add_options --enable-startup-notification
#ac_add_options --enable-gstreamer
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-tests
ac_add_options --disable-installer
Offline
pkgconfig was recently updated - check that you have 0.27.1 rather than 0.28
Offline
pkgconfig was recently updated - check that you have 0.27.1 rather than 0.28
I have 0.27.1... so I will try once more with Firefox.. if it doesn't work out I will just wait until a new Firefox stable rolls out.
Offline
I discovered something interesting today while playing with my font settings in xfce4. I switched my sub-pixel order from RGB to BGR and I can reproduce the look of the blurry Firefox fonts on my desktop. So why would Firefox render the fonts as if they were BGR instead of respecting the system's font rendering settings?
Last edited by rg_arc (2013-02-01 06:49:04)
Offline
Hah, sounds like my patch.
Anyway, seems like firefox bug.
Offline
I can't seem to makepkg firefox using that patch. Sure I was able to makepkg cairo with the patch just fine... but firefox is just a pain to compile. Do you happen to have a .pkg.tar.xz for x86_64 of the patched firefox I could download?
Offline
Yeah, the patch doesn't apply to firefox 18.0.1:
/usr/src/mozilla-release/layout/base/FrameLayerBuilder.cpp:2002:1: error: prototype for ‘void mozilla::{anonymous}::ContainerState::ProcessDisplayItems(const nsDisplayList&, mozilla::FrameLayerBuilder::Clip&, uint32_t)’ does not match any in class ‘mozilla::{anonymous}::ContainerState’
If you're feeling adventurous, try 19.0b4
Offline
I found out the hard way about that...
What do you mean by "adventurous" what is this package exactly?
Offline
Or if you don't want to downgrade to 17, try the beta channel.
I've this in my pacman.conf:
[heftig]
Server=http://pkgbuild.com/~heftig/repo/i686/
then:
pacman -Suy aurora
You may also want to copy your ~.mozilla/firefox to ~.mozilla/aurora to have the same profile
...then just run aurora.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
Or I could go here http://pkgbuild.com/~heftig/repo/x86_64/ and download it. Apparently the font issue isn't present with Aurora. I guess I can call this solved (for now)
Offline
I'm trying firefox 18.0.2 and the issue seems gone; do you confirm?
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
no the issue is still here. Aurora has no issues and any other browser looks fine. Its mostly just twitter and facebook on firefox specifically. Most of the sites.. like this one look great on firefox... but the fonts related to the comment areas of facebook and most of twitter look horrendous still.
Offline
that's strange, i had this problem in this forum too.
-edit
...and still have, sorry for the noise.
Last edited by kokoko3k (2013-02-07 16:15:43)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
alright... I am going to mark this as not solved yet. Some people are probably still having trouble with Firefox specifically. I am using Aurora instead of Firefox now but Aurora isn't really "Firefox" so I will keep this open until this is worked out.
Offline