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

[SCM] LibreOffice packaging repository branch, debian-experimental-4.0, updated. libreoffice_4.0.1_rc1-2-11-g169dafb



The following commit has been merged in the debian-experimental-4.0 branch:
commit 169dafb74e4219fc35e09578d70ebb0a78e327a3
Merge: 724dbe2b6131a174056a0da51863a535efb9322f 1f7fab31a85582aa7c325d644afd14ed4e1c87eb
Author: Rene Engelhard <rene@debian.org>
Date:   Wed Mar 6 09:39:12 2013 +0100

    Merge remote-tracking branch 'origin/debian-experimental-3.6' into debian-experimental-4.0
    
    Conflicts:
    	control
    	control.in
    	rules

diff --combined rules
index d1656a6,2e52bbe..e320f41
--- a/rules
+++ b/rules
@@@ -21,9 -21,9 +21,9 @@@ CURDIR ?= $(realpath $(dir $(firstword 
  BASE_VERSION:=$(shell echo $(DEB_VERSION) | cut -d: -f1):$(DEB_VERSION_UPSTREAM)
  BINARY_VERSION=$(DEB_VERSION)
  #HELP_L10N_VIRTUAL_VERSION:=$(shell echo $(DEB_VERSION_UPSTREAM) | cut -d: -f2 | tr [~] [\\-])
 -HELP_L10N_VIRTUAL_VERSION:=3.6
 -#VER:=3
 -OOVER:=3.6
 +HELP_L10N_VIRTUAL_VERSION:=4.0
 +#VER:=4
 +OOVER:=4.0
  NEXT_OOVER:=$(shell echo "$(OOVER) + 0.1" | bc)
  
  ARCH_INDEP_PACKAGES := $(shell dh_listpackages -i)
@@@ -33,7 -33,6 +33,7 @@@ PACKAGES := $(ARCH_INDEP_PACKAGES) $(AR
  include /usr/share/dpkg/architecture.mk
  include /usr/share/dpkg/vendor.mk
  SHELL:=/bin/bash
 +export gb_SHELL:=$(SHELL)
  
  SYSTEM_GCC_VERSION = $(shell gcc --version | sed -n '/^gcc/s/.*\(.\..\)\..$$/\1/p')
  
@@@ -69,11 -68,11 +69,11 @@@ USE_SOURCE_TARBALLS=
  USE_GIT_TARBALLS=n
  ifeq "$(USE_GIT_TARBALLS)" "y"
  GIT_BASEURL:=git://anongit.freedesktop.org/libreoffice
 -lo_sources_ver=3.6.5.2
 +lo_sources_ver=4.0.1.2
  # NOT in proper libreoffice-3-6 branch
 -# use ./g checkout -b tag-libreoffice-3.6.5.2 libreoffice-3.6.5.2
 -GIT_TAG=libreoffice-$(lo_sources_ver)
 -GIT_BRANCH=libreoffice-3-6-5
 +# use ./g checkout -b tag-libreoffice-3.6.2.1 libreoffice-3.6.2.1
 +GIT_TAG=libreoffice-$(lo_sources_ver)-hotfixes1
 +GIT_BRANCH=libreoffice-4-0-1
  endif
  ifeq "$(USE_SOURCE_TARBALLS)" "y"
  lo_sources_ver=$(shell cat $(CURDIR)/sources.ver | cut -d= -f2)
@@@ -82,7 -81,7 +82,7 @@@ endi
  #########
  # Default package configuration
  #
 -OOO_ARCHS = amd64 armel armhf hppa i386 ia64 mips mipsel powerpc powerpcspe ppc64 s390 s390x sparc kfreebsd-amd64 kfreebsd-i386
 +OOO_ARCHS = amd64 armel armhf hppa i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc powerpcspe ppc64 s390 s390x sparc
  PATCHSET=$(DEB_VENDOR)
  BUILD_DEPS=
  
@@@ -90,11 -89,10 +90,11 @@@
  # distribution. See configure --help for valid values (--with-system-<value>).
  SYSTEM_STUFF = dicts
  
 -BUILD_PYUNO=y
 -ENABLE_PYTHON3=y
 -ifeq "$(BUILD_PYUNO)" "y"
 +ENABLE_PYTHON=y
 +ENABLE_PYTHON2=y
 +ifeq "$(ENABLE_PYTHON)" "y"
    ENABLE_SCRIPT_PROVIDER_PYTHON=y
 +  PACKAGE_LIBRELOGO=y
  endif
  # THIS IS ONLY FOR TESTING. When building against a specified pythonX.Y
  # this will work inside OOo but *not* from outside OOo unless the user
@@@ -103,22 -101,24 +103,22 @@@
  # note we are NOT working with python < 2.6 anymore!
  PYTHON_VERSION=current
  ifeq "$(PYTHON_VERSION)" "current"
 -  PYTHON=python (>= 2.6)
 -export PYTHON=python
 +  PYTHON=python3
 +export PYTHON=python3
  else
    PYTHON=python$(PYTHON_VERSION)
  export PYTHON=python$(PYTHON_VERSION)
  endif
 -ifeq "$(ENABLE_PYTHON3)" "y"
 -	PYTHON3_VERSION=current
 -  ifeq "$(PYTHON3_VERSION)" "current"
 -	PYTHON3=python3
 +ifeq "$(ENABLE_PYTHON2)" "y"
 +	PYTHON2_VERSION=current
 +  ifeq "$(PYTHON2_VERSION)" "current"
 +	PYTHON2=python
    else
 -	PYTHON3=python$(PYTHON3_VERSION)
 +	PYTHON2=python$(PYTHON2_VERSION)
    endif
  endif
  PACKAGE_TTF_OPENSYMBOL=y
 -BUILD_BINFILTERS=y
  BUILD_ONLY_EN_US=n
 -ENABLE_HELP=y
  ENABLE_JAVA=y
  ifeq "$(ENABLE_JAVA)" "y"
    JDK=default
@@@ -148,11 -148,10 +148,11 @@@ USE_EXTERNAL_CXXLIBS=
  #SYSTEM_STUFF += sablot
  SYSTEM_STUFF += mythes
  SYSTEM_STUFF += icu
 -ICU_MINVER= (>= 4.0)
 +ICU_MINVER= (>= 4.6)
  SYSTEM_STUFF += libwpd libwpg libwps
  SYSTEM_STUFF += libvisio
  SYSTEM_STUFF += libcdr
 +SYSTEM_STUFF += libmspub
  #SYSTEM_STUFF += xmlsec
  BUILD_CAIROCANVAS=y
  SYSTEM_STUFF += cairo
@@@ -180,25 -179,17 +180,25 @@@ ifeq "$(ENABLE_JAVA)" "y
    SYSTEM_STUFF += hsqldb
    HSQLDB_MINVER= (>> 1.8.0.10)
    HSQLDB_TOONEWVER=1.8.1
 -  # disabled because system-saxon breaks all kinds exports using XSLT transforms
 -  # (e.g. M$ Word/Excel 2003 XML, Mediawiki, XHTML, UOF, ...)
 -  # It does *NOT* fail with _plain_ saxon 9.0.0.8 built with OOos build.xml
 -  # for UOF, but still for e.g. M$.
 -  #SYSTEM_STUFF += saxon
  endif
  SYSTEM_STUFF += lpsolve
  USE_SHARED_LPSOLVE=y
  LPSOLVE_MIN_VERSION= (>= 5.5.0.13-5+b1)
  USE_DBUS=y
 +ifeq "$(USE_DBUS)" "y"
 +  ifneq (,$(findstring kfreebsd,$(DEB_HOST_ARCH)))
 +    ENABLE_BLUETOOTH=n
 +  else
 +    ENABLE_BLUETOOTH=y
 +    SYSTEM_STUFF += bluez
 +  endif
 +endif
  USE_GSTREAMER=y
 +ifneq "$(WHEEZY_BACKPORT)" "y"
 +  GSTREAMER_VERSION=1.0
 +else
 + GSTREAMER_VERSION=0.10
 +endif
  SYSTEM_STUFF += neon
  NEON_SECTYPE=gnutls
  NEONSONR=27
@@@ -253,6 -244,8 +253,6 @@@ els
  endif
  ENABLE_SDBC_POSTGRESQL=y
  ENABLE_MINIMIZER=y
 -ENABLE_PRESENTER_CONSOLE=y
 -ENABLE_PDFIMPORT=y
  BUILD_GTK=y
  #ifeq "$(DEB_DISTRIBUTION)" "experimental"
  BUILD_GTK3=y
@@@ -265,7 -258,7 +265,7 @@@ ENABLE_RANDR=
  ifeq "$(BUILD_GTK)" "y"
    PACKAGE_NSPLUGIN=y
    ifeq "$(PACKAGE_NSPLUGIN)" "y"
 -	SYSTEM_STUFF += mozilla-headers
 +	SYSTEM_STUFF += npapi-headers
    endif
  endif
  PACKAGE_BASE=y
@@@ -279,6 -272,7 +279,6 @@@ SYSTEM_LIBRSVG=
  # when we have a package we want to have to be installed on older things with some older
  # C++ ABI (like it was the case with libreoffice2), we need to set this. Don't touch
  # otherwise
 -SYSTEM_STUFF += stdlibs
  DEFAULT_IMAGE=galaxy
  IMAGES:=$(DEFAULT_IMAGE) crystal hicontrast tango oxygen
  ENABLE_MYSQLNATIVE=y
@@@ -298,41 -292,22 +298,41 @@@ SYSTEM_STUFF += cur
  SYSTEM_STUFF += sane
  SYSTEM_STUFF += xextensions-headers
  SYSTEM_STUFF += mesa-headers
 -SYSTEM_STUFF += db
  SYSTEM_STUFF += poppler
  SYSTEM_STUFF += libpng
  SYSTEM_STUFF += nss
  SYSTEM_STUFF += clucene
 +ifneq (,$(filter clucene, $(SYSTEM_STUFF)))
 +  ENABLE_HELP=y
 +else
 +  ifeq (,$(filter armel armhf,$(DEB_HOST_ARCH)))
 +    ENABLE_HELP=n
 +  else
 +    ENABLE_HELP=y
 +  endif
 +endif
  SYSTEM_STUFF += lcms2
 +SYSTEM_STUFF += openldap
  PACKAGE_UNOWINREG_DLL=y
  ifeq "$(DEB_VENDOR)" "Debian"
  BUILD_UNOWINREG_DLL=y
  endif
  FAKEROOT_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/libfakeroot
 +# upstream says: "it's 'highly experimental'", I wouldn't enable it for
 +# distros"
 +ENABLE_TELEPATHY=n
 +ENABLE_LIBLANGTAG=y
 +SYSTEM_STUFF += liblangtag
 +SYSTEM_STUFF += orcus
 +USE_UCPP=n
 +ifeq "$(USE_UCPP)" "y"
 +  SYSTEM_STUFF += ucpp
 +endif
 +ENABLE_MERGELIBS=n
  
  # Default flags to pass to configure
  CONFIGURE_FLAGS= \
  		--with-vendor='$(OOO_VENDOR)' \
 -                --with-install-dirname=$(OODIRNAME) \
                  --prefix=/usr --mandir=/usr/share/man \
                  --docdir=/usr/share/doc/libreoffice \
                  --enable-lockdown \
@@@ -340,14 -315,9 +340,14 @@@
  		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
  		--disable-online-update \
  		--disable-fetch-external \
 -		--enable-release-build \
  		--without-fonts \
 -		--without-myspell-dicts
 +		--without-myspell-dicts \
 +		--disable-dependency-tracking \
 +		--enable-hardlink-deliver
 +
 +ifeq "$(shell echo $(DEB_VERSION_UPSTREAM) | grep -E '(alpha|beta)'; echo $$?)" "1"
 +CONFIGURE_FLAGS += --enable-release-build
 +endif
  
  ifneq ($(ON_BUILDD),y)
  CONFIGURE_FLAGS += --enable-verbose
@@@ -367,6 -337,13 +367,6 @@@ ende
  
  PLATFORMID := $(shell grep PLATFORMID debian/vars.$(DEB_HOST_ARCH) | cut -d"=" -f2)
  
 -# ./configure defaults to STLport on i386 and we should keep it for
 -# ABI-compatability
 -OOO_STLPORT_ARCHS= i386
 -ifeq "$(DEB_HOST_ARCH)" "i386"
 -	LINK_TO_STLPORT=y
 -endif
 -
  ifeq "$(ENABLE_OPENGL)" "y"
    # doesn't make that much sense on armel and mips(el), does it? :)
    OOO_OGLTRANS_ARCHS = $(filter-out armel mips%, $(OOO_ARCHS))
@@@ -376,6 -353,12 +376,6 @@@
    $(eval $(call gen_no_archs,OOO_OGLTRANS_ARCHS))
  endif
  
 -ifneq (,$(findstring arm,$(DEB_HOST_ARCH)))
 -  ifneq (stdlibs,$(findstring stdlibs,$(SYSTEM_STUFF)))
 -  $(error sal does not build on arm with internal stdlibs!)
 -  endif
 -endif
 -
  OOO_64BIT_ARCHS = $(filter amd64 ia64 kfreebsd-amd64 ppc64 s390x, $(OOO_ARCHS))
  
  # Java...
@@@ -394,11 -377,7 +394,11 @@@ ifneq ($(DEB_HOST_ARCH),$(findstring $(
  	PACKAGE_UNOWINREG_DLL=n
  endif
  
 -OOO_ARCH_DEP_EXTENSIONS_ARCHS := $(OOO_ARCHS)
 +ifeq (,$(filter clucene, $(SYSTEM_STUFF)))
 +  OOO_ARCH_DEP_EXTENSIONS_ARCHS := $(filter-out armel armhf,$(OOO_ARCHS))
 +else
 +  OOO_ARCH_DEP_EXTENSIONS_ARCHS := $(OOO_ARCHS)
 +endif
  OOO_EXTENSIONS_ARCHS := $(OOO_ARCH_DEP_EXTENSIONS_ARCHS)
  
  OOO_BASE_ARCHS := $(OOO_JAVA_ARCHS)
@@@ -424,10 -403,13 +424,10 @@@ endi
  
  ifeq (,$(findstring $(DEB_HOST_ARCH),$(OOO_ARCH_DEP_EXTENSIONS_ARCHS)))
  	ENABLE_MINIMIZER=n
  	ENABLE_MYSQLNATIVE=n
  	DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-mysql-connector
  	DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-report-builder-bin -Nlibreoffice$(VER)-report-builder
 -	DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-pdfimport -Nlibreoffice$(VER)-presentation-minimizer
 -	DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-presenter-console
 +	DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-presentation-minimizer
  endif
  ifeq (,$(findstring $(DEB_HOST_ARCH),$(OOO_EXTENSIONS_ARCHS)))
  	ENABLE_MEDIAWIKI=n
@@@ -475,6 -457,12 +475,6 @@@ OOO_NSPLUGIN_ARCHS
  endif
  $(eval $(call gen_no_archs,OOO_NSPLUGIN_ARCHS))
  
 -# builds long and is for legacy filters. probably not needed on {arm,mips}{,el}
 -ifneq (,$(filter arm% mips% m68k, $(DEB_HOST_ARCH)))
 -	BUILD_BINFILTERS=n
 -endif
 -OOO_BINFILTER_ARCHS:=$(filter-out arm% mips% m68k, $(OOO_ARCHS))
 -
  #############
  # Distro-specific overrides
  
@@@ -486,11 -474,7 +486,11 @@@ endi
  # Debian WHeezy
  ifeq "$(shell dpkg-parsechangelog | grep Distribution | awk '{ print $$2 }')" "wheezy-backports"
    BUGS=mailto:debian-backports@lists.debian.org
 -  SYSTEM_STUFF := $(filter-out libcmis libcdr clucene, $(SYSTEM_STUFF))
 +  SYSTEM_STUFF := $(filter-out libcmis libcdr clucene libmspub mdds liblangtag orcus, $(SYSTEM_STUFF))
 +  WHEEZY_BACKPORT=y
 +endif
 +ifeq "$(shell dpkg-parsechangelog | grep Distribution | awk '{ print $$2 }')" "UNRELEASED"
 +  BUGS=mailto:debian-openoffice@lists.debian.org
  endif
  
  CONFIGURE_FLAGS += $(foreach i, $(SYSTEM_STUFF),--with-system-$(i))
@@@ -506,7 -490,7 +506,7 @@@ ifneq "$(GCC_VERSION)" "
    endif
  endif
  
 -	BUILDDEB_OPTIONS = -- -Zxz
 +BUILDDEB_OPTIONS ?= -- -Zxz
  
  ifneq "$(OOO_OGLTRANS_ARCHS)" ""
    ifneq (,$(findstring mesa-headers,$(SYSTEM_STUFF)))
@@@ -531,18 -515,19 +531,18 @@@ endi
  ifneq "$(ENABLE_MINIMIZER)" "y"
  	CONFIGURE_FLAGS += --disable-ext-presenter-minimizer
  endif
 -ifneq "$(ENABLE_PRESENTER_CONSOLE)" "y"
 -	CONFIGURE_FLAGS += --disable-ext-presenter-console
 -endif
 -ifeq "$(ENABLE_PDFIMPORT)" "y"
  	BUILD_DEPS += , libpoppler-dev (>= 0.8.0), libpoppler-private-dev, libpoppler-cpp-dev
 -else
 -	CONFIGURE_FLAGS += --disable-ext-pdfimport
 -endif
  
  # fails their tests
  ifeq "$(DEB_HOST_ARCH)" "armel"
  ENABLE_GRAPHITE=n
  SYSTEM_STUFF := $(filter-out graphite, $(SYSTEM_STUFF))
 +ENABLE_LIBLANGTAG=n
 +SYSTEM_STUFF := $(filter-out liblangtag, $(SYSTEM_STUFF))
 +endif
 +ifeq "$(DEB_HOST_ARCH)" "armhf"
 +ENABLE_LIBLANGTAG=n
 +SYSTEM_STUFF := $(filter-out liblangtag, $(SYSTEM_STUFF))
  endif
  ifeq "$(DEB_HOST_ARCH)" "sparc"
  ENABLE_GRAPHITE=n
@@@ -596,6 -581,22 +596,6 @@@ ifneq (,$(filter openssl, $(SYSTEM_STUF
  	DBG_DBG_SUGGESTS += , libssl$(shell readlink /usr/lib/$(DEB_HOST_MULTIARCH)/libssl.so | cut -d"." -f3,4,5)-dbg
  endif
  
 -ifneq "$(ENABLE_RSVG)" "y"
 -  ifeq "$(SYSTEM_LIBRSVG)" "y"
 -	BUILD_DEPS += , librsvg2-dev
 -	CONFIGURE_FLAGS += --enable-librsvg=auto
 -  else
 -	CONFIGURE_FLAGS += --enable-librsvg=internal
 -  endif
 -else
 -	CONFIGURE_FLAGS += --enable-librsvg=no
 -endif
 -
 -ifneq (,$(findstring db,$(SYSTEM_STUFF)))
 -	BUILD_DEPS += , libdb-dev
 -	DBG_DBG_SUGGESTS += , $(shell dpkg -s libdb-dev | grep Depends | awk '{ print $$2 }' | sed -e s/dev/dbg/)
 -endif
 -
  ifeq "$(BUILD_DBG_PACKAGE)" "y"
    ifneq (,$(findstring i386,$(DEB_HOST_ARCH)))
  	SMALL_SYMBOLS = n
@@@ -606,9 -607,6 +606,9 @@@
    endif
  	DBG_DBG_SUGGESTS+= , libc6.1-dbg [ia64], libc0.1-dbg [kfreebsd-i386 kfreebsd-amd64], libc0.3-dbg [hurd-i386], libc6-dbg [!ia64 !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libatk1.0-dbg, libglib2.0-0-dbg, libgnomevfs2-0-dbg, libstdc++6-$(SYSTEM_GCC_VERSION)-dbg, libx11-6-dbg, libxext6-dbg, libxaw7-dbg, libxml2-dbg, libgtk2.0-0-dbg, libxau6-dbg, libice6-dbg, libsm6-dbg, libxinerama1-dbg, libfontconfig1-dbg, libhunspell-$(shell pkg-config --modversion hunspell | cut -d. -f1,2)-0-dbg, libcurl4-dbg
  endif
 +
 +export DPKG_EXPORT_BUILDFLAGS=y 
 +include /usr/share/dpkg/buildflags.mk
  ifeq "$(ENABLE_SYMBOLS)" "y"
    # Small symbols?
    ifeq "$(SMALL_SYMBOLS)" "y"
@@@ -625,40 -623,21 +625,40 @@@ ifeq (debug,$(findstring debug,$(DEB_BU
  endif
  
  
 -PYMAJOR:=$(shell $(PYTHON) -c "import sys; print sys.version_info[0]")
 -PYMINOR:=$(shell $(PYTHON) -c "import sys; print sys.version_info[1]")
 -PYMINORPLUS1:=$(shell $(PYTHON) -c "import sys; print sys.version_info[1]+1")
 -PYTHON_SITE:=debian/python-uno/$(shell $(PYTHON) -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
 -PY3MAJOR:=$(shell $(PYTHON3) -c "import sys; print (sys.version_info[0])")
 -PY3MINOR:=$(shell $(PYTHON3) -c "import sys; print (sys.version_info[1])")
 -PY3MINORPLUS1:=$(shell $(PYTHON3) -c "import sys; print (sys.version_info[1]+1)")
 -PYTHON3_SITE:=debian/python3-uno/$(shell $(PYTHON3) -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
 +ifneq "$(WHEEZY_BACKPORT)" "y"
 +PYMAJOR:=$(shell $(PYTHON) -c "import sys; print (sys.version_info[0])")
 +PYMINOR:=$(shell $(PYTHON) -c "import sys; print (sys.version_info[1])")
 +PYMINORPLUS1:=$(shell $(PYTHON) -c "import sys; print (sys.version_info[1]+1)")
 +PYTHON_SITE:=debian/python3-uno/$(shell $(PYTHON) -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
 +PY2MAJOR:=$(shell $(PYTHON2) -c "import sys; print sys.version_info[0]")
 +PY2MINOR:=$(shell $(PYTHON2) -c "import sys; print sys.version_info[1]")
 +PY2MINORPLUS1:=$(shell $(PYTHON2) -c "import sys; print sys.version_info[1]+1")
 +PYTHON2_SITE:=debian/python-uno/$(shell $(PYTHON2) -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
 +else
 +PYMAJOR:=$(shell $(PYTHON2) -c "import sys; print (sys.version_info[0])")
 +PYMINOR:=$(shell $(PYTHON2) -c "import sys; print (sys.version_info[1])")
 +PYMINORPLUS1:=$(shell $(PYTHON2) -c "import sys; print (sys.version_info[1]+1)")
 +# YES, really! python3-uno. see "OMG!" below :-)
 +PYTHON_SITE:=debian/python3-uno/$(shell $(PYTHON2) -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
 +PYTHON:=$(PYTHON2)
 +endif
  
 -ifeq "$(BUILD_PYUNO)" "y"
 +ifeq "$(PYTHON_VERSION)" "current"
 +	PYTHON_VERSION_CONTROL := $(PYMAJOR).$(PYMINOR)
 +else
 +	PYTHON_VERSION_CONTROL := $(PYTHON_VERSION)
 +endif
 +
 +ifeq "$(ENABLE_PYTHON)" "y"
  	BUILD_DEPS += , python (>= 2.6.6-3+squeeze4)
  	DBG_DBG_SUGGESTS+= , python-dbg
 -	BUILD_DEPS += , $(PYTHON)-dev (>= 2.6)
 -  ifeq "$(ENABLE_PYTHON3)" "y"
 -	BUILD_DEPS += , $(PYTHON3)-dev
 +  ifneq "$(WHEEZY_BACKPORT)" "y"
 +	BUILD_DEPS += , $(PYTHON)-dev (>= 3.3)
 +    ifeq "$(ENABLE_PYTHON2)" "y"
 +	BUILD_DEPS += , $(PYTHON2)-dev (>= 2.6)
 +    endif
 +  else
 +	BUILD_DEPS += , $(PYTHON2)-dev (>= 2.7)
    endif
  else
  	BUILD_DEPS += , python
@@@ -743,6 -722,7 +743,6 @@@ ifneq "$(BUILD_ONLY_EN_US)" "y
  endif
  
  ifeq "$(ENABLE_JAVA)" "y"
 -	CONFIGURE_FLAGS += --with-java-target-version=1.5
    ifeq "$(JDK)" "default"
  	JAVA_HOME=/usr/lib/jvm/default-java
  	BUILD_DEPS += , default-jdk$(filter-out !ia64,$(OOO_NO_JAVA_ARCHS))
@@@ -810,6 -790,10 +810,6 @@@ export JAVA_HOM
  	CONFIGURE_FLAGS += --with-jdk-home=$(JAVA_HOME)
  	JAVA_COMMON_DEPENDS= , libreoffice$(VER)-java-common
  	JAVA_COMMON_DEPENDS_VERSION:= (>= $(BASE_VERSION)~)
 -  ifneq (,$(filter saxon, $(SYSTEM_STUFF)))
 -	CONFIGURE_FLAGS += --with-system-saxon --with-saxon-jar=/usr/share/java/saxonb.jar
 -	BUILD_DEPS += , libsaxonb-java$(OOO_NO_JAVA_ARCHS)
 -  endif
    ifeq "$(PACKAGE_SDK)" "y"
      ifeq "$(PACKAGE_UNOWINREG_DLL)" "y"
        ifeq "$(BUILD_UNOWINREG_DLL)" "y"
@@@ -860,9 -844,10 +860,9 @@@ ifneq (,$(filter nss, $(SYSTEM_STUFF))
  	BUILD_DEPS+= , libnss3-dev (>= 3.12.3)
  	DBG_DBG_SUGGESTS+= , libnss3-1d-dbg
  endif
 -ifneq (,$(filter mozilla-headers, $(SYSTEM_STUFF)))
 +ifneq (,$(filter npapi-headers, $(SYSTEM_STUFF)))
  	BUILD_DEPS+= , xulrunner-dev$(OOO_NO_NSPLUGIN_ARCHS)
  endif
 -	CONFIGURE_FLAGS += --disable-build-mozilla --disable-mozilla
  ifeq (,$(findstring $(DEB_HOST_ARCH),$(OOO_NSPLUGIN_ARCHS)))
  	PACKAGE_NSPLUGIN=n
  	CONFIGURE_FLAGS += --disable-nsplugin
@@@ -871,19 -856,6 +871,19 @@@ endi
  ifeq "$(USE_SYSTEM_DMAKE)" "y"
  	BUILD_DEPS += , dmake (>= 1:4.11)
  endif
 +ifeq "$(USE_UCPP)" "y"
 +  ifneq (,$(filter ucpp, $(SYSTEM_STUFF)))
 +	IDLC_CPP_DEPENDS := ucpp
 +	BUILD_DEPS += , $(UCPP_DEPENDS)
 +  endif
 +else
 +# hardcode 4.7 as 4.8 fails:
 +# 14:17 <@caolan> ah, "build fails with cpp 4.8.0, this is fixable by passing 
 +#                -P, but then idlc produces empty urd files"
 +	IDLC_CPP_DEPENDS := cpp-4.7
 +	CONFIGURE_FLAGS += --with-idlc-cpp=cpp-4.7
 +	BUILD_DEPS += , cpp-4.7
 +endif
  
  ifneq (,$(filter hunspell, $(SYSTEM_STUFF)))
  	BUILD_DEPS += , libhunspell-dev $(HUNSPELL_MIN_VER)
@@@ -899,6 -871,12 +899,6 @@@ ifneq (,$(filter altlinuxhyph, $(SYSTEM
  endif
  	CONFIGURE_FLAGS += --with-external-hyph-dir=$(HYPH_DIR)
  
 -ifneq "$(OOO_STLPORT_ARCHS)" ""
 -	LIBSTLPORT_MINVER= (>= 4.6.2-3)
 -	BUILD_DEPS += , libstlport4.6-dev $(LIBSTLPORT_MINVER) [$(OOO_STLPORT_ARCHS)]
 -	CONFIGURE_FLAGS += --without-stlport
 -endif
 -
  ifneq (,$(filter boost, $(SYSTEM_STUFF)))
    ifeq "$(BOOST_VERSION)" "1.34"
      ifeq "$(SYSTEM_GCC_VERSION)" "4.4"
@@@ -911,7 -889,7 +911,7 @@@
      endif
    else
      ifneq "$(BOOST_VERSION)" "default"
- 	BUILD_DEPS += , libboost$(BOOST_VERSION)-dev $(BOOST_MINVER), libboost$(BOOST_VERSION)-date-time-dev $(BOOST_MINVER)
+ 	BUILD_DEPS += , libboost$(BOOST_VERSION)-dev $(BOOST_MINVER), libboost-date-time$(BOOST_VERSION)-dev $(BOOST_MINVER)
  	#BUILD_DEPS += , libboost-thread$(BOOST_VERSION)-dev, libboost-program-options$(BOOST_VERSION)-dev
      else
  	BUILD_DEPS += , libboost-dev $(BOOST_MINVER), libboost-date-time-dev $(BOOST_MINVER)
@@@ -921,11 -899,7 +921,11 @@@
  endif
  
  ifneq (,$(filter mdds, $(SYSTEM_STUFF)))
 -	BUILD_DEPS += , libmdds-dev (>= 0.5.0)
 +	BUILD_DEPS += , libmdds-dev (>= 0.6.0)
 +endif
 +
 +ifneq (,$(filter orcus, $(SYSTEM_STUFF)))
 +	BUILD_DEPS += , liborcus-dev
  endif
  
  ifneq (,$(filter vigra, $(SYSTEM_STUFF)))
@@@ -934,12 -908,6 +934,12 @@@ endi
  
  ifneq (,$(filter clucene, $(SYSTEM_STUFF)))
  	BUILD_DEPS += , libclucene-dev (>= 2.3.3.4-2)
 +else
 +  ifneq (,$(findstring arm,$(DEB_HOST_ARCH)))
 +	# FIXME. If you really want this, comment this out then help stuff will
 +	# be disabled on arm*
 +	$(error internal clucene makes HelpIndexer segfault on ARM!)
 +  endif
  endif
  
  ifeq "$(USE_EXTERNAL_CXXLIBS)" "y"
@@@ -964,11 -932,8 +964,11 @@@
    ifneq (,$(filter libcdr, $(SYSTEM_STUFF)))
  	BUILD_DEPS += , libcdr-dev
    endif
 +  ifneq (,$(filter libmspub, $(SYSTEM_STUFF)))
 +	BUILD_DEPS += , libmspub-dev
 +  endif
    ifneq (,$(filter libcmis, $(SYSTEM_STUFF)))
 -	BUILD_DEPS += , libcmis-dev (>= 0.2.1)
 +	BUILD_DEPS += , libcmis-dev (>= 0.3.1)
    endif
  endif
  	CONFIGURE_FLAGS += --with-external-thes-dir=$(THES_DIR)
@@@ -977,23 -942,6 +977,23 @@@ ifneq (,$(filter lcms2, $(SYSTEM_STUFF)
  	BUILD_DEPS += , liblcms2-dev
  endif
  
 +ifneq (,$(filter openldap, $(SYSTEM_STUFF)))
 +	BUILD_DEPS += , libldap2-dev
 +endif
 +
 +ifeq ($(ENABLE_TELEPATHY),y)
 +	BUILD_DEPS += , libtelepathy-glib-dev (>= 0.18)
 +	CONFIGURE_FLAGS += --enable-telepathy
 +endif
 +
 +ifeq ($(ENABLE_LIBLANGTAG),y)
 +  ifneq (,$(filter liblangtag, $(SYSTEM_STUFF)))
 +	BUILD_DEPS += , liblangtag-dev (>= 0.4) [!armel !armhf]
 +  endif
 +else
 +	CONFIGURE_FLAGS += --disable-liblangtag
 +endif
 +
  ifneq (,$(filter icu, $(SYSTEM_STUFF)))
  	BUILD_DEPS += , libicu-dev $(ICU_MINVER)
  endif
@@@ -1080,20 -1028,14 +1080,20 @@@ els
  	CONFIGURE_FLAGS += --disable-randr
  endif
  
 -ifeq "$(BUILD_BINFILTERS)" "y"
 -	CONFIGURE_FLAGS+= --enable-binfilter
 -	OOO_BINFILTER_DEP = libreoffice$(VER)-filter-binfilter
 -endif
 -
 -ifneq "$(BUILD_PYUNO)" "y"
 +ifneq "$(ENABLE_PYTHON)" "y"
  	DEBHELPER_OPTIONS+= -Npython-uno -Npython3-uno -Nlibreoffice-script-provider-python
 +  ifeq "$(BUILD_ISOS)" "en-US"
  	CONFIGURE_FLAGS += --disable-python
 +  else
 +	$(error you can not disable python when building with translations)
 +  endif
 +else
 +  ifeq "$(WHEEZY_BACKPORT)" "y"
 +	DEBHELPER_OPTIONS+= -Npython3-uno
 +	PYUNO_DEPENDS = python-uno
 +  else
 +	PYUNO_DEPENDS = python3-uno (>= 4.0~) | python-uno
 +  endif
  endif
  
  ifeq "$(ENABLE_JAVA)" "y"
@@@ -1113,12 -1055,12 +1113,12 @@@
  	BSH_DEPENDS = bsh (>= 2.0b4)
  	JAVA_GCJ_DEPENDS += , bsh-gcj [$(OOO_GCJ_ARCHS)]
      endif
 -	CONFIGURE_FLAGS += --enable-ext-scripting-beanshell
 +	CONFIGURE_FLAGS += --enable-scripting-beanshell
    else
   	DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-script-provider-bsh
    endif
    ifeq "$(ENABLE_SCRIPT_PROVIDER_JS)" "y"
 -	CONFIGURE_FLAGS += --enable-ext-scripting-javascript	
 +	CONFIGURE_FLAGS += --enable-scripting-javascript	
    else
  	DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-script-provider-js
    endif
@@@ -1143,25 -1085,14 +1143,25 @@@ endi
  ifeq "$(USE_DBUS)" "y"
  	BUILD_DEPS += , libdbus-glib-1-dev (>= 0.70)
  	CONFIGURE_FLAGS += --enable-dbus
 +  ifeq "$(ENABLE_BLUETOOTH)" "y"
 +    ifneq (,$(filter bluez, $(SYSTEM_STUFF)))
 +       BUILD_DEPS += , libbluetooth-dev [!kfreebsd-amd64 !kfreebsd-i386]
 +    endif
 +  else
 +	CONFIGURE_FLAGS += --disable-sdremote-bluetooth
 +  endif
  endif
  
  ifeq "$(USE_GSTREAMER)" "y"
 -	BUILD_DEPS += , libgstreamer-plugins-base0.10-dev
 -	GSTREAMER_PLUGINS_SUGGESTS += , gstreamer0.10-plugins-base, gstreamer0.10-plugins-good, gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-bad, gstreamer0.10-ffmpeg
 -	DBG_DBG_SUGGESTS+= , libgstreamer0.10-0-dbg
 +  ifeq "$(GSTREAMER_VERSION)" "1.0"
 +	BUILD_DEPS += , libgstreamer$(GSTREAMER_VERSION)-dev
 +	CONFIGURE_FLAGS += --enable-gstreamer --disable-gstreamer-0-10
 +  endif
 +	BUILD_DEPS += , libgstreamer-plugins-base$(GSTREAMER_VERSION)-dev
 +	GSTREAMER_PLUGINS_SUGGESTS += , gstreamer$(GSTREAMER_VERSION)-plugins-base, gstreamer$(GSTREAMER_VERSION)-plugins-good, gstreamer$(GSTREAMER_VERSION)-plugins-ugly, gstreamer$(GSTREAMER_VERSION)-plugins-bad, gstreamer$(GSTREAMER_VERSION)-ffmpeg
 +	DBG_DBG_SUGGESTS+= , libgstreamer$(GSTREAMER_VERSION)-0-dbg
  else
 -	CONFIGURE_FLAGS += --disable-gstreamer
 +	CONFIGURE_FLAGS += --disable-gstreamer-0-10
  endif
  
  ifneq (,$(filter neon, $(SYSTEM_STUFF)))
@@@ -1205,10 -1136,6 +1205,10 @@@ ifeq "$(PACKAGE_TTF_OPENSYMBOL)" "y
  	BUILD_DEPS_INDEP += , fontforge
  endif
  
 +ifeq ($(ENABLE_MERGELIBS),y)
 +	CONFIGURE_FLAGS += --enable-mergelibs
 +endif
 +
  # Use compiler cache?  Include ccache in DEB_BUILD_OPTIONS for much faster rebuild times
  # A complete build uses about 9G of compiler cache.
  ifneq (ccache,$(findstring ccache,$(DEB_BUILD_OPTIONS)))
@@@ -1223,13 -1150,11 +1223,13 @@@ AVAIL_CPUS := $(shell getconf _NPROCESS
  ifeq "$(PARALLEL_BUILD)" "y"
  	# http://bugs.debian.org/622644
  	BUILD_DEPS += , make (>= 3.81-8.2)
 +  # we need to specify it only if it differs, otherwise configure autodetects
 +  # it.
    ifneq "$(NUM_CPUS)" "$(AVAIL_CPUS)"
 -	CONFIGURE_FLAGS += --with-num-cpus=$(NUM_CPUS)
 +	CONFIGURE_FLAGS += --with-parallelism=$(NUM_CPUS)
    endif
  else
 -	CONFIGURE_FLAGS += --with-num-cpus=1
 +	CONFIGURE_FLAGS += --without-parallelism
  endif
  
  
@@@ -1247,6 -1172,16 +1247,6 @@@ endi
  BUILD_PATH := $(CURDIR)/debian/usr/bin:$(BUILD_PATH)
  BUILD_LD_LIBRARY_PATH := $(BUILD_LD_LIBRARY_PATH):$(GCJ_JAWT_DIR)
  
 -ifeq "$(ENABLE_LDAP)" "y"
 -  ifeq "$(USE_OPENLDAP)" "y"
 -    BUILD_DEPS += , libldap2-dev
 -    LDAP_LIB := $(shell echo libldap-`grep LDAP_VENDOR_VERSION_M /usr/include/ldap_features.h | cut -d: -f2 | awk '{ print $$3 }' | xargs | sed -e "s/ /\./"`-`grep LDAP_VENDOR_VERSION_MAJOR /usr/include/ldap_features.h | cut -d: -f2 | awk '{ print $$3 }'`)
 -    CONFIGURE_FLAGS += --with-openldap
 -   endif
 -else
 -  CONFIGURE_FLAGS += --disable-ldap
 -endif
 -
  # Because of the stampdir magic, when you actually want to run a rule
  # over, you would have to remove the stamp manually.  Now, just do
  # 'debian/rules <target> <target> ... FORCE=1', and the stamp files
@@@ -1274,6 -1209,7 +1274,6 @@@ clean-debdir
  
  	find debian -name "*.links" -exec rm {} \;
  	if [ -d "$(STAMP_DIR)" ]; then rm -rf "$(STAMP_DIR)"; fi
 -	rm -f debian/shlibs.override.stdlibs
  	rm -f debian/*.bug-script
  	rm -f debian/scripts/aotcompile.py*
  
@@@ -1303,12 -1239,12 +1303,12 @@@ clean
  	fi
  	find $(SOURCE_TREE)/solenv/gdb -name "*.pyc" -exec rm {} \;
  	rm -rf */*.pro.obsolete
 -	rm -f solenv/bin/concat-deps
  
  	rm -rf $(SOURCE_TREE)/file-lists
 -	rm -rf $(SOURCE_TREE)/pyuno-py3
 -	rm -f configure aclocal.m4 autogen.lastrun
 +	rm -rf $(SOURCE_TREE)/py2uno
 +	rm -f autogen.lastrun
  	rm -f build_error.log
 +	rm -f config/config_version.h
  
  ifeq "$(HELPISOS)" ""
  	rm -rf images*
@@@ -1333,11 -1269,20 +1333,11 @@@ debian/control: $(wildcard debian/contr
  	    -e "s#%[A-Za-z]*=[^%]*%##g#" \
  	    -e "s#%BUILD_DEPS%#$(strip $(BUILD_DEPS))#g" \
  	    -e "s#%BUILD_DEPS_INDEP%#$(strip $(BUILD_DEPS_INDEP))#g" \
 -	    -e "s#@PYTHON_VERSION@#$(PYTHON_VERSION)#g" \
 +	    -e "s#@PYTHON_VERSION_CONTROL@#$(PYTHON_VERSION_CONTROL)#g" \
 +	    -e "s#@PYTHON2_VERSION@#$(PYTHON2_VERSION)#g" \
  	    -e "s#@BUGS@#$(BUGS)#g" \
  	    < debian/control.in > debian/control
  
 -ifeq "$(ENABLE_LDAP)" "y"
 -	# build-depends might not be satified when running debian/rules control. prevent bad subsitition with
 -	# nothing (libldap--)
 -	if [ ! -f /usr/include/ldap_features.h ]; then \
 -		echo "/usr/include/ldap_features.h not found. Is libldap2-dev installed?"; \
 -		echo 'Needed for properly setting $$(LDAP_LIB). Stopping,'; \
 -		exit 1; \
 -	fi
 -endif
 -
  	for LNUM in $(filter-out en-US,$(LANGPACKISOS)) ; do \
  	    LNAME=`$(SOURCE_TREE)/bin/lo-xlate-lang -l $$LNUM | perl -e 'print ucfirst(<STDIN>);'`; \
  	    LCODE=`$(SOURCE_TREE)/bin/lo-xlate-lang -i $$LNUM | tr A-Z a-z`; \
@@@ -1399,8 -1344,6 +1399,8 @@@
  		-e "s|@LDAP_LIB@|$(LDAP_LIB)|g" \
  	        >> debian/control < debian/control.lang.in; \
  	done
 +	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
 +		>> debian/control < debian/control.transitionals.in
  
  ifneq "$(ENABLE_HELP)" "n"
  	for LNUM in $(HELPISOS) ; do \
@@@ -1451,6 -1394,14 +1451,6 @@@ ifeq "$(ENABLE_MINIMIZER)" "y
  	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
  		>> debian/control < debian/control.minimizer.in
  endif
 -ifeq "$(ENABLE_PRESENTER_CONSOLE)" "y"
 -	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
 -		>> debian/control < debian/control.presenter.in
 -endif
 -ifeq "$(ENABLE_PDFIMPORT)" "y"
 -	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
 -		>> debian/control < debian/control.pdfimport.in
 -endif
  ifeq "$(PACKAGE_TTF_OPENSYMBOL)" "y"
  	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
  		>> debian/control < debian/control.fonts.in
@@@ -1480,14 -1431,14 +1480,14 @@@ ifeq "$(ENABLE_EVO2)" "y
  	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
  		>> debian/control < debian/control.evolution.in
  endif
 -ifeq "$(BUILD_BINFILTERS)" "y"
 -	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
 -		>> debian/control < debian/control.binfilter.in
 -endif
  ifeq "$(ENABLE_KDEAB)" "y"
  	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
  		>> debian/control < debian/control.kab.in
  endif
 +ifeq "$(PACKAGE_LIBRELOGO)" "y"
 +	sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
 +		>> debian/control < debian/control.librelogo.in
 +endif
  
  	perl -pi -e "s,%OOO_ARCHS%,$(OOO_ARCHS),g" debian/control
  	perl -pi -e "s,%OOO_BASE_ARCHS%,$(OOO_BASE_ARCHS),g" debian/control
@@@ -1496,6 -1447,8 +1496,6 @@@
  	perl -pi -e "s,%OOO_GCJ_ARCHS%,$(OOO_GCJ_ARCHS),g" debian/control
  	perl -pi -e "s,%OOO_NSPLUGIN_ARCHS%,$(OOO_NSPLUGIN_ARCHS),g" debian/control
  	perl -pi -e "s,%OOO_OGLTRANS_ARCHS%,$(OOO_OGLTRANS_ARCHS),g" debian/control
 -	perl -pi -e "s,%OOO_BINFILTER_ARCHS%,$(OOO_BINFILTER_ARCHS),g" debian/control
 -	perl -pi -e "s,%OOO_STLPORT_ARCHS%,$(OOO_STLPORT_ARCHS),g" debian/control
  	perl -pi -e "s,%OOO_GCJ_JDK_ARCHS%,$(OOO_GCJ_JDK_ARCHS),g" debian/control
  	perl -pi -e "s,%OOO_ARCH_DEP_EXTENSIONS_ARCHS%,$(OOO_ARCH_DEP_EXTENSIONS_ARCHS),g" debian/control
  	perl -pi -e "s,%OOO_REPORTDESIGN_ARCHS%,$(OOO_REPORTDESIGN_ARCHS),g" debian/control
@@@ -1519,7 -1472,7 +1519,7 @@@ ifeq "$(ENABLE_GIO)" "y
  endif
  
  ifneq (,$(filter hsqldb, $(SYSTEM_STUFF)))
 -	perl -pi -e "s/(Build-Conflicts: .*)/\1, libhsqldb-java (>= $(HSQLDB_TOONEWVER)~)/" debian/control
 +	perl -pi -e "s/(Build-Conflicts: .*)/\1,libhsqldb-java (>= $(HSQLDB_TOONEWVER)~),/" debian/control
  endif
  
  ifeq (4.4,$(SYSTEM_GCC_VERSION))
@@@ -1545,9 -1498,8 +1545,9 @@@ ifeq "$(BUILD_KDE)" "y
  	perl -pi -e 's/GConf backend$$/GConf backend\n  * libreoffice$(VER)-kde: KDE UI Plugin and KDE File Picker support/' debian/control
  endif
  
 -ifeq "$(ENABLE_LDAP)" "y"
 -	perl -pi -e 's/paperconf$$/paperconf\n  * $(LDAP_LIB): LDAP client library; needed for LibreOffice getting its\n    profiles from LDAP/' debian/control
 +ifeq "$(USE_DBUS)" "y"
 +	perl -pi -e 's/paperconf$$/paperconf\n  * bluez: Bluetooth support for Impress (slideshow remote control/' debian/control
 +	perl -pi -e 's/Description: office productivity suite -- presentation/Suggests: bluez\nDescription: office productivity suite -- presentation/' debian/control
  endif
  
  ifneq "$(DICT_DIR)" "/usr/share/hunspell"
@@@ -1593,18 -1545,6 +1593,18 @@@ ifneq "$(PACKAGE_UNOWINREG_DLL)" "y
  	fi
    endif
  endif
 +
 +ifneq "$(WHEEZY_BACKPORT)" "y"
 +   ifeq "$(ENABLE_PYTHON)" "y"
 +    ifeq "$(ENABLE_PYTHON2)" "y"
 +	rm -rf $(SOURCE_TREE)/py2uno
 +	cp -ra $(SOURCE_TREE)/pyuno $(SOURCE_TREE)/py2uno
 +	cd py2uno && \
 +		patch -p1 < $(CURDIR)/debian/patches/pyuno-copy-for-python2.diff
 +    endif
 +  endif
 +endif
 +
  	touch $@
  
  build:
@@@ -1620,20 -1560,29 +1620,20 @@@ $(STAMP_DIR)/build-arch
  	# FIXME: Theoretically this should call ./configure instead of
  	# it exists but that causes the configure flags NOT to be hnoured
  	# somehow...
 -	PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) ./autogen.sh $(CONFIGURE_FLAGS) \
 +	PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) \
 +	PYTHON=$(PYTHON) PYTHON_CFLAGS="$(shell pkg-config --cflags python-$(PYMAJOR).$(PYMINOR))" PYTHON_LIBS="$(shell pkg-config --libs python-$(PYMAJOR).$(PYMINOR))" \
 +	./autogen.sh $(CONFIGURE_FLAGS) \
  		--without-help --without-doxygen --disable-ext-wiki-publisher \
 -		--disable-ext-report-builder --disable-ext-scripting-javascript \
 -		--disable-ext-scripting-beanshell
 -
 -	PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) DEFAULT_TO_ENGLISH_FOR_PACKING=1 ARCH_FLAGS=$(ARCH_FLAGS) TMP=`mktemp -q -d` CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" $(MAKE) build gb_FULLDEPS= gb_Deliver_HARDLINK=T
 -
 -ifeq "$(BUILD_PYUNO)" "y"
 -  ifeq "$(ENABLE_PYTHON3)" "y"
 -	# FIXME: won't work when pyuno is migrated to gbuild as all is directly in solver
 -	# then...
 -	rm -rf $(SOURCE_TREE)/pyuno-py3
 -	cp -ra $(SOURCE_TREE)/pyuno $(SOURCE_TREE)/pyuno-py3
 -    ifeq "$(PYTHON3_VERSION)" "current"
 -	. $(SOURCE_TREE)/config_host.mk.source; \
 -	cd pyuno-py3 && \
 -		rm -rf $$OUTPATH$$PROEXT; \
 -		PYTHON=$(PYTHON3) PYTHON_CFLAGS="$(shell pkg-config --cflags python$(PY3MAJOR))" PYTHON_LIBS="$(shell pkg-config --libs python$(PY3MAJOR))" ../solenv/bin/build.pl
 -    else
 -	. $(SOURCE_TREE)/config_host.mk.source; \
 -	cd pyuno-py3 && \
 -		rm -rf $$OUTPATH$$PROEXT; \
 -		PYTHON=$(PYTHON3) PYTHON_CFLAGS="$(shell pkg-config --cflags python-$(PY3MAJOR).$(PY3MINOR))" PYTHON_LIBS="$(shell pkg-config --libs python-$(PY3MAJOR).$(PY3MINOR))" ../solenv/bin/build.pl
 +		--disable-ext-report-builder --disable-scripting-javascript \
 +		--disable-scripting-beanshell
 +
 +	PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) DEFAULT_TO_ENGLISH_FOR_PACKING=1 ARCH_FLAGS=$(ARCH_FLAGS) TMP=`mktemp -q -d` $(MAKE) build
 +
 +ifneq "$(WHEEZY_BACKPORT)" "y"
 +  ifeq "$(ENABLE_PYTHON)" "y"
 +    ifeq "$(ENABLE_PYTHON2)" "y"
 +	$(MAKE) py2uno.clean
 +	make cmd cmd='cd py2uno; export PYTHON=$(PYTHON2); export PYTHON_CFLAGS="$(shell pkg-config --cflags python-$(PY2MAJOR).$(PY2MINOR))"; export PYTHON_LIBS="$(shell pkg-config --libs python-$(PY2MAJOR).$(PY2MINOR))"; $(MAKE)'
      endif
    endif
  endif
@@@ -1645,8 -1594,10 +1645,8 @@@ endi
  ifneq "$(BUILD_ISOS)" "en-US"
  	# build some extensions again with all languages; as it contains language-specific help
  	# and/or descriptions...
 -	$(MAKE) translations.clean
  	$(MAKE) sdext.clean
  	$(MAKE) mysqlc.clean
 -	make cmd cmd="cd translations; export WITH_LANG='$(LANGPACKISOS)'; export WITH_LANG_LIST='$(LANGPACKISOS)'; $(MAKE)"
  	make cmd cmd="cd sdext; export WITH_LANG='$(LANGPACKISOS)'; export WITH_LANG_LIST='$(LANGPACKISOS)'; $(MAKE)"
  	make cmd cmd="cd mysqlc; export WITH_LANG='$(LANGPACKISOS)'; export WITH_LANG_LIST='$(LANGPACKISOS)'; ../solenv/bin/build.pl && ../solenv/bin/deliver.pl"
  endif
@@@ -1657,18 -1608,14 +1657,18 @@@ build-indep: $(STAMP_DIR)/prepare $(STA
  $(STAMP_DIR)/build-indep:
  	dh_testdir
  
 -	$(MAKE) scripting.clean
  	$(MAKE) odk.clean
  	$(MAKE) scp2.clean
 +	# FIXME: those are arch-indep but somehow fail in the second run
 + 	# with all languages - handle it like the ones in binary-arch. The
 +	# rebuild automatically will be done, though.
 +	$(MAKE) swext.clean
 +	$(MAKE) reportbuilder.clean
  	rm -f config.status autogen.lastrun
  
  	PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) ./autogen.sh $(CONFIGURE_FLAGS) $(CONFIGURE_FLAGS_LANG)
  
 -	PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) DEFAULT_TO_ENGLISH_FOR_PACKING=1 ARCH_FLAGS=$(ARCH_FLAGS) TMP=`mktemp -q -d` CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" $(MAKE) build gb_FULLDEPS= gb_Deliver_HARDLINK=T
 +	PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) DEFAULT_TO_ENGLISH_FOR_PACKING=1 ARCH_FLAGS=$(ARCH_FLAGS) TMP=`mktemp -q -d` $(MAKE) build
  
  	touch $@
  
@@@ -1689,7 -1636,7 +1689,7 @@@ endi
  		export HOME=$$t; \
  		export SAL_USE_VCLPLUGIN="svp"; \
  		if [ -x /usr/bin/gdb ]; then ulimit -c unlimited; fi && \
 -		$(MAKE) -k check gb_FULLDEPS= gb_Deliver_HARDLINK=T && \
 +		CHECK_PARALLELISM=1 $(MAKE) -k check && \
  	rm -rf $$t
  
  ifneq (,$(findstring $(DEB_HOST_ARCH),$(OOO_NO_BASE_ARCHS)))
@@@ -1810,8 -1757,10 +1810,8 @@@ ifneq "$(ENABLE_HELP)" "n
  	done
  endif
  
 -ifneq "$(BUILD_BINFILTERS)" "y"
 -	# somewhow there's a libreoffice-filter-binfilter here even when binfilter disabled.
 -	# go sure.
 -	rm -rf debian/tmp/pkg/libreoffice-filter-binfilter/usr/share/applications
 +ifneq "$(PACKAGE_LIBRELOGO)" "y"
 +	rm -rf debian/tmp/pkg/libreoffice-librelogo
  endif
  
  	dh_installdirs -A
@@@ -1820,10 -1769,11 +1820,10 @@@
  	rm -rf debian/tmp/pkg
  
  	# move desktop files to their correct packages
 -	for i in base calc draw impress math writer binfilter; do \
 -		if [ "$$i" = "binfilter" ]; then j=filter-binfilter; else j=$$i; fi; \
 -		mkdir -p $(PKGDIR)-$$j/$(OODIR)/share/xdg; \
 +	for i in base calc draw impress math writer; do \
 +		mkdir -p $(PKGDIR)-$$i/$(OODIR)/share/xdg; \
  		mv $(PKGDIR)-common/$(OODIR)/share/xdg/$$i.desktop \
 -			$(PKGDIR)-$$j/$(OODIR)/share/xdg; \
 +			$(PKGDIR)-$$i/$(OODIR)/share/xdg; \
  	done
  
  	# move help to /usr/share
@@@ -1862,11 -1812,7 +1862,11 @@@ ifeq "$(ENABLE_JAVA)" "y
  		$(PKGDIR)-base/$(shell echo $(OODIR) | sed -e s/lib/share/)/program/classes; \
  	ln -s $(shell echo /$(OODIR) | sed -e s/lib/share/)/program/classes/sdbc_hsqldb.jar \
  		$(PKGDIR)-base/$(OODIR)/program/classes/sdbc_hsqldb.jar
 -
 +    ifneq (,$(filter hsqldb, $(SYSTEM_STUFF)))
 +	# fix the classpath (file:// breaks javahelper)
 +	jh_classpath --classpath="/usr/share/java/hsqldb.jar .." \
 +		$(PKGDIR)-base/$(shell echo /$(OODIR) | sed -e s/lib/share/)/program/classes/sdbc_hsqldb.jar
 +    endif
      ifeq (,$(filter hsqldb, $(SYSTEM_STUFF)))
  	# we need this in -base. Otherwise we get unwanted package differences
  	# in the unstable version and backports which might use internal hsqldb
@@@ -1913,22 -1859,6 +1913,22 @@@ ifeq "$(ENABLE_EVO2)" "y
  		$(PKGDIR)-evolution/$(OODIR)/presets/database
  endif
  
 +	# FIXME: Should have been done in gid2pkgdirs.sh but somehow the installer
 +	# doesn't create the gid_Module_Pdfimport file and so that doesn't work.
 +	# Do it manually here.
 +	rm -rf $(PKGDIR)-pdfimport
 +	mkdir -p $(PKGDIR)-pdfimport/$(OODIR)/program
 +	mkdir -p $(PKGDIR)-pdfimport/$(OODIR)/share/registry
 +	mkdir -p $(PKGDIR)-pdfimport/$(OODIR)/share/xpdfimport
 +	for i in program/xpdfimport share/xpdfimport share/registry/pdfimport.xcd; do \
 +		mv $(PKGDIR)-common/$(OODIR)/$$i \
 +			$(PKGDIR)-pdfimport/$(OODIR)/$$i; \
 +	done
 +	for i in program/xpdfimport program/pdfimport.uno.so; do \
 +		mv $(PKGDIR)-core/$(OODIR)/$$i \
 +			$(PKGDIR)-pdfimport/$(OODIR)/$$i; \
 +	done
 +
  	find debian/tmp ! -perm -200 | xargs -r chmod u+w
  
  	touch $@
@@@ -2053,6 -1983,9 +2053,6 @@@ ifeq "$(PACKAGE_BASE)" "y
  endif
  	: # remove problematic ones
  	rm -f debian/tmp/native-jars/ridl.jar
 -ifneq "$(USE_SYSTEM_SAXON)" "y"
 -	rm -f debian/tmp/native-jars/saxon9.jar
 -endif
  	: # compile the others
  	# the Debian i386 buildd, although having much ram still OOMs without
  	# this (at unoil.jar).
@@@ -2236,51 -2169,54 +2236,51 @@@ endi
  			> debian/libreoffice$(VER)-$$i.lintian-overrides; \
  	done
  
 -ifeq "$(BUILD_PYUNO)" "y"
 +ifeq "$(ENABLE_PYTHON)" "y"
  	# PyUNO packaging
  	install -d $(PYTHON_SITE)
 -	mv debian/python-uno/$(OODIR)/program/uno.py $(PYTHON_SITE)
 -	mv debian/python-uno/$(OODIR)/program/unohelper.py $(PYTHON_SITE)
 -	touch debian/python-uno/$(OODIR)/program/pythonloader.unorc
 -	chmod u+w debian/python-uno/$(OODIR)/program/pythonloader.unorc
 +	mv debian/python3-uno/$(OODIR)/program/uno.py $(PYTHON_SITE)
 +	mv debian/python3-uno/$(OODIR)/program/unohelper.py $(PYTHON_SITE)
 +	touch debian/python3-uno/$(OODIR)/program/pythonloader.unorc
 +	chmod u+w debian/python3-uno/$(OODIR)/program/pythonloader.unorc
  	( echo '[Bootstrap]'; \
  	  echo 'PYTHONHOME=file:///usr/lib/python$(PYMAJOR).$(PYMINOR)' ;\
  	  echo 'PYTHONPATH=$$PYTHONHOME $$PYTHONHOME/site-packages $$PYTHONHOME/lib-dynload $$PYTHONHOME/lib-tk $$ORIGIN' \
 -	) > debian/python-uno/$(OODIR)/program/pythonloader.unorc
 -	chmod u-w debian/python-uno/$(OODIR)/program/pythonloader.unorc
 -  ifeq "$(ENABLE_PYTHON3)" "y"
 -	install -d $(PYTHON3_SITE)
 +	) > debian/python3-uno/$(OODIR)/program/pythonloader.unorc
 +	chmod u-w debian/python3-uno/$(OODIR)/program/pythonloader.unorc
 +  ifneq "$(WHEEZY_BACKPORT)" "y"
 +    ifeq "$(ENABLE_PYTHON2)" "y"
 +	install -d $(PYTHON2_SITE)
  	cp $(PYTHON_SITE)/uno.py \
 -		$(PYTHON3_SITE)
 +		$(PYTHON2_SITE)
  	cp $(PYTHON_SITE)/unohelper.py \
 -		$(PYTHON3_SITE)
 -	mkdir -p debian/python3-uno/$(OODIR)/program
 -	mkdir -p debian/python3-uno/$(OODIR)/share/registry
 -	mkdir -p debian/python3-uno/$(OODIR)/share/Scripts
 -	cat debian/python-uno/$(OODIR)/program/pythonloader.unorc \
 -		| sed -e "s/$(PYMAJOR).$(PYMINOR)/$(PY3MAJOR).$(PY3MINOR)/" \
 -		> debian/python3-uno/$(OODIR)/program/pythonloader.unorc
 -	for i in pyuno.so pythonloader.uno.so libpyuno.so; do \
 -		install -m644 $(SOURCE_TREE)/pyuno-py3/$(shell . $(SOURCE_TREE)/config_host.mk.source; echo $$OUTPATH$$PROEXT)/lib/$$i \
 -			debian/python3-uno/$(OODIR)/program/$$i; \
 +		$(PYTHON2_SITE)
 +	mkdir -p debian/python-uno/$(OODIR)/program
 +	mkdir -p debian/python-uno/$(OODIR)/share/registry
 +	mkdir -p debian/python-uno/$(OODIR)/share/Scripts
 +	cat debian/python3-uno/$(OODIR)/program/pythonloader.unorc \
 +		| sed -e "s/$(PYMAJOR).$(PYMINOR)/$(PY2MAJOR).$(PY2MINOR)/" \
 +		> debian/python-uno/$(OODIR)/program/pythonloader.unorc
 +	for i in py2uno.so libpy2uno.so; do \
 +		install -m644 $(SOURCE_TREE)/workdir/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/LinkTarget/Library/$$i \
 +			debian/python-uno/$(OODIR)/program/$$i; \
 +			ln -s $$i debian/python-uno/$(OODIR)/program/`echo $$i | sed -e s/2//`; \
  	done
 -	cp debian/python-uno/$(OODIR)/program/pythonloader.py \
 -		debian/python3-uno/$(OODIR)/program
 -	cp debian/python-uno/$(OODIR)/share/registry/pyuno.xcd \
 -		debian/python3-uno/$(OODIR)/share/registry
 -	cp -r debian/python-uno/$(OODIR)/share/Scripts/python \
 -		debian/python3-uno/$(OODIR)/share/Scripts
 +	install -m644 $(SOURCE_TREE)/workdir/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/LinkTarget/Library/python2loader.uno.so \
 +		debian/python-uno/$(OODIR)/program/python2loader.uno.so
 +	ln -s python2loader.uno.so debian/python-uno/$(OODIR)/program/pythonloader.uno.so
 +	cp debian/python3-uno/$(OODIR)/program/pythonloader.py \
 +		debian/python-uno/$(OODIR)/program
 +	cp debian/python3-uno/$(OODIR)/share/registry/pyuno.xcd \
 +		debian/python-uno/$(OODIR)/share/registry
 +	cp -r debian/python3-uno/$(OODIR)/share/Scripts/python \
 +		debian/python-uno/$(OODIR)/share/Scripts
 +    endif
    endif
    ifeq "$(ENABLE_SCRIPT_PROVIDER_PYTHON)" "y"
  	rm -f debian/libreoffice$(VER)-script-provider-python/$(OODIR)/share/extensions/script-provider-for-python/registration/LICENSE
    endif
  
 -	mkdir -p debian/python-uno/usr/share/doc/python-uno
 -	cp -r $(SOURCE_TREE)/pyuno/demo \
 -	  debian/python-uno/usr/share/doc/python-uno; \
 -	for i in $(SOURCE_TREE)/pyuno/doc/*; do \
 -		cp $$i debian/python-uno/usr/share/doc/python-uno; \
 -	done
 -	cd debian/python-uno/usr/share/doc/python-uno && \
 -		find . -type d -name "CVS" | xargs -r rm -rf
 -  ifeq "$(ENABLE_PYTHON3)" "y"
  	mkdir -p debian/python3-uno/usr/share/doc/python3-uno
  	cp -r $(SOURCE_TREE)/pyuno/demo \
  	  debian/python3-uno/usr/share/doc/python3-uno; \
@@@ -2289,26 -2225,9 +2289,26 @@@
  	done
  	cd debian/python3-uno/usr/share/doc/python3-uno && \
  		find . -type d -name "CVS" | xargs -r rm -rf
 +  ifneq "$(WHEEZY_BACKPORT)" "y"
 +    ifeq "$(ENABLE_PYTHON2)" "y"
 +	mkdir -p debian/python-uno/usr/share/doc/python-uno
 +	cp -r $(SOURCE_TREE)/pyuno/demo \
 +	  debian/python-uno/usr/share/doc/python-uno; \
 +	for i in $(SOURCE_TREE)/pyuno/doc/*; do \
 +		cp $$i debian/python-uno/usr/share/doc/python-uno; \
 +	done
 +	cd debian/python-uno/usr/share/doc/python-uno && \
 +		find . -type d -name "CVS" | xargs -r rm -rf
 +    endif
    endif
  endif
  
 +ifeq "$(WHEEZY_BACKPORT)" "y"
 +	# OMG!!
 +	rm -rf debian/python-uno
 +	mv debian/python3-uno debian/python-uno
 +endif
 +
  	# should be empty now, remove if there
  	rm -rf $(PKGDIR)-core/$(OODIR)/ure
  
@@@ -2352,10 -2271,28 +2352,10 @@@ ifeq "$(PACKAGE_SDK)" "y
  	cd $(PKGDIR)-dev/$(OOSDKDIR) && \
  		rm docs
  
  	# fix permissions
  	find $(PKGDIR)-dev/usr/share/idl/$(OODIRNAME) -type f -exec chmod 644 {} \;
  
 -	rm -f $(PKGDIR)-dev//usr/share/doc/libreoffice/sdk/readme/LICENSE.gz
 -endif
 -
 -ifeq "$(LINK_TO_STLPORT)" "y"
 -	rm -f debian/ure/$(OOUREDIR)/lib/libstlport*
 -	ln -s `readlink -f /usr/lib/libstlport_gcc.so` \
 -		debian/ure/$(OOUREDIR)/lib/libstlport_gcc.so
 +	rm -f $(PKGDIR)-dev/usr/share/doc/libreoffice/sdk/readme/LICENSE.gz
  endif
  
  ifeq "$(ENABLE_JAVA)" "y"
@@@ -2373,7 -2310,7 +2373,7 @@@ ifeq "$(PACKAGE_SDK)" "y
    ifeq "$(ENABLE_JAVA)" "y"
  	# install the UNO Java sources for e.g. eclipse
  	mkdir -p $(CURDIR)/$(PKGDIR)-dev/usr/share/java
 -	cd $(SOURCE_TREE)/solver/$(shell . $(SOURCE_TREE)/config_host.mk.source; echo $$OUTPATH$$PROEXT)/pck && \
 +	cd $(SOURCE_TREE)/solver/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/pck && \
  		for i in juh jurt jut ridl unoloader; do \
  			cp $${i}_src.zip \
  			  $(CURDIR)/$(PKGDIR)-dev/usr/share/java; \
@@@ -2419,6 -2356,10 +2419,6 @@@ ifeq "$(ENABLE_MYSQLNATIVE)" "y
  	rm -f $(PKGDIR)-mysql-connector/$(OODIR)/share/extensions/mysql-connector-ooo/registration/LICENSE
  endif
  
 -ifeq "$(ENABLE_PDFIMPORT)" "y"
 -	rm -f $(PKGDIR)-pdfimport/$(OODIR)/share/extensions/pdfimport/registration/LICENSE
 -endif
 -
  ifeq "$(ENABLE_MEDIAWIKI)" "y"
  	rm -f $(PKGDIR)-wiki-publisher/$(OODIR)/share/extensions/wiki-publisher/registration/LICENSE
  endif
@@@ -2426,19 -2367,11 +2426,19 @@@
  #ifeq "$(PACKAGE_SDK)" "y"
  #	# install gengal stuff into -dev
  #	mkdir -p $(PKGDIR)-dev/$(OODIR)/program
 -#	install -m755 $(SOURCE_TREE)/svx/$(shell . $(SOURCE_TREE)/config_host.mk.source; echo $$OUTPATH$$PROEXT)/bin/gengal \
 +#	install -m755 $(SOURCE_TREE)/svx/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/bin/gengal \
  #		$(PKGDIR)-dev/$(OODIR)/program/gengal
 -#	install -m755 $(SOURCE_TREE)/svx/$(shell . $(SOURCE_TREE)/config_host.mk.source; echo $$OUTPATH$$PROEXT)/bin/gengal.bin \
 +#	install -m755 $(SOURCE_TREE)/svx/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/bin/gengal.bin \
  #		$(PKGDIR)-dev/$(OODIR)/program/gengal.bin
  #endif
 +ifeq "$(PACKAGE_SDK)" "y"
 +	# move ui-previewer into -dev
 +	mkdir -p $(PKGDIR)-dev/$(OODIR)/program
 +	mv $(PKGDIR)-core/$(OODIR)/program/ui-previewer \
 +		$(PKGDIR)-dev/$(OODIR)/program
 +else
 +	rm -f $(PKGDIR)-core/$(OODIR)/program/ui-previewer
 +endif
  
  	for i in $(ARCH_DEP_PACKAGES); do \
  		if [ -e debian/$$i.bug-script.in ]; then \
@@@ -2557,8 -2490,7 +2557,8 @@@ endi
  	done
  	chmod 644 $(PKGDIR)-common/$(OODIR)/LICENSE.odt
  	chmod 644 $(PKGDIR)-common/$(OODIR)/CREDITS.odt
 -
 +	# FIXME. Do we really need this (ALV2 mandating it) or can this go?
 +	chmod 644 $(PKGDIR)-common/$(OODIR)/NOTICE
  	rm -rf $(PKGDIR)-common/$(OODIR)/LICENSE
  
  	# move uno_packages/cache to /var and create symlink for for
@@@ -2591,6 -2523,12 +2591,6 @@@ endi
  	cd $(PKGDIR)-common/usr/share/icons/hicolor/32x32/apps && \
  	  for x in *.png; do convert $$x `basename $$x .png`.xpm; done
  
 -ifeq "$(ENABLE_JAVA)" "y"
 -  ifneq (,$(filter saxon, $(SYSTEM_STUFF)))
 -	ln -sf /usr/share/java/saxonb.jar \
 -		$(PKGDIR)-java-common/$(OODIR)/program/classes/saxon9.jar
 -  endif
 -endif
  	# remove extra license files
  	rm -rf $(PKGDIR)-common/$(OODIR)/licenses
  	rm -f $(PKGDIR)-common/$(OODIR)/share/readme/LICENSE*
@@@ -2816,10 -2754,9 +2816,10 @@@ endi
  #ifeq "$(PACKAGE_SDK)" "y"
  #	# install gengal stuff into -dev
  #	mkdir -p $(PKGDIR)-dev/$(OODIR)/program
 -#	install -m644 $(SOURCE_TREE)/svx/$(shell . $(SOURCE_TREE)/config_host.mk.source; echo $$OUTPATH$$PROEXT)/bin/gengalrc \
 +#	install -m644 $(SOURCE_TREE)/svx/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/bin/gengalrc \
  #		$(PKGDIR)-common/$(OODIR)/program/gengalrc
  #endif
 +
  	touch $@
  
  binary-arch: $(STAMP_DIR)/binary-arch
@@@ -2835,9 -2772,9 +2835,9 @@@ $(STAMP_DIR)/binary-arch: $(STAMP_DIR)/
  	dh_installdocs -s -A
  	for p in $(ARCH_DEP_PACKAGES); do \
  		mkdir -p debian/$$p/usr/share/doc/$$p; \
 -		cat readlicense_oo/$(shell . $(SOURCE_TREE)/config_host.mk.source; echo $$OUTPATH$$PROEXT)/misc/UNX/README_en-US \
 +		cat solver/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/bin/osl/README_en-US \
  		| sed -e 's/$${PRODUCTNAME}/LibreOffice/g' \
 -		| sed -e 's/$${PRODUCTVERSION}/3.6/g' \
 +		| sed -e 's/$${PRODUCTVERSION}/$(OOVER)/g' \
  		> debian/$$p/usr/share/doc/$$p/README; \
  	done 
  	dh_installdebconf -s
@@@ -2858,21 -2795,9 +2858,21 @@@ ifeq "$(ENABLE_JAVA)" "y
  	dh_nativejava -plibreoffice$(VER)-gcj -o
    endif
  endif
 +ifeq "$(WHEEZY_BACKPORT)" "y"
  	dh_python2 -ppython-uno --no-guessing-versions --no-guessing-deps
 -ifeq "$(ENABLE_PYTHON3)" "y"
 +else
  	dh_python3 -ppython3-uno --no-guessing-deps
 +	# adds a python3 (>= 3.2.3-3~)
 +  ifeq "$(PYTHON_VERSION)" "current"
 +	sed -i -e 's/python$(PYMAJOR) (>= .*)/python$(PYMAJOR) (>= 3.3~)/g' \
 +		debian/python3-uno.substvars
 +  else
 +	sed -i -e 's/python$(PYMAJOR) (>= .*)/python$(PYMAJOR).$(PYMINOR)/g' \
 +		debian/python3-uno.substvars
 +  endif
 +  ifeq "$(ENABLE_PYTHON2)" "y"
 +	dh_python2 -ppython-uno --no-guessing-versions --no-guessing-deps
 +  endif
  endif
  	dh_lintian -s
  	dh_bugfiles -s -A
@@@ -2896,9 -2821,9 +2896,9 @@@ ifeq "$(BUILD_DBG_PACKAGE)" "y
  		$(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/
 -	mv $(CURDIR)/debian/tmp//usr/share/gdb/auto-load/$(OODIR)/ure/lib \
 -		debian/uno-libs3-dbg/usr/share/gdb/auto-load/$(OODIR)/ure
 +	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
@@@ -2910,8 -2835,8 +2910,8 @@@ els
  endif
  	dh_icons -s
  	dh_compress -s -X.py -X.mk -X.sxd
 -	dh_makeshlibs -puno-libs3 -V"uno-libs3 (>= $(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }' | cut -d. -f1-3)~), ure" -- -c0 -v`echo $(BINARY_VERSION) | cut -d: -f2`
 -	dh_makeshlibs -n -pure -V"ure (>= $(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }' | cut -d. -f1-3)~)" -- -v`echo $(BINARY_VERSION) | cut -d: -f2`
 +	dh_makeshlibs -puno-libs3 -V"uno-libs3 (>= $(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }' | cut -d. -f1-3)~), ure" -- -c0 -d -V -v`echo $(BINARY_VERSION) | cut -d: -f2`
 +	dh_makeshlibs -n -pure -V"ure (>= $(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }' | cut -d. -f1-3)~)" -- -d -V -v`echo $(BINARY_VERSION) | cut -d: -f2`
  	# ugly hack, but why does that happen? It's not in .symbols...
  	TMP=`mktemp -q`; \
  	grep -v PRIVATE debian/uno-libs3/DEBIAN/symbols > $$TMP && \
@@@ -2924,6 -2849,9 +2924,6 @@@ endi
  ifeq (,$(filter icu, $(SYSTEM_STUFF)))
  	cat debian/shlibs.override.icu >> debian/shlibs.local
  endif
 -ifeq (,$(filter stdlibs, $(SYSTEM_STUFF)))
 -	cat debian/shlibs.override.stdlibs >> debian/shlibs.local
 -endif
  	# we need to do it in two steps. The new dpkg-shlibdeps doesn't find
  	# /usr/lib/libgcj-bc.so when specifying -l$(GCJ_JAWT_DIR)
  	# and therefore we must not use it for -gcj. But we *do* need it
@@@ -2941,6 -2869,12 +2941,6 @@@ ifneq (,$(filter redland, $(SYSTEM_STUF
  	# which quickly can get outdated
  	perl -pi -e 's/(shlibs.*$$)/$$1, $(shell cat /var/lib/dpkg/info/$(shell dpkg -S /usr/lib/`objdump -p $(PKGDIR)-core/$(OODIR)/program/libunordf*.so | grep NEEDED | grep librdf | awk '{ print $$2 }'` | cut -d: -f1).shlibs | awk '{ print $$3,$$4,$$5 }')/' $(PKGDIR)-core.substvars
  endif
 -ifeq "$(ENABLE_LIBRSVG)" "y"
 -  ifeq "$(SYSTEM_LIBRSVG)" "y"
 -	# dlopen()'ed only for some weird reason (even when --with-librsvg=internal!)
 -	perl -pi -e 's/(shlibs.*$$)/$$1, $(shell cat /var/lib/dpkg/info/librsvg*.shlibs | awk '{ print $$3 }')/' $(PKGDIR)-core.substvars
 -  endif
 -endif
  	# don't make uno-libs3 depend on ure...
  	perl -pi -e 's/, ure$$//' debian/uno-libs3.substvars
  	# .. and prevent ure to depend on itself..
@@@ -2952,6 -2886,9 +2952,6 @@@ ifeq "$(ENABLE_JAVA)" "y
  			-ldebian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program:$(GCJ_JAWT_DIR) \
  			$(SHLIBS_OVERRIDE)
  endif
 -ifeq "$(LINK_TO_STLPORT)" "y"
 -	perl -pi -e 's/(shlibs.*$$)/$$1, $(shell cat /var/lib/dpkg/info/libstlport4.6*.shlibs | awk '{ print $$3,$$4,$$5 }')/' debian/ure.substvars
 -endif
  ifeq "$(ENABLE_JAVA)" "y"
  	for p in $(ARCH_DEP_PACKAGES); do \
  		if [ "$$p" = "libreoffice$(VER)-presentation-console" ]; then continue; fi; \
@@@ -2974,6 -2911,8 +2974,6 @@@ endi
  #          -l $(PKGDIR)-core/$(OPENOFFICEDIR)/program
  	dh_gencontrol -s $(DEBHELPER_OPTIONS) -Nure -Nure-dbg -Nuno-libs3 -Nuno-libs3-dbg \
  		-Nlibreoffice$(VER)-presentation-minimizer \
 -		-Nlibreoffice$(VER)-presenter-console \
 -		-Nlibreoffice$(VER)-pdfimport \
  		-Nlibreoffice$(VER)-mysql-connector -- \
  		-V"ure:Version=$(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }')" \
  		-V'base-version=$(BASE_VERSION)' \
@@@ -2985,13 -2924,13 +2985,13 @@@
  		-V'java-runtime-depends=$(JAVA_RUNTIME_DEPENDS)' \
  		-V'java-gcj-depends=$(JAVA_GCJ_DEPENDS)' \
  		-V'Binary-Version=$(BINARY_VERSION)' \
 -		-V'ooo-binfilter-dep=$(OOO_BINFILTER_DEP)' \
  		-V'ooo-officebean-dep=$(OOO_OFFICEBEAN_DEP)' \
  		-V'kde-iconset-dep=$(KDE_ICONSET_DEP)' \
  		-V'lpsolve-dep=$(LPSOLVE_DEP)' \
  		-V'gstreamer-plugins-suggests=$(GSTREAMER_PLUGINS_SUGGESTS)' \
  		-V'libebook-dep=$(shell debian/scripts/get_libebook_dep.sh)' \
 -		-V'libldap-suggests=$(LDAP_LIB)' \
 +		-V'idlc-cpp-depends=$(IDLC_CPP_DEPENDS)' \
 +		-V'pyuno-depends=$(PYUNO_DEPENDS)' \
  		-V'dbg-dbg-suggests=$(DBG_DBG_SUGGESTS)' \
  		-v$(BINARY_VERSION)
  ifeq "$(ENABLE_JAVA)" "y"
@@@ -2999,14 -2938,22 +2999,14 @@@
  		debian/libreoffice$(VER)-officebean/DEBIAN/control
  endif
  ifneq (,$(findstring $(DEB_HOST_ARCH),$(OOO_ARCH_DEP_EXTENSIONS_ARCHS)))
 -ifeq "$(ENABLE_PDFIMPORT)" "y"
 -	dh_gencontrol -plibreoffice$(VER)-pdfimport -- \
 -		-v$(shell grep "<version" $(SOURCE_TREE)/sdext/source/pdfimport/description.xml | perl -pi -e 's,<version.*value=\"(.*)\" />,\1,; s/^\s+//')+LibO`echo $(BINARY_VERSION) | cut -d: -f2`
 -endif
  ifeq "$(ENABLE_MINIMIZER)" "y"
  	dh_gencontrol -plibreoffice$(VER)-presentation-minimizer -- \
  		-v$(shell grep "<version" $(SOURCE_TREE)/sdext/source/minimizer/description.xml | perl -pi -e 's,<version value=\"(.*)\"/>,\1,; s/^\s+//')+LibO`echo $(BINARY_VERSION) | cut -d: -f2`
  endif
  ifeq "$(PACKAGE_BASE)" "y"
    ifeq "$(ENABLE_MYSQLNATIVE)" "y"
  	dh_gencontrol -plibreoffice$(VER)-mysql-connector -- \
 -		-v$(shell grep "<version" $(SOURCE_TREE)/mysqlc/$(shell . $(SOURCE_TREE)/config_host.mk.source; echo $$OUTPATH$$PROEXT)/misc/description.xml | perl -pi -e 's,<version value=\"(.*)\" />,\1,; s/^\s+//; s/\s+$$//')+LibO`echo $(BINARY_VERSION) | cut -d: -f2`
 +		-v$(shell grep "<version" $(SOURCE_TREE)/mysqlc/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/misc/description.xml | perl -pi -e 's,<version value=\"(.*)\" />,\1,; s/^\s+//; s/\s+$$//')+LibO`echo $(BINARY_VERSION) | cut -d: -f2`
    endif
  endif
  endif
@@@ -3067,9 -3014,9 +3067,9 @@@ endi
  	dh_installdocs -i -A 
  	for p in $(ARCH_INDEP_PACKAGES); do \
  		mkdir -p debian/$$p/usr/share/doc/$$p; \
 -		cat readlicense_oo/$(shell . $(SOURCE_TREE)/config_host.mk.source; echo $$OUTPATH$$PROEXT)/misc/UNX/README_en-US \
 +		cat solver/$(shell .  $(SOURCE_TREE)/bin/get_config_variables OUTPATH PROEXT; echo $$OUTPATH$$PROEXT)/bin/osl/README_en-US \
  		| sed -e 's/$${PRODUCTNAME}/LibreOffice/g' \
 -		| sed -e 's/$${PRODUCTVERSION}/3.6/g' \
 +		| sed -s 's/$${PRODUCTVERSION}/$(OOVER)/g' \
  		> debian/$$p/usr/share/doc/$$p/README; \
  	done 
  	dh_installman -i
@@@ -3079,10 -3026,7 +3079,10 @@@
  			ln -sf libreoffice.1.gz $$i.gz; \
  		fi; \
  	done
 -	dh_installchangelogs -i -k
 +	dh_installchangelogs -i -Nlibreoffice$(VER)-librelogo -k
 +ifeq "$(PACKAGE_LIBRELOGO)" "y"
 +	 dh_installchangelogs -plibreoffice$(VER)-librelogo -k librelogo/source/ChangeLog
 +endif
  	dh_installmime -i
  	dh_lintian -i
  	dh_bugfiles -i -A
@@@ -3116,8 -3060,8 +3116,8 @@@ endi
  		-V'java-common-depends=$(JAVA_COMMON_DEPENDS)' \
  		-V'java-runtime-depends=$(JAVA_RUNTIME_DEPENDS)' \
  		-V'textcat-data-recommends=$(TEXTCAT_DATA_RECOMMENDS)' \
 +		-V'pyuno-depends=$(PYUNO_DEPENDS)' \
  		-V'Binary-Version=$(BINARY_VERSION)' \
 -		-V'ooo-binfilter-dep=$(OOO_BINFILTER_DEP)' \
  		-V'dbg-dbg-suggests=$(DBG_DBG_SUGGESTS)' \
  		-v$(BINARY_VERSION)
  ifeq "$(PACKAGE_TTF_OPENSYMBOL)" "y"
@@@ -3185,24 -3129,27 +3185,24 @@@ $(call get_orig_tarball)
  	$(call pack_gittarball,core,$@,)
  
  $(call get_orig_tarball,-helpcontent2):
 -	$(call pack_gittarball,help,$@,libreoffice-$(DEB_VERSION_UPSTREAM)/helpcontent2)
 +	$(call pack_gittarball,help,$@,libreoffice-$(DEB_VERSION_UPSTREAM)/)
  
  $(call get_orig_tarball,-%):
 -	$(call pack_gittarball,$*,$@,libreoffice-$(DEB_VERSION_UPSTREAM)/$*)
 +	$(call pack_gittarball,$*,$@,libreoffice-$(DEB_VERSION_UPSTREAM)/)
  
  # Get upstream external sources
 -$(call get_orig_tarball,-src): binfilter/no_localization helpcontent2/makefile.pmk translations/makefile.mk .gitignore
 +$(call get_orig_tarball,-src): helpcontent2/makefile.pmk translations/makefile.mk .gitignore
  	dh_testdir
  	rm -rf $(TARFIILE_LOCATION)
  	mkdir -p $(TARFILE_LOCATION)
 -	./autogen.sh
 -	./download
 +	./autogen.sh --with-all-tarballs
 +	$(MAKE) download
  	tar cvJf $@ -C $(TARFILE_LOCATION) --transform 's,./,,' .
  
  # using flag files for unpacking
  .gitignore: $(call get_orig_tarball)
  	$(call unpack_gittarball,,$<,--strip-components=1)
  
 -binfilter/no_localization: $(call get_orig_tarball,-binfilter)
 -	$(call unpack_gittarball,binfilter,$<,)
 -
  translations/makefile.mk:  $(call get_orig_tarball,-translations)
  	$(call unpack_gittarball,translations,$<,)
  

-- 
LibreOffice packaging repository


Reply to: