Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350314 - net-libs/xulrunner-1.9.2.13 installs duplicate libs in xulrunner-1.9.2 and xulrunner-devel-1.9.2/sdk/lib
Summary: net-libs/xulrunner-1.9.2.13 installs duplicate libs in xulrunner-1.9.2 and xu...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mozilla Gentoo Team
URL: https://forums.gentoo.org/viewtopic-t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-01 19:34 UTC by Hopeless
Modified: 2011-01-02 04:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hopeless 2011-01-01 19:34:40 UTC
xulrunner install identical copies of libmozjs.so, libxpcom.so and libxul.so under both /usr/lib/xulrunner-1.9.2 and /usr/lib/xulrunner-devel-1.9.2/sdk/lib, coming to about 24 MB in size.

/usr/lib/xulrunner-devel-1.9.2 mostly consists of symlinks to /usr/lib/xulrunner-1.9.2, so it seems like it'd be consistent to make those libs under xulrunner-devel-1.9.2/sdk/lib symlinks too, and definitely more efficient...

I noticed this quite a while ago, so it's not something which has been introduced in recent ebuilds or anything.

Reproducible: Always
Comment 1 Rafał Mużyło 2011-01-01 21:38:09 UTC
Seeing this too.
Comment 2 Gef 2011-01-02 00:46:17 UTC
Also applicable to xulrunner-2.0_beta9_pre-r2 in mozilla overlay.
Comment 3 Jory A. Pratt gentoo-dev 2011-01-02 04:34:21 UTC
As most distros bundle the runtime and devel package seperately this was best solution for upstream, if you think of xulrunner ebuild as providing both packages you have the same results of any other distro.

TAR_CREATE_FLAGS = -cvhf for reference to code to follow

# SDK directory is the libs + a bunch of symlinks
	$(NSINSTALL) -D $(DESTDIR)$(sdkdir)/sdk/lib
	if test -f $(DIST)/include/xpcom-config.h; then \
	  $(SYSINSTALL) $(IFLAGS1) $(DIST)/include/xpcom-config.h $(DESTDIR)$(sdkdir); \
	fi
	(cd $(DIST)/sdk/lib && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DESTDIR)$(sdkdir)/sdk/lib && tar -xf -)
	$(RM) -f $(DESTDIR)$(sdkdir)/lib $(DESTDIR)$(sdkdir)/bin $(DESTDIR)$(sdkdir)/include $(DESTDIR)$(sdkdir)/include $(DESTDIR)$(sdkdir)/sdk/idl $(DESTDIR)$(sdkdir)/idl
	ln -s $(sdkdir)/sdk/lib $(DESTDIR)$(sdkdir)/lib
	ln -s $(installdir) $(DESTDIR)$(sdkdir)/bin
	ln -s $(includedir) $(DESTDIR)$(sdkdir)/include
	ln -s $(idldir) $(DESTDIR)$(sdkdir)/idl

Hope this helps you all understand more about the build approaches we are using upstream.