SOURCES: xulrunner-install.patch - updated for 1.9, modified to allow use o...
hawk
hawk at pld-linux.org
Fri Jun 20 23:57:34 CEST 2008
Author: hawk Date: Fri Jun 20 21:57:34 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- updated for 1.9, modified to allow use of 'make install'
---- Files affected:
SOURCES:
xulrunner-install.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/xulrunner-install.patch
diff -u SOURCES/xulrunner-install.patch:1.3 SOURCES/xulrunner-install.patch:1.4
--- SOURCES/xulrunner-install.patch:1.3 Wed Jun 18 14:11:35 2008
+++ SOURCES/xulrunner-install.patch Fri Jun 20 23:57:29 2008
@@ -1,6 +1,6 @@
---- mozilla/toolkit/mozapps/installer/packager.mk 2006-12-23 03:38:32.302235167 +0200
-+++ mozilla/toolkit/mozapps/installer/packager.mk 2008-03-05 22:59:55.020447000 +0000
-@@ -328,13 +328,13 @@
+--- mozilla/toolkit/mozapps/installer/packager.mk.orig 2008-04-28 21:14:12.000000000 +0200
++++ mozilla/toolkit/mozapps/installer/packager.mk 2008-06-20 23:51:52.000000000 +0200
+@@ -339,13 +339,13 @@
# NOTE: this must be a tar now that dist links into the tree so that we
# do not strip the binaries actually in the tree.
@echo "Creating package directory..."
@@ -17,8 +17,8 @@
else # !MOZ_PKG_MANIFEST
ifeq ($(MOZ_PKG_FORMAT),DMG)
# If UNIVERSAL_BINARY, the package will be made from an already-prepared
-@@ -343,7 +343,7 @@
- @cd $(DIST) && rsync -auv --copy-unsafe-links $(_APPNAME) $(MOZ_PKG_APPNAME)
+@@ -358,7 +358,7 @@
+ endif
endif
else
- @cd $(DIST)/bin && tar $(TAR_CREATE_FLAGS) - * | (cd ../$(MOZ_PKG_APPNAME); tar -xf -)
@@ -26,7 +26,7 @@
endif # DMG
endif # MOZ_PKG_MANIFEST
ifndef PKG_SKIP_STRIP
-@@ -375,7 +375,7 @@
+@@ -390,7 +390,7 @@
endif
@echo "Removing unpackaged files..."
ifdef NO_PKG_FILES
@@ -35,3 +35,66 @@
endif
ifdef MOZ_PKG_REMOVALS
$(SYSINSTALL) $(MOZ_PKG_REMOVALS_GEN) $(DIST)/$(STAGEPATH)$(MOZ_PKG_APPNAME)$(_BINPATH)
+@@ -414,39 +414,47 @@
+ $(error "make install" is not supported on this platform. Use "make package" instead.)
+ endif
+ $(NSINSTALL) -D $(DESTDIR)$(installdir)
+- (cd $(DIST)/$(MOZ_PKG_APPNAME) && tar $(TAR_CREATE_FLAGS) - .) | \
+- (cd $(DESTDIR)$(installdir) && tar -xf -)
+ $(NSINSTALL) -D $(DESTDIR)$(bindir)
+ $(RM) -f $(DESTDIR)$(bindir)/$(MOZ_APP_NAME)
+- ln -s $(installdir)/$(MOZ_APP_NAME) $(DESTDIR)$(bindir)
++ ln -s $(installdir)/$(MOZ_APP_NAME)-bin $(DESTDIR)$(bindir)/$(MOZ_APP_NAME)
++ $(RM) -f $(DESTDIR)$(bindir)/regxpcom
++ ln -s $(installdir)/regxpcom $(DESTDIR)$(bindir)/regxpcom
++ $(RM) -f $(DESTDIR)$(bindir)/xpcshell
++ ln -s $(installdir)/xpcshell $(DESTDIR)$(bindir)/xpcshell
++ $(RM) -f $(DESTDIR)$(bindir)/xpidl
++ ln -s $(installdir)/xpidl $(DESTDIR)$(bindir)/xpidl
++ $(RM) -f $(DESTDIR)$(bindir)/xpt_dump
++ ln -s $(installdir)/xpt_dump $(DESTDIR)$(bindir)/xpt_dump
++ $(RM) -f $(DESTDIR)$(bindir)/xpt_link
++ ln -s $(installdir)/xpt_link $(DESTDIR)$(bindir)/xpt_link
+ ifdef INSTALL_SDK # Here comes the hard part
+ # include directory is stable (dist/sdk/include) and unstable (dist/include)
+ $(NSINSTALL) -D $(DESTDIR)$(includedir)/stable
+- $(NSINSTALL) -D $(DESTDIR)$(includedir)/unstable
+- (cd $(DIST)/sdk/include && tar $(TAR_CREATE_FLAGS) - .) | \
+- (cd $(DESTDIR)$(includedir)/stable && tar -xf -)
++ cp -rfLp $(DIST)/sdk/include/* $(DESTDIR)$(includedir)/stable
+ # The dist/include has module subdirectories that we need to flatten
+- find $(DIST)/include -xtype f -exec $(SYSINSTALL) $(IFLAGS1) {} $(DESTDIR)$(includedir)/unstable \;
++# find $(DIST)/include -xtype f -exec $(SYSINSTALL) $(IFLAGS1) {} $(DESTDIR)$(includedir) \;
++ cp -rfLp $(DIST)/include/* $(DESTDIR)$(includedir)
+ # IDL directory is stable (dist/sdk/idl) and unstable (dist/idl)
+ $(NSINSTALL) -D $(DESTDIR)$(idldir)/stable
+- $(NSINSTALL) -D $(DESTDIR)$(idldir)/unstable
+- (cd $(DIST)/sdk/idl && tar $(TAR_CREATE_FLAGS) - .) | \
+- (cd $(DESTDIR)$(idldir)/stable && tar -xf -)
+- (cd $(DIST)/idl && tar $(TAR_CREATE_FLAGS) - .) | \
+- (cd $(DESTDIR)$(idldir)/unstable && tar -xf -)
++ $(NSINSTALL) -D $(DESTDIR)$(idldir)
++ cp -rfLp $(DIST)/sdk/idl/* $(DESTDIR)$(idldir)/stable
++ cp -rfLp $(DIST)/idl/* $(DESTDIR)$(idldir)
+ # SDK directory is the libs + a bunch of symlinks
+ $(NSINSTALL) -D $(DESTDIR)$(sdkdir)/sdk/lib
+ if test -f $(DIST)/sdk/include/xpcom-config.h; then \
+ $(SYSINSTALL) $(IFLAGS1) $(DIST)/sdk/include/xpcom-config.h $(DESTDIR)$(sdkdir); \
+ fi
+- (cd $(DIST)/sdk/lib && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DESTDIR)$(sdkdir)/sdk/lib && tar -xf -)
++ cp -rfLp $(DIST)/sdk/lib/*.a $(DESTDIR)$(sdkdir)/sdk/lib
++ ln -s $(installdir)/libmozjs.so $(DESTDIR)$(sdkdir)/sdk/lib/libmozjs.so
++ ln -s $(installdir)/libxpcom.so $(DESTDIR)$(sdkdir)/sdk/lib/libxpcom.so
++ ln -s $(installdir)/libxul.so $(DESTDIR)$(sdkdir)/sdk/lib/libxul.so
+ $(RM) -f $(DESTDIR)$(sdkdir)/lib $(DESTDIR)$(sdkdir)/bin $(DESTDIR)$(sdkdir)/sdk/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)/stable $(DESTDIR)$(sdkdir)/sdk/include
+- ln -s $(includedir)/unstable $(DESTDIR)$(sdkdir)/include
++ ln -s $(includedir) $(DESTDIR)$(sdkdir)/include
+ ln -s $(idldir)/stable $(DESTDIR)$(sdkdir)/sdk/idl
+- ln -s $(idldir)/unstable $(DESTDIR)$(sdkdir)/idl
++ ln -s $(idldir) $(DESTDIR)$(sdkdir)/idl
+ endif # INSTALL_SDK
+
+ make-sdk:
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/xulrunner-install.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list