Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414297 - >www-client/firefox-11 - get it working on HPPA again
Summary: >www-client/firefox-11 - get it working on HPPA again
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: HPPA Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on: 427612 465396
Blocks:
  Show dependency tree
 
Reported: 2012-05-01 19:06 UTC by Jeroen Roovers (RETIRED)
Modified: 2014-02-22 14:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
www-client:firefox-12.0:20120501-163518.log (20120501-163518.log,162.80 KB, text/plain)
2012-05-01 19:06 UTC, Jeroen Roovers (RETIRED)
Details
firefox-12-414297.patch.out (firefox-12-414297.patch.out,12.25 KB, text/plain)
2012-05-10 00:16 UTC, Jeroen Roovers (RETIRED)
Details
www-client:firefox-12.0-r1:20120524-022739.log (20120524-022739.log,163.19 KB, text/plain)
2012-05-24 02:43 UTC, Jeroen Roovers (RETIRED)
Details
www-client:firefox-15.0:20120904-153359.log (20120904-153359.log,211.92 KB, text/plain)
2012-09-04 15:52 UTC, Jeroen Roovers (RETIRED)
Details
firefox-20-stack_direction.patch (firefox-20-stack_direction.patch,350 bytes, patch)
2013-04-29 13:02 UTC, Jeroen Roovers (RETIRED)
Details | Diff
www-client:firefox-20.0.1:20130429-123917.log with patch from attachment #346888 applied (20130429-123917.log,902.85 KB, text/plain)
2013-04-29 13:03 UTC, Jeroen Roovers (RETIRED)
Details
firefox-20-hppa.patch (firefox-20-hppa.patch,654 bytes, patch)
2013-04-30 09:13 UTC, Jeroen Roovers (RETIRED)
Details | Diff
firefox-21-nativeStackLimit.patch (firefox-21-nativeStackLimit.patch,299 bytes, patch)
2013-05-28 19:58 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2012-05-01 19:06:05 UTC
Created attachment 310593 [details]
www-client:firefox-12.0:20120501-163518.log

Tue May  1 21:03:13 CEST 2012
Portage 2.1.10.57 (default/linux/hppa/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo-JeR parisc)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.12-gentoo-JeR-parisc-PA8700_-PCX-W2-with-gentoo-2.1
Timestamp of tree: Tue, 01 May 2012 15:15:01 +0000
distcc 3.1 hppa2.0-unknown-linux-gnu [enabled]
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.3-r1, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1, 2.22-r1
sys-devel/gcc:            4.4.5, 4.4.6-r1, 4.5.1-r1, 4.5.2, 4.5.3-r2, 4.6.2, 4.6.3
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo JeR
ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="* -@EULA"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-mschedule=8000 -march=2.0 -ggdb -pipe -Wall -O2 -Wno-comment"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/distcc/bin /usr/share/gnupg/qualified.txt /var/bind /var/spool/torque /var/vpopmail/etc /var/www/localhost/htdocs/wordpress/wp-config.php"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mschedule=8000 -march=2.0 -ggdb -pipe -Wall -O2"
DISTDIR="/world/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs buildpkg distcc distlocks ebuild-locks fixlafiles metadata-transfer news notitles parallel-fetch protect-owned sandbox sfperms splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS="-mschedule=8000 -march=2.0 -ggdb -pipe -Wall -O2"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.leaseweb.com/gentoo/ "
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en nl he"
MAKEOPTS="-j6"
PKGDIR="/keeps/gentoo/packages/elmer"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/alt"
PORTDIR="/world/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aacplus aalib abyss accessibility ads afterimage agg alsa amr amrnb amrwb ao aoss apis apng ares artist-screen asf ass assistant async asyncns audiofile audit augeas automount avfs bash-completion berkdb bidi bittorrent bittorrent-external bl bluetooth bzip2 c++ cairo captury catalogs cblas cdb cdio cdr chardet cjk clarens cleartype cli cman colors contrast cpath cracklib crypt cue cups curl custom-cflags custom-cxxflags cxx dbi dbtool dbus designer designer-plugin device-mapper dga dia dirac directfb djbfft djvu domainkeys dri drm dts dv dvd dvdr dvdread ebook edl egl elf emacs enca encode esd examples exceptions exif expat extras facebook fam fame fastbuild fastcgi fbcon ffmpeg filter fits flac fltk fluidsynth fontconfig foomaticdb fortran fpx frei0r ftp fts3 fusion gadu galago games gcrypt gd gdbm geant4 geoip ggi gif gimp gimpprint glep glib glut gmp gnokii gnutls gphoto2 gpm gps gs gsl gsm gtk gtk2 gtk3 gtkhtml guidexml guile hal hepmc hesiod hotpixels hppa hwdb i18n ical icecast iconv icu idea idn imagemagick imlib indi inotify inquisitio introspection ipmi ipv6 isc ithreads jabber jack javascript jbig jingle jpeg jpeg2k judy kate kpathsea lame lapack lasi lastfmradio latex lcms ldap leim lensfun libass libcaca libffi libmms libnl libotf libsamplerate libssh2 libwww live logrotate logwatch lua lyrics-screen lzma lzo m17n-lib mad manhole matroska mbrola mem-scramble memcache metis mhash midi mikmod mmap mms mng modplug modules motif mozbranding mp3 mpg123 mpi mplayer mssql mudflap multislot musepack musicbrainz mysql nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas ncurses netpbm nettle network-cron nfconntrack nfs nls nntp nova nptl nptlonly nsplugin ntlm objc objc++ objc-gc offensive ogg openal openexr opengl openmp openssl optimization oss ots overlays pam pango pbs pch pcre pdf pdo-external php pipe pkcs11 plasma plotutils plugins png policykit portage portaudio postgres povray ppds pppd pulseaudio python pyzord qalculate qdbm qt3support qt4 quicktime quotas raw readline recode rle romio rpc rrdtool rtc rtmp samba sasl scale0tilt scanner scim sdl seamonkey secure-delete server session sid skk slp smi sms sndfile snmp soap song-screen soundex speex spell spoof-source sqlite srt srtp ssh ssl startup-notification strong-optimization subtitles subversion suhosin supernodal svg swat sysfs syslog system-sqlite talkfilters tcl tcpd test tftp tga theora threads thumbnail thunar-vfs tidy tiff timezone timidity tk tokyocabinet tools truetype tslib tunepimp twolame udev unicode unzip urandom usb userlocales utempter utf v4l v4l2 vala vanim vcd vim-syntax vorbis watchdog wavpack wayland webdav webinstall webp wildmidi winbind wlan wma wmf xanim xcb xchattext xcomposite xetex xface xft xlisten xml xml2 xmp xmpi xnest xorg xpm xrandr xscreensaver xsettings xulrunner xv xvfb xvid xvmc zip zip-external zlib" ALSA_CARDS="ad1889 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="nfs syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev joystick keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa tek4957 tslib ur98 wacom void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl he" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="stifb fbdev none dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

[ebuild     U ] www-client/firefox-12.0 [11.0-r1] USE="alsa custom-cflags dbus minimal startup-notification system-sqlite -bindist (
-crashreporter) (-custom-optimization) -debug (-ipc) (-libnotify) -pgo (-selinux) (-webm) (-wifi)" LINGUAS="he nl -af -ak -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb_NO -nn_NO -nso -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW -zu"
Comment 1 Jory A. Pratt gentoo-dev 2012-05-03 02:27:20 UTC
If you could swap out the patch and test or epatch_exclude it and apply patch with new name would be appreciated.   https://bug691898.bugzilla.mozilla.org/attachment.cgi?id=620274
Comment 2 Jory A. Pratt gentoo-dev 2012-05-07 12:22:59 UTC
in mozilla overlay please let me know.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-09 20:33:55 UTC
Please keep it open or I will lose track of this (especially since this bug doesn't (rev)depend on another one. More on this later today.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-10 00:16:57 UTC
Created attachment 311295 [details]
firefox-12-414297.patch.out

 * Done with patching
 * Applying user patches from /etc/portage/patches//www-client/firefox ...
 *   firefox-12-414297.patch ...

 * Failed Patch: firefox-12-414297.patch !
 *  ( /etc/portage/patches//www-client/firefox/firefox-12-414297.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /mnt/alt/portage/www-client/firefox-12.0/temp/firefox-12-414297.patch.out
Comment 5 Jory A. Pratt gentoo-dev 2012-05-10 02:02:09 UTC
(In reply to comment #4)
> Created attachment 311295 [details]
> firefox-12-414297.patch.out
> 
>  * Done with patching
>  * Applying user patches from /etc/portage/patches//www-client/firefox ...
>  *   firefox-12-414297.patch ...
> 
>  * Failed Patch: firefox-12-414297.patch !
>  *  ( /etc/portage/patches//www-client/firefox/firefox-12-414297.patch )
>  * 
>  * Include in your bugreport the contents of:
>  * 
>  *  
> /mnt/alt/portage/www-client/firefox-12.0/temp/firefox-12-414297.patch.out

Just change the patchset number to 0.2, or test from overlay, I know it will apply properly as I am currently running it on my ppc machine :)
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-10 02:51:58 UTC
OK, I'll fix the patch revision locally.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-10 03:17:23 UTC
Index: firefox-12.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/www-client/firefox/firefox-12.0.ebuild,v
retrieving revision 1.3
diff -u -B -r1.3 firefox-12.0.ebuild
--- firefox-12.0.ebuild 3 May 2012 06:01:04 -0000       1.3
+++ firefox-12.0.ebuild 10 May 2012 03:17:02 -0000
@@ -27,7 +27,7 @@
 # Changeset for alpha snapshot
 CHANGESET="e56ecd8b3a68"
 # Patch version
-PATCH="${PN}-12.0-patches-0.1"
+PATCH="${PN}-12.0-patches-0.2"
 # Upstream ftp release URI that's used by mozlinguas.eclass
 # We don't use the http mirror because it deletes old tarballs.
 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/"

No, that didn't work. Is that patch in the URL up to date?
Comment 8 Jory A. Pratt gentoo-dev 2012-05-10 12:00:13 UTC
(In reply to comment #7)
> Index: firefox-12.0.ebuild
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/www-client/firefox/firefox-12.0.ebuild,v
> retrieving revision 1.3
> diff -u -B -r1.3 firefox-12.0.ebuild
> --- firefox-12.0.ebuild 3 May 2012 06:01:04 -0000       1.3
> +++ firefox-12.0.ebuild 10 May 2012 03:17:02 -0000
> @@ -27,7 +27,7 @@
>  # Changeset for alpha snapshot
>  CHANGESET="e56ecd8b3a68"
>  # Patch version
> -PATCH="${PN}-12.0-patches-0.1"
> +PATCH="${PN}-12.0-patches-0.2"
>  # Upstream ftp release URI that's used by mozlinguas.eclass
>  # We don't use the http mirror because it deletes old tarballs.
>  MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/"
> 
> No, that didn't work. Is that patch in the URL up to date?

No the latestest patch is in 0.2 patchset already. Are you still seeing the same error or something completely different?
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-10 14:59:17 UTC
(In reply to comment #8)
> No the latestest patch is in 0.2 patchset already. Are you still seeing the
> same error or something completely different?

Ah, OK, so with the latestestest patchset, and without the local patch, it's now building again.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-10 15:28:40 UTC
No, it fails with patchset 2 with the very same error.

And isn't that patch for bug #408613?
Comment 11 Jory A. Pratt gentoo-dev 2012-05-10 16:55:44 UTC
(In reply to comment #10)
> No, it fails with patchset 2 with the very same error.
> 
> And isn't that patch for bug #408613?

It is the port of the patch that is breaking it, appears Mike over in debian is using a different patch at the moment I will review it more tonight and see what we can do to either swap out with debian patch or update patch in gentoo to fix the issue once and for all.
Comment 12 Jory A. Pratt gentoo-dev 2012-05-24 01:52:39 UTC
-r1 for both tb/fx-12 are now in tree please test and report.
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-24 02:38:36 UTC
Nearly the same as before:
/mnt/alt/portage/www-client/firefox-12.0-r1/work/mozilla-release/js/src/jsapi.cpp:3018:44: error: 'struct JSRuntime' has no member named 'nativeStackBase'
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-24 02:43:57 UTC
Created attachment 312911 [details]
www-client:firefox-12.0-r1:20120524-022739.log
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-05 13:30:02 UTC
/mnt/alt/portage/www-client/firefox-13.0/work/mozilla-release/js/src/jsgc.cpp: In function 'void js::MarkConservativeStackRoots(JSTracer*, bool)':
/mnt/alt/portage/www-client/firefox-13.0/work/mozilla-release/js/src/jsgc.cpp:1153:20: error: invalid conversion from 'uintptr_t' to 'uintptr_t*'
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2012-07-23 08:39:21 UTC
In file included from /mnt/alt/portage/www-client/firefox-14.0.1/work/mozilla-release/mfbt/double-conversion/bignum-dtoa.h:31:0,
                 from /mnt/alt/portage/www-client/firefox-14.0.1/work/mozilla-release/mfbt/double-conversion/bignum-dtoa.cc:30:
/mnt/alt/portage/www-client/firefox-14.0.1/work/mozilla-release/mfbt/double-conversion/utils.h:67:2: error: #error Target architecture was not detected as supported by Double-Conversion.

The problem seems to be ever shifting. :)
Comment 17 Jory A. Pratt gentoo-dev 2012-07-23 16:23:16 UTC
Please test included patch found on additional bug.
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-04 15:52:18 UTC
Created attachment 322928 [details]
www-client:firefox-15.0:20120904-153359.log

/mnt/alt/portage/www-client/firefox-15.0/work/mozilla-release/js/src/jsgc.cpp: In function 'void js::MarkConservativeStackRoots(JSTr
acer*, bool)':
/mnt/alt/portage/www-client/firefox-15.0/work/mozilla-release/js/src/jsgc.cpp:1081:20: error: invalid conversion from 'uintptr_t' to 'uintptr_t*'
Comment 19 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-29 13:02:09 UTC
Created attachment 346888 [details, diff]
firefox-20-stack_direction.patch

I am not sure this will work, but it brings the stack-grows-up case back in line with the opposite case.

Something else is still needed since the build fails later on with:

make[5]: *** No rule to make target `trunk/Makefile', needed by `export'.  Stop.

I'll attach that build log shortly.
Comment 20 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-29 13:03:17 UTC
Created attachment 346890 [details]
www-client:firefox-20.0.1:20130429-123917.log with patch from attachment #346888 [details, diff] applied
Comment 21 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-29 14:12:50 UTC
It's probably near this horrible code:

case "$CPU_ARCH" in
x86_64 | ia64)
    WEBRTC_TARGET_ARCH=x64

No, ia64 = Itanium, and x86_64 = amd64 / x64. Wow.

I think the following bit is what breaks the HPPA build:

*)                                                                                                                                  
# unsupported arch for webrtc                 
    WEBRTC_TARGET_ARCH=unknown                
    MOZ_WEBRTC=
    ;;


IIRC this was fixed for many architectures in bug #444780 with a patch that went upstream.
Comment 22 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-30 09:13:51 UTC
Created attachment 346960 [details, diff]
firefox-20-hppa.patch

Except for bug #465396, this fixes building on HPPA.
Comment 23 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-28 19:58:38 UTC
Created attachment 349484 [details, diff]
firefox-21-nativeStackLimit.patch

Combined with attachment #346960 [details, diff], this allows building and running firefox-21 on HPPA.
Comment 24 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-05 15:00:57 UTC
I have put both patches in FILESDIR and marked 21.0 for ~hppa.