Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275807 - Mozilla products fail to install with BSD userland.
Summary: Mozilla products fail to install with BSD userland.
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo/BSD Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks: 227917 239847 300437
  Show dependency tree
 
Reported: 2009-06-29 11:31 UTC by Alexis Ballier
Modified: 2017-08-26 17:56 UTC (History)
2 users (show)

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


Attachments
xulrunner-2.0.1-r1.patch (xulrunner-2.0.1-r1.ebuild.patch,1.45 KB, patch)
2012-03-08 12:10 UTC, Naohiro Aota
Details | Diff
xulrunner-2.0.1-freebsd.patch (xulrunner-2.0.1-freebsd.patch,453 bytes, patch)
2012-03-08 12:21 UTC, Naohiro Aota
Details | Diff
firefox-10.0.1-r1.ebuild.patch (firefox-10.0.1-r1.ebuild.patch,1.64 KB, patch)
2012-03-09 09:30 UTC, Naohiro Aota
Details | Diff
firefox-patch.tar.bz2 (firefox-patch.tar.bz2,2.02 KB, application/octet-stream)
2012-03-09 09:35 UTC, Naohiro Aota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2009-06-29 11:31:20 UTC
Everything should be good, except make install calls find -xtype which is a GNU extension and obviously unavailable on BSD userland. Let's see if we can fix it and finally have xulrunner 1.9 on FreeBSD...


$URL is a link to the upstream bug that tracks it, still unfixed unfortunately.
Comment 1 Jory A. Pratt gentoo-dev 2009-09-16 23:22:07 UTC
This will not be fixed anytime soon, I will roll a beta of xulrunner soon as we reach beta stages. Until then mozilla upstream and self have not come to a workaround. This has been fixed in 1.9.2 but I will not work with alpha for users.
Comment 2 Alexis Ballier gentoo-dev 2009-09-17 04:55:52 UTC
(In reply to comment #1)
> This will not be fixed anytime soon, I will roll a beta of xulrunner soon as we
> reach beta stages. Until then mozilla upstream and self have not come to a
> workaround. This has been fixed in 1.9.2 but I will not work with alpha for
> users.

This is probably soon enough. Note that we're talking about a bug that has been around for more than one year...
Comment 3 Jory A. Pratt gentoo-dev 2010-01-14 00:39:35 UTC
*** Bug 300918 has been marked as a duplicate of this bug. ***
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-06-26 08:50:10 UTC
@BSD: Do you still want this bug open? (aka is there some vague hope that these issues will ever be resolved? :)
Comment 5 Alexis Ballier gentoo-dev 2010-06-26 08:55:57 UTC
(In reply to comment #4)
> @BSD: Do you still want this bug open? (aka is there some vague hope that these
> issues will ever be resolved? :)
> 

yes
Comment 6 Jory A. Pratt gentoo-dev 2011-01-14 17:29:26 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > @BSD: Do you still want this bug open? (aka is there some vague hope that these
> > issues will ever be resolved? :)
> > 
> 
> yes
> 

When you all get a chance ( soonish ) please test xulrunner from mozilla overlay we will get it moved to tree within the next week or so for user who are wanting to test it out themselves.
Comment 7 Jory A. Pratt gentoo-dev 2011-03-14 19:45:44 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > @BSD: Do you still want this bug open? (aka is there some vague hope that these
> > > issues will ever be resolved? :)
> > > 
> > 
> > yes
> > 
> 
> When you all get a chance ( soonish ) please test xulrunner from mozilla
> overlay we will get it moved to tree within the next week or so for user who
> are wanting to test it out themselves.

As no comment has been made, I am removing mozilla team from the bug if later you decide to test and works out for you all, please feel free to re-add your keywords.
Comment 8 Naohiro Aota gentoo-dev 2012-03-08 12:10:58 UTC
Created attachment 304621 [details, diff]
xulrunner-2.0.1-r1.patch

@mozilla, I have some patch to get it built on Gentoo/FreeBSD. Could
you take a look at them please.
Comment 9 Naohiro Aota gentoo-dev 2012-03-08 12:21:55 UTC
Created attachment 304623 [details, diff]
xulrunner-2.0.1-freebsd.patch

Import from FreeBSD Ports. We have follwing line on <sys/types.h>

> #ifndef _INTPTR_T_DECLARED
> typedef	__intptr_t	intptr_t;
> typedef	__uintptr_t	uintptr_t;
> #define	_INTPTR_T_DECLARED
> #endif
Comment 10 Jory A. Pratt gentoo-dev 2012-03-08 13:17:24 UTC
(In reply to comment #8)
> Created attachment 304621 [details, diff] [details, diff]
> xulrunner-2.0.1-r1.patch
> 
> @mozilla, I have some patch to get it built on Gentoo/FreeBSD. Could
> you take a look at them please.

Please port your work to 10.0.1, use ifdef so the patch can be applied unconditionally. If you can get that all worked out, I will be more then happy to push it upstream for you. We are in the process of getting everything free of xulrunner so we can remove it from tree.
Comment 11 Naohiro Aota gentoo-dev 2012-03-09 09:30:29 UTC
Created attachment 304713 [details, diff]
firefox-10.0.1-r1.ebuild.patch
Comment 12 Naohiro Aota gentoo-dev 2012-03-09 09:35:21 UTC
Created attachment 304715 [details]
firefox-patch.tar.bz2

Need these 5 patch to build on FreeBSD. I've confirmed patched ebuild could be emerge'd both on FreeBSD and Linux.

and .. no need to patch xulrunner for FreeBSD any more? I was working on bug #229427 to KEYWORD gnash.
Comment 13 Jory A. Pratt gentoo-dev 2012-03-09 13:24:02 UTC
(In reply to comment #11)
> Created attachment 304713 [details, diff] [details, diff]
> firefox-10.0.1-r1.ebuild.patch

I will review all this soon as I return from work. Thanks for your work on this.
Comment 14 Ian Stakenvicius (RETIRED) gentoo-dev 2012-03-09 14:32:47 UTC
(In reply to comment #12)
> and .. no need to patch xulrunner for FreeBSD any more? I was working on bug
> #229427 to KEYWORD gnash.

Going forward, USE=nsplugin functionality should use net-misc/npapi-sdk instead of xulrunner ...  it seems gnash hasn't been converted to that yet, although bug 383071 would seem to imply that it should be...
Comment 15 Ian Stakenvicius (RETIRED) gentoo-dev 2012-03-09 15:59:20 UTC
(In reply to comment #14)
> (In reply to comment #12)
> > and .. no need to patch xulrunner for FreeBSD any more? I was working on bug
> > #229427 to KEYWORD gnash.
> 
> Going forward, USE=nsplugin functionality should use net-misc/npapi-sdk
> instead of xulrunner ...  it seems gnash hasn't been converted to that yet,
> although bug 383071 would seem to imply that it should be...

...sorry, the USE=nsplugin case is handled, the issue is USE=gtk.  I'm not sure what the resolution is there but I believe it's a conversion to net-libs/webkit-gtk.  There doesn't seem to be a bug opened on this yet but I'll add one shortly.
Comment 16 Jory A. Pratt gentoo-dev 2012-06-09 03:02:41 UTC
I will work on these patches Monday for review and inclusion.
Comment 17 Jory A. Pratt gentoo-dev 2012-12-12 23:36:22 UTC
Is there a reason this is still open bsd patches have been included in mozilla build in gentoo for quite some time now.
Comment 18 Naohiro Aota gentoo-dev 2013-02-02 00:09:44 UTC
I've just tried to emerge www-client/firefox again, but it failed with the same error as bug #452734

At /var/tmp/portage/www-client/firefox-18.0-r1/work/mozilla-release

linux % find . -name 'jemalloc.h'
./obj-x86_64-unknown-linux-gnu/dist/include/jemalloc.h
./obj-x86_64-unknown-linux-gnu/js/src/config/system_wrappers_js/jemalloc.h
./obj-x86_64-unknown-linux-gnu/memory/jemalloc/src/include/jemalloc/jemalloc.h
./obj-x86_64-unknown-linux-gnu/config/system_wrappers/jemalloc.h
./memory/mozjemalloc/jemalloc.h

freebsd # find . -name 'jemalloc.h'
./obj-i386-unknown-freebsd9.0/js/src/config/system_wrappers_js/jemalloc.h
./obj-i386-unknown-freebsd9.0/config/system_wrappers/jemalloc.h
./memory/mozjemalloc/jemalloc.h

It seems "./obj-*/dist/include/jemalloc.h" is not created on FreeBSD (and prefix) for some reason.
Comment 19 Jory A. Pratt gentoo-dev 2017-08-26 17:56:12 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team