Re: Openoffice 2.0.1
wow, what a surprise !
I've built the packages using your patch, and openoffice compile and
_works_ just fine
(I initially just wanted to see what was broken ;)
I am currently uploading the packages I've built to a faster server
(ftp://ftp-fourier.ujf-grenoble.fr/linux/oo64/) so other people can test
and confirm I am not going crazy or doing some mistake :)
you will need to install gcj-4.1 from experimental to be able to get
these packages (or maybe it was gcc-4.1, I have both ...)
thanks Emmanuel for the tip ;)
btw, I did not got your error Emmanuel, it just built fine, maybe you
had an incomplete build laying around before ?
Cheers,
Mik
Emmanuel Fleury a écrit :
> Hi all,
>
> I have some problem to build the debian package of OpenOffice 2.0.1.
>
> Here is what I do:
>
> 1) Add the experimental repository in my /etc/apt/sources.list:
>
> # Debian Experimental repository (sources)
> deb-src ftp://ftp.debian.org/debian experimental main
>
> 2) Get the sources:
> apt-get source -t experimental openoffice.org
>
> 3) Get the build dependancies:
> su -c 'apt-get build-dep openoffice.org'
>
> 4) Move to the directory:
> cd openoffice-2.0.1/
>
> 5) Apply the patch attached to this mail:
> patch -p1 < ../compile_openoffice_x86_64.diff
>
> 6) Build the sources:
> dpkg-buildpackage -rfakeroot -us -uc
>
> 7) Wait............ :)
>
> At the end, I got all the sources compiled but I get the following errors:
>
> # generate maintainer scripts from *.in
> # or generate default script which calls hook in
> openoffice.org-debian-files package
> for PKG in `dh_listpackages`; do \
> for FILE in postinst postrm preinst prerm; do \
> MAINTSCRIPT=debian/$PKG.$FILE ; \
> if [ -e $MAINTSCRIPT.in ]; then \
> sed -n '1,/^#INCLUDE_SHELL_LIB#$/p' < $MAINTSCRIPT.in |
> sed -e '/^#INCLUDE_SHELL_LIB#$/d' > $MAINTSCRIPT; \
> grep LIBSUFFIX debian/scripts/vars.amd64 >> $MAINTSCRIPT; \
> cat debian/shell-lib.sh >> $MAINTSCRIPT; \
> sed -n '/^#INCLUDE_SHELL_LIB#$/,$p' < $MAINTSCRIPT.in |
> sed -e '/^#INCLUDE_SHELL_LIB#$/d' >> $MAINTSCRIPT; \
> else \
> echo '#!/bin/sh' > $MAINTSCRIPT ; \
> echo THIS_PACKAGE=$PKG >> $MAINTSCRIPT ;\
> echo THIS_SCRIPT=$FILE >> $MAINTSCRIPT ;\
> cat debian/shell-lib.sh >> $MAINTSCRIPT; \
> fi; \
> done; \
> done
> grep: debian/scripts/vars.amd64: No such file or directory
> grep: debian/scripts/vars.amd64: No such file or directory
> grep: debian/scripts/vars.amd64: No such file or directory
> grep: debian/scripts/vars.amd64: No such file or directory
> grep: debian/scripts/vars.amd64: No such file or directory
> grep: debian/scripts/vars.amd64: No such file or directory
> grep: debian/scripts/vars.amd64: No such file or directory
> touch debian/stampdir/maintscripts
> /usr/bin/make -f debian/rules DH_OPTIONS="-Npython-uno
> -Nopenoffice.org-gcj -Nopenoffice.org-hunspell
> -Nopenoffice.org-filter-so52 -s" binary-common
> make[1]: Entering directory
> `/home/fleury/devel/projects/openoffice/openoffice.org-2.0.1-2'
> dh_testdir
> dh_testdir: I have no package to build
> make[1]: *** [binary-common] Error 1
> make[1]: Leaving directory
> `/home/fleury/devel/projects/openoffice/openoffice.org-2.0.1-2'
> make: *** [debian/stampdir/binary-arch] Error 2
>
>
> I think I did set BUILD_AMD64 to 'y' in debian/rules, but I'm not sure. :-/
>
> Can somebody help me to complete this patch ?
>
> Regards
> --
> Emmanuel Fleury
>
> First they ignore you, then they laugh at you,
> then they fight you, then you win.
> -- Mahatma Gandhi
>
>
> ------------------------------------------------------------------------
>
> diff -ruN openoffice.org-2.0.1/debian/rules openoffice.org-2.0.1-1/debian/rules
> --- openoffice.org-2.0.1/debian/rules 2006-01-01 15:27:14.000000000 +0100
> +++ openoffice.org-2.0.1-1/debian/rules 2006-01-10 08:18:48.000000000 +0100
> @@ -74,6 +74,7 @@
> endif
>
> ifeq "$(ARCH)" "amd64"
> + BUILD_AMD64=y
> BUILD_PYUNO=n
> else
> BUILD_PYUNO=y
> diff -ruN openoffice.org-2.0.1/ooo-build/patches/src680/apply openoffice.org-2.0.1-1/ooo-build/patches/src680/apply
> --- openoffice.org-2.0.1/ooo-build/patches/src680/apply 2006-01-01 15:27:13.000000000 +0100
> +++ openoffice.org-2.0.1-1/ooo-build/patches/src680/apply 2006-01-03 21:46:10.000000000 +0100
> @@ -34,7 +34,7 @@
> DebianBase : LinuxCommon, SystemDB, DebianBaseOnly
> Debian : DebianBase, DebianOnly, DebianSidOnly
> DebianSarge : DebianBase, DebianOnly, DebianSargeOnly
> -Debian64 : DebianBase, 64bit, DebianOnly
> +Debian64 : Debian, 64bit
> #
> # DroplineGNOME
> #
> @@ -606,7 +606,7 @@
>
> [ BuildBits ]
> # work around http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22392
> -powerpc-svx-customshapes-NOOPTFILES.diff
> +svx-customshapes-NOOPTFILES.diff
> # fix to build with system libnspr (installed apart from mozilla), i#49720
> buildfix-system-nspr-m112.diff
> # fix to build with system libnss (installed apart from mozilla)
> diff -ruN openoffice.org-2.0.1/ooo-build/patches/src680/svx-customshapes-NOOPTFILES.diff openoffice.org-2.0.1-1/ooo-build/patches/src680/svx-customshapes-NOOPTFILES.diff
> --- openoffice.org-2.0.1/ooo-build/patches/src680/svx-customshapes-NOOPTFILES.diff 1970-01-01 01:00:00.000000000 +0100
> +++ openoffice.org-2.0.1-1/ooo-build/patches/src680/svx-customshapes-NOOPTFILES.diff 2006-01-03 21:45:04.000000000 +0100
> @@ -0,0 +1,18 @@
> +Index: svx/source/customshapes/makefile.mk
> +===================================================================
> +RCS file: /cvs/graphics/svx/source/customshapes/makefile.mk,v
> +retrieving revision 1.9
> +diff -u -u -r1.9 makefile.mk
> +--- svx/source/customshapes/makefile.mk 1 Mar 2005 19:06:56 -0000 1.9
> ++++ svx/source/customshapes/makefile.mk 22 Aug 2005 02:01:36 -0000
> +@@ -81,5 +81,9 @@
> + .IF "$(OS)"=="MACOSX"
> + NOOPTFILES= $(SLO)$/EnhancedCustomShapeFunctionParser.obj
> + .ENDIF
> ++# http://gcc.gnu.org/PR22392
> ++.IF "$(OS)"=="LINUX" && ("$(CPU)"=="P" || "$(CPU)"=="X")
> ++NOOPTFILES= $(SLO)$/EnhancedCustomShapeFunctionParser.obj
> ++.ENDIF
> +
> + UNOTYPES= com.sun.star.uno.XWeak \
> + com.sun.star.uno.XNamingService \
Reply to: