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

[SCM] LibreOffice packaging repository branch, debian-experimental-4.0, updated. libreoffice_3.6.4-1-206-g83ba61b



The following commit has been merged in the debian-experimental-4.0 branch:
commit 2d1f37acbd4c390e40a98e52a679ecd43a4f527d
Author: Rene Engelhard <rene@debian.org>
Date:   Fri Jan 4 16:14:13 2013 +0100

    fix gdb helper installation; use upstreams install-gdb-printers

diff --git a/changelog b/changelog
index f8334f7..c8afb75 100644
--- a/changelog
+++ b/changelog
@@ -23,6 +23,7 @@ libreoffice (1:4.0.0~rc1~git20121224-1) UNRELEASED; urgency=low
       and build python2 in a extra step)
     - add option to build with --enable-mergelibs, not yet enabled.
     - remove stlport hacks for i386 - not used/needed anymore upstream
+    - fix gdb helper installation; use upstreams install-gdb-printers
   * debian/uno-libs3.symbols: update
   * debian/control*.in, debian/rules, debian/scripts/gid2pkgdirs.sh: binfilter
     is gone. yay.
diff --git a/rules b/rules
index 4b2d167..7be9791 100755
--- a/rules
+++ b/rules
@@ -1706,6 +1706,9 @@ $(STAMP_DIR)/install-common:
 	export OOINSTBASE=$(OODIR); \
 	export OOO_LANGS_LIST="$(ISOS)"; \
 	$(CURDIR)/debian/scripts/gid2pkgdirs.sh
+ifeq "$(BUILD_DBG_PACKAGE)" "y"
+	make cmd cmd="export DESTDIR=$(CURDIR)/debian/tmp; install-gdb-printers -a /usr/share/gdb/auto-load/$(OODIR) -c -i /$(OODIR) -p /usr/share/libreoffice/gdb"
+endif
 
 	# FIXME
 	if echo $(DEB_HOST_ARCH) | grep -q kfreebsd; then \
@@ -2838,13 +2841,26 @@ ifeq "$(BUILD_DBG_PACKAGE)" "y"
 	# dh_strip --dbg-package= is not idempotent, force copying of the binaries
 	# again...
 	rm -f $(STAMP_DIR)/install-arch
-	# install .gdb-py
-	for i in `find $(SOURCE_TREE)/solver/ -name "*-gdb.py"`; do \
-		if echo $$i | grep -q uno_; then pkg=uno-libs3; path=usr/lib/ure/lib; \
-		else pkg=libreoffice; path=usr/lib/libreoffice/program; fi; \
-		mkdir -p debian/$$pkg-dbg/usr/lib/debug/$$path && \
-		install -m644 $$i debian/$$pkg-dbg/usr/lib/debug/$$path/`basename $$i`; \
-	done
+ifeq "$(BUILD_DBG_PACKAGE)" "y"
+	mkdir -p $(PKGDIR)-dbg/usr/share/gdb/auto-load/$(OODIR)
+	mv $(CURDIR)/debian/tmp/usr/share/gdb/auto-load/$(OODIR)/program \
+		$(PKGDIR)-dbg/usr/share/gdb/auto-load/$(OODIR)
+	# I think a -dbg-common is overkill. Although this means that this all only
+	# will work if libreoffice-dbg is installed..
+	mkdir -p $(PKGDIR)-dbg/usr/share/libreoffice/gdb
+	mv $(CURDIR)/debian/tmp/usr/share/libreoffice/gdb/libreoffice \
+		$(PKGDIR)-dbg/usr/share/libreoffice/gdb
+	# FIXME: or better ure-dbg (ure/lib?). Then again ure-link is a link which is in -common
+	# anyways...
+	mkdir -p debian/uno-libs3-dbg/usr/share/gdb/auto-load/$(OODIR)/ure-link/
+	mv $(CURDIR)/debian/tmp//usr/share/gdb/auto-load/$(OODIR)/ure-link/lib \
+		debian/uno-libs3-dbg/usr/share/gdb/auto-load/$(OODIR)/ure-link
+	mkdir -p debian/uno-libs3-dbg/usr/share/libreoffice/gdb/libreoffice
+	mv $(PKGDIR)-dbg/usr/share/libreoffice/gdb/libreoffice/cppu.py \
+		debian/uno-libs3-dbg/usr/share/libreoffice/gdb/libreoffice
+	mv $(PKGDIR)-dbg/usr/share/libreoffice/gdb/libreoffice/sal.py \
+		debian/uno-libs3-dbg/usr/share/libreoffice/gdb/libreoffice
+endif
 else
 	dh_strip -s
 endif

-- 
LibreOffice packaging repository


Reply to: