This bump is necessary to get bug 120423 solved.
Created attachment 78183 [details] dev-libs/nspr-4.6.1.ebuild
Created attachment 78185 [details] nspr.pc.in
It would be great to get this into portage with package.mask entry. For future Mozilla applications to link to system nspr/nss.
Soon as this is added I will finish up the work on firefox/thunderbird to build against nss/nspr packages in tree.
Created attachment 78204 [details] updated for multilib systems. Small changes for multilib systems.
Instead of: # create pkg-config file mkdir -p ${D}/usr/$(get_libdir)/pkgconfig/ sed -e "s:@NSPR_VER@:${PV}:g" \ < ${FILESDIR}/${PN}.pc.in \ > ${D}/usr/$(get_libdir)/pkgconfig/${PN}.pc \ || die "pkg-config file creation failed!" #correct lib dir in nspr.pc sed -i "s:libdir=/usr/lib/nspr:libdir=/usr/$(get_libdir)/nspr:g" \ ${D}/usr/$(get_libdir)/pkgconfig/${PN}.pc || die "failed to correct nspr.pc" We may do: # create pkg-config file mkdir -p ${D}/usr/$(get_libdir)/pkgconfig/ sed -e "s:@NSPR_VER@:${PV}:g" \ -e "s:^libdir=.*:libdir=/usr/$(get_libdir)/nspr:" \ < ${FILESDIR}/${PN}.pc.in \ > ${D}/usr/$(get_libdir)/pkgconfig/${PN}.pc \ || die "pkg-config file creation failed!" With dev-libs/nss likewise then. Well, just a thought. You may do the way you like.
either way is fine I was just working out the details quickly is all.
I am gonna have to make another modification to ebuild. Soon as it is ready I will update it.
Created attachment 78212 [details] fully working 64bit with proper multilib Aight this is the full working ebuild ppc64 might need a block to enable 64bit elf support.
We may want to enable visibility feature? http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/nspr/nspr-4.6.1-gcc-visibility.patch
Created attachment 78217 [details, diff] amd64 patch I seem to have forgotten it so here it is now! :-b
I have managed to get these bumped in tree sooner then I thought possible. I will get to mozilla related products just as soon as I can, either next few days or sunday for sure.
Bumped in cvs, thanks! Since it had no metadata, added crypto as a herd. Alastair: feel free do add yourself as a maintainer. Cheers
As for visibility: I don't think it's much important. If you disagree, please reopen this bug.
If I am not wrong it defines HAVE_VISIBILITY_PRAGMA. At least for firefox build with gcc-4.1 here. configure part looks same for nspr as firefox. So that patch may be useless even.
I have commited -r1 as it has many changes, I also p.masked as it should have been to begin with.