[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

./packages/openofficeorg/3.0.1/experimental r1342: cleanup and broffice.org installation fixes



------------------------------------------------------------
revno: 1342
committer: Rene Engelhard <rene@debian.org>
branch nick: debian
timestamp: Thu 2008-12-18 01:04:32 +0100
message:
  cleanup and broffice.org installation fixes
modified:
  README
  broffice.org.postrm.in
  broffice.org.preinst.in
  changelog
  rules
=== modified file 'README'
--- a/README	2006-04-17 20:45:23 +0000
+++ b/README	2008-12-18 00:04:32 +0000
@@ -14,8 +14,9 @@
 ---------------------------------------------------
 These options are supported:
 
-  debug     - enable debug build.  See the buildprj target for instructions
-              about building individual modules with debug.
+  debug     - build with FULL debug symbols. Default is just to build
+	      with SMALL ones since the deb otherwise gets too big
+	      ((>400M, ca. 1GB I-S))
 
   ccache    - enable the use of ccache during the build.  This is highly
 	      recommended if you plan on building the package more than once,
@@ -26,19 +27,19 @@
 	      $DEB_BUILD_OPTIONS under pbuilder (this has no effect on speed,
 	      though because the cache does not persist in pbuilder)
 
-  num-cups=<n>
+  parallel=<n>
             - enable n projects to be built in parallel (-P flag to build.pl).
               The log output can get a little confusing, and some projects
 	      may fail still. You need to remove ooo-build/config.status if you
 	      change this value after interrupting a build.
 	      
-  from=<prj>
-            - Resume build from the specified project.  Useful if a build is 
-	      interrupted.
-
   lang=<code>
   	    - Build only the specified language
 
+  nocheck
+	    - disable run of tests when enabled in rules
+
+
 The targets that are built during the package build
 ---------------------------------------------------
 
@@ -63,33 +64,11 @@
 
 maintscripts       - Generates  the maintainer scripts
 
-- clean targets -
-
-In addition to the normal 'clean', there are some partial clean operations for
-saving space without having to completely rebuild the packages:
-
-clean-debdir       - Clean up the package directories (about 830M).  Rebuilds
-                     start at 'setup'.
-
-clean-instsetoo    - Clean up the installation sets and package directories
-                     (about 2.5 Gb!).  Rebuilds start at 'insetsetoo'.
-
-clean-objectdirs   - Clean compilation results, but leave solver (cleans about
-		     600Mb in addition to instsetoo).  Rebuilds start at
-		     'dmake, but you can still develop and build individual
-                     projects.  This is the equivalent of downloading a
-                     preinstalled solver tree.
-
-- other targets -
-
 get-ooo-build      - get ooo-build
 download           - downloads needed files from ooo.ximian.com, normally
                      not needed, already done
-cvsupdate          - as the name says ;-)
-
-environment        - show build environment
-
-makebinariestar    - make tarball of binaries in the output tree
+get-orig-source	   - gets original source (only works for milestones right now)
+vcsupdate          - as the name says ;-)
 
 Build system file layout
 ========================
@@ -101,7 +80,10 @@
   patches (patches/); also the installation scripts for installing into
   debian/tmp/pkg (-> ooinstall, package-ooo).
 
-  For adding patches; please do so in ooo-build.
+  For adding patches; please do so in ooo-build. To get a source tree
+  unpacked and patched run:
+	debian/rules configure
+	cd ooo-build && make patch.apply
 
   See README and www/* for documentation.
 

=== modified file 'broffice.org.postrm.in'
--- a/broffice.org.postrm.in	2008-11-27 10:05:17 +0000
+++ b/broffice.org.postrm.in	2008-12-18 00:04:32 +0000
@@ -9,7 +9,7 @@
 
 #INCLUDE_SHELL_LIB#
 
-DIVERSIONS="/@OOBRANDDIR@/program/bootstraprc /@OOBRANDDIR@/program/versionrc /@OOBRANDDIR@/share/registry/modules/org/openoffice/Setup/Setup-brand.xcu /usr/share/applications/ooo@VER@-calc.desktop /usr/share/applications/ooo@VER@-writer.desktop /usr/share/applications/ooo@VER@-draw.desktop /usr/share/applications/ooo@VER@-base.desktop /usr/share/applications/ooo@VER@-impress.desktop /usr/share/applications/ooo@VER@-math.desktop /usr/share/applications/ooo@VER@-extensionmgr.desktop /usr/share/applications/ooo@VER@-startcenter.desktop /usr/share/application-registry/openoffice.applications /usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop"
+DIVERSIONS="/@OOBRANDDIR@/program/bootstraprc /@OOBRANDDIR@/program/versionrc /@OOBRANDDIR@/share/registry/modules/org/openoffice/Setup/Setup-brand.xcu /usr/share/applications/ooo@VER@-calc.desktop /usr/share/applications/ooo@VER@-writer.desktop /usr/share/applications/ooo@VER@-draw.desktop /usr/share/applications/ooo@VER@-base.desktop /usr/share/applications/ooo@VER@-impress.desktop /usr/share/applications/ooo@VER@-math.desktop /usr/share/applications/ooo@VER@-extensionmgr.desktop /usr/share/applications/ooo@VER@-startcenter.desktop /usr/share/application-registry/openoffice.applications /usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop /usr/share/mime-info/openoffice.keys"
 DIVERSIONS="$DIVERSIONS /@OOBRANDDIR@/program/intro.bmp /@OOBRANDDIR@/program/about.bmp"
 
 LANGPACKISOS="@LANGPACKISOS@"

=== modified file 'broffice.org.preinst.in'
--- a/broffice.org.preinst.in	2008-11-27 10:05:17 +0000
+++ b/broffice.org.preinst.in	2008-12-18 00:04:32 +0000
@@ -9,7 +9,7 @@
 
 #INCLUDE_SHELL_LIB#
 
-DIVERSIONS="/@OOBRANDDIR@/program/bootstraprc /@OOBRANDDIR@/program/versionrc /@OOBRANDDIR@/share/registry/modules/org/openoffice/Setup/Setup-brand.xcu /usr/share/applications/ooo@VER@-calc.desktop /usr/share/applications/ooo@VER@-writer.desktop /usr/share/applications/ooo@VER@-draw.desktop /usr/share/applications/ooo@VER@-base.desktop /usr/share/applications/ooo@VER@-impress.desktop /usr/share/applications/ooo@VER@-math.desktop /usr/share/applications/ooo@VER@-extensionmgr.desktop /usr/share/applications/ooo@VER@-startcenter.desktop /usr/share/application-registry/openoffice.applications /usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop"
+DIVERSIONS="/@OOBRANDDIR@/program/bootstraprc /@OOBRANDDIR@/program/versionrc /@OOBRANDDIR@/share/registry/modules/org/openoffice/Setup/Setup-brand.xcu /usr/share/applications/ooo@VER@-calc.desktop /usr/share/applications/ooo@VER@-writer.desktop /usr/share/applications/ooo@VER@-draw.desktop /usr/share/applications/ooo@VER@-base.desktop /usr/share/applications/ooo@VER@-impress.desktop /usr/share/applications/ooo@VER@-math.desktop /usr/share/applications/ooo@VER@-extensionmgr.desktop /usr/share/applications/ooo@VER@-startcenter.desktop /usr/share/application-registry/openoffice.applications /usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop /usr/share/mime-info/openoffice.keys"
 DIVERSIONS="$DIVERSIONS /@OOBRANDDIR@/program/intro.bmp /@OOBRANDDIR@/program/about.bmp"
 
 LANGPACKISOS="@LANGPACKISOS@"

=== modified file 'changelog'
--- a/changelog	2008-12-15 10:31:55 +0000
+++ b/changelog	2008-12-18 00:04:32 +0000
@@ -3,14 +3,20 @@
   * new upstream snapshot (OOO300_m13)
     - fixes usage of flash v9 plugin (closes: #434510)
   * ooo-build
-    - switch to ooo-build-3-0-1 branch (r14842)
+    - switch to ooo-build-3-0-1 branch (r14887)
   * debian/source.lintian-overrides: override bogus
     missing-build-dependency-for-dh_-command
   * debian/rules:
     - update .so -> -dev merging to the fact that 3.0s SDK does not have
       the .so symlinks for libuno_* anymore but only for the internal xmlsec.
+    - install vnd.openofficeorg.extension.desktop and /openoffice.applications
+      directly from sysui and make install-*/broffice use the directories
+      for the respective flavour directly
+    - also install /usr/share/mime-info/openoffice.keys for broffice.org
+  * debian/README, debian/rules: remove obsolete targets, explain
+    make patch.apply
 
- -- Rene Engelhard <rene@debian.org>  Fri, 12 Dec 2008 22:35:36 +0100
+ -- Rene Engelhard <rene@debian.org>  Wed, 17 Dec 2008 19:11:08 +0100
 
 openoffice.org (1:3.0.0-6) experimental; urgency=low
 

=== modified file 'rules'
--- a/rules	2008-12-17 21:22:41 +0000
+++ b/rules	2008-12-18 00:04:32 +0000
@@ -1,40 +1,30 @@
 #!/usr/bin/make -f
-###################################################################################
+################################################################################
 # OpenOffice.org source package rules file
 #
 # Please see debian/README for detailed documentation about the build system, and
 # how to build OpenOffice.org.
-###################################################################################
+################################################################################
 # Authors:
 # Chris Halls <halls@debian.org>
 # Rene Engelhard <rene@debian.org>
-# Copyright 2002-2006 Software in the Public Interest, Inc.
+# Copyright 2002-2008 Software in the Public Interest, Inc.
 # Licensed under the GNU General Public License, version 2.  See the file
 # /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
-###################################################################################
-
-#VER:=3
-OOVER:=3.0
-SHELL:=/bin/bash
-PKGDIR:=debian/openoffice.org$(VER)
-OODIRNAME=openoffice$(VER)
-OOBRANDDIR:=usr/lib/$(OODIRNAME)
-OOBASISDIR:=$(OOBRANDDIR)/basis$(OOVER)
-OOSDKDIR:=$(OOBRANDDIR)/sdk
-OOUREDIR:=usr/lib/ure
-# compatability
-OODIR:=$(OOBASISDIR)
+################################################################################
 
 PKGSOURCE := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2;exit 0}')
 SOURCE_VERSION:=$(shell head -1 debian/changelog | cut -d\( -f2 | cut -d\) -f1)
 UPSTREAM_VERSION:=$(shell echo "$(SOURCE_VERSION)"| cut -d: -f2 | cut -d- -f1)
 BASE_VERSION:=$(shell echo $(SOURCE_VERSION) | cut -d: -f1):$(UPSTREAM_VERSION)
-#HELP_L10N_VIRTUAL_VERSION:=$(shell echo $(UPSTREAM_VERSION) | cut -d: -f2 | tr [~] [\\-])
-HELP_L10N_VIRTUAL_VERSION:=3.0
-
 BINARY_VERSION=$(SOURCE_VERSION)
 #BINARY_VERSION=1:2.4.0-$(shell dpkg-parsechangelog  | grep urgency \
 	| awk '{print $$2}' | sed -e s/"("// -e s/")"// | cut -d"-" -f2)
+#HELP_L10N_VIRTUAL_VERSION:=$(shell echo $(UPSTREAM_VERSION) | cut -d: -f2 | tr [~] [\\-])
+HELP_L10N_VIRTUAL_VERSION:=3.0
+#VER:=3
+OOVER:=3.0
+
 PACKAGES := $(shell dh_listpackages)
 ARCH_INDEP_PACKAGES := $(shell dh_listpackages -i)
 ARCH_DEP_PACKAGES := $(shell dh_listpackages -s)
@@ -47,6 +37,16 @@
 DISTREL := sid
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+SHELL:=/bin/bash
+
+PKGDIR:=debian/openoffice.org$(VER)
+OODIRNAME=openoffice$(VER)
+OOBRANDDIR:=usr/lib/$(OODIRNAME)
+OOBASISDIR:=$(OOBRANDDIR)/basis$(OOVER)
+OOSDKDIR:=$(OOBRANDDIR)/sdk
+OOUREDIR:=usr/lib/ure
+# compatability
+OODIR:=$(OOBASISDIR)
 
 # Figure out who's building this package.
 OOO_VENDOR:=Debian
@@ -192,6 +192,7 @@
 ENABLE_PDFIMPORT=y
 BUILD_GTK=y
 ENABLE_EVO2=y
+# broken!
 ENABLE_GIO=n
 ENABLE_RANDR=y
 ifeq "$(BUILD_GTK)" "y"
@@ -425,10 +426,16 @@
 	BUILD_DEPS += , libdb$(DBVER)-dev
 
 ifneq "$(BUILD_DBG_PACKAGE)" "y"
+	# build with small symbols anyway
 	SMALL_SYMBOLS = y
 else
-	# -g gives a far too big deb (>400M, ca. 1GB I-S)
+  # -g gives a far too big deb (>400M, ca. 1GB I-S)
+  ifeq (debug,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	# ooo-build defaults to --enable-symbols (without SMALL)
+	SMALL_SYMBOLS = n
+  else
 	SMALL_SYMBOLS = y
+  endif
 	DBG_DBG_SUGGESTS+= , libc6.1-dbg [alpha ia64], libc0.1-dbg [kfreebsd-i386 kfreebsd-amd64], libc0.3-dbg [hurd-i386], libc6-dbg [!ia64 !alpha !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], ure-dbg, libatk1.0-dbg, libglib2.0-0-dbg, libgnomevfs2-0-dbg, libstdc++6-$(shell g++ --version | head -n 1 | cut -d' ' -f3 | cut -d'.' -f1,2)-dbg, libx11-6-dbg, libxext6-dbg, libxaw7-dbg, libxml2-dbg, libgtk2.0-0-dbg, libxau6-dbg, libice6-dbg, libsm6-dbg, libxinerama1-dbg, libfontconfig1-dbg
   ifeq "$(USE_LIBCURL4)" "y"
 	DBG_DBG_SUGGESTS+= , libcurl3-dbg
@@ -436,6 +443,10 @@
 	DBG_DBG_SUGGESTS+= , libcurl4-dbg
   endif
 endif
+# Small symbols?
+ifeq "$(SMALL_SYMBOLS)" "y"
+	CONFIGURE_FLAGS += --enable-symbols=SMALL
+endif
 
 ifeq "$(BUILD_PYUNO)" "y"
   ifeq "$(USE_PYCENTRAL)" "y"
@@ -925,16 +936,6 @@
 	CONFIGURE_FLAGS += --with-gcc-speedup=ccache
 endif
 
-# Small symbols?
-ifeq "$(SMALL_SYMBOLS)" "y"
-	CONFIGURE_FLAGS += --enable-symbols=SMALL
-endif
-
-# Restart build from a particular project?
-# DEB_BUILD_OPTIONS=from=<projectname>
-BUILD_FROM=$(shell echo "$(DEB_BUILD_OPTIONS)," | sed -n 's/^\(.*,\)\?from=\([a-zA-Z0-9]\+\).*$$/\2/p')
-export BUILD_FROM
-
 # Build n projects in parallel?
 # DEB_BUILD_OPTIONS=parallel=<n>
 NUM_CPUS=$(shell echo "$(DEB_BUILD_OPTIONS)," | sed -n 's/^\(.*,\)\?parallel=\([0-9]\+\).*$$/\2/p')
@@ -2568,20 +2569,28 @@
 			> debian/broffice.org$(VER)/$(OOBRANDDIR)/program/resource/ooo$$iso.res; \
 		fi; \
 	done
-	for i in writer calc draw impress math base; do \
+	for i in writer calc draw impress math base startcenter; do \
 		cat $(PKGDIR)-$$i/usr/share/applications/ooo-$$i.desktop \
 			| sed -e "s/ooff/broff/" | sed -e "s/OpenO/BrO/" \
 			> debian/broffice.org$(VER)/usr/share/applications/ooo-$$i.desktop; \
 	done
-	cat $(PKGDIR)-common//usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop \
-		| sed -e "s/ooff/broff/" | sed -e "s/OpenO/BrO/" \
-		> debian/broffice.org//usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop
-	cat $(PKGDIR)-common/usr/share/applications/ooo-startcenter.desktop \
-		| sed -e "s/ooff/broff/" | sed -e "s/OpenO/BrO/" \
-		 > debian/broffice.org$(VER)/usr/share/applications/ooo-startcenter.desktop
-	cat $(PKGDIR)-common/usr/share/application-registry/openoffice.applications \
-		| sed -e "s/ooff/broff/" | sed -e "s/OpenO/BrO/" \
-		 > debian/broffice.org$(VER)/usr/share/application-registry/openoffice.applications
+	dirname="`cd $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/broffice.org >/dev/null; pwd`" ;\
+	mkdir -p -m755 debian/broffice.org/usr/share/mimelnk/application ;\
+	sed -e 's,Comment=Extension,Comment=BrOffice.org $(VER) Extension,' \
+	    -e 's,Icon=brofficeorg[0123456789]-extension,Icon=application-vnd.openofficeorg.extension.png,' \
+	    -e 's/  / /' \
+	    < $$dirname/extension.desktop \
+	    > debian/broffice.org/usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop || exit 1
+	mkdir -p debian/broffice.org/usr/share/application-registry && \
+	cat $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/broffice.org/openoffice.applications \
+		| sed -e s/OFFICENAME/broffice/g \
+		| sed -e s/\%PRODUCTNAME/BrOffice.org/g \
+		> debian/broffice.org/usr/share/application-registry/openoffice.applications
+	rm -f debian/broffice.org/usr/share/mime-info/openoffice.keys; \
+	mkdir -p debian/broffice.org/usr/share/mime-info/
+	for i in $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/broffice.org/*.keys; do \
+		cat $$i >> debian/broffice.org/usr/share/mime-info/openoffice.keys; \
+	done
 	if dpkg-parsechangelog | grep urgency | grep -q "\~.*m[0123456789]\+"; then \
 		 debian/scripts/fix_image_rgb \
 			 $(SOURCE_TREE)/ooo_custom_images/dev_nologo_broffice/introabout/intro.bmp \
@@ -2595,6 +2604,11 @@
 		debian/broffice.org$(VER)/$(OOBRANDDIR)/program/about.bmp
 	cd debian/broffice.org$(VER)/usr/bin && ln -s ooffice broffice
 
+	# this is referenced in .keys/.applications
+	for i in `find $(PKGDIR)-common/usr/share/icons -name "openofficeorg*png"`; do
+		ln -s `basename $$i` `echo $$i | sed -e s,openoffice.org-common,broffice.org,`; \
+	done
+ 
 	touch $@
 
 # Install files generated by setup into arch-independent package directories
@@ -2641,7 +2655,7 @@
 	# install .applications, .keys, .mime and openoffice.org.xml for
 	# shared-mime-info
 	mkdir -p $(PKGDIR)-common/usr/share/application-registry && \
-	cat $(SOURCE_TREE)/sysui/desktop/mimetypes/openoffice.applications \
+	cat $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/openoffice.org/openoffice.applications \
 		| sed -e s/OFFICENAME/ooffice/g \
 		| sed -e s/\%PRODUCTNAME/OpenOffice.org/g \
 		> $(PKGDIR)-common/usr/share/application-registry/openoffice.applications
@@ -2796,7 +2810,7 @@
 	rm -rf $(PKGDIR)-common/$(OOBRANDDIR)/readmes
 	rm -f $(PKGDIR)-common/$(OOBRANDDIR)/share/readme/README*
 
-	# install Ximian desktop icons
+	# install ooo-build desktop icons
 	for r in 16x16 22x22 24x24 32x32 48x48; do \
 		mkdir -p $(PKGDIR)-common/usr/share/icons/hicolor/$$r/apps; \
 		cp ooo-build/desktop/$$r/*.png \
@@ -2993,14 +3007,15 @@
 	dirname="`cd $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/openoffice.org >/dev/null; pwd`" ;\
 	mkdir -p -m755 $(PKGDIR)-common/usr/share/mimelnk/application ;\
 	sed -e 's,Comment=Extension,Comment=OpenOffice.org $(VER) Extension,' \
+	    -e 's,Icon=openofficeorg[0123456789]-extension,Icon=application-vnd.openofficeorg.extension.png,' \
 	    -e 's/  / /' \
 	    < $$dirname/extension.desktop \
 	    > $(PKGDIR)-common/usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop || exit 1
+	# install ooo-build mimetype icon
 	for i in 16x16 22x22 24x24 32x32 48x48; do \
 		install -D -m644 $(CURDIR)/ooo-build/desktop/mimetypes/$$i/application-vnd.openofficeorg.extension.png \
 			$(PKGDIR)-common/usr/share/icons/hicolor/$$i/mimetypes/application-vnd.openofficeorg.extension.png; \
 	done
-	perl -pi -e "s/Icon=openofficeorg.*-extension/Icon=application-vnd.openofficeorg.extension.png/" $(PKGDIR)-common/usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop
 endif
 
 	# fix permission


Reply to: