LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-25-2007, 06:13 PM   #1
ruppertus
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Arch (used to Debian, Ubuntu)
Posts: 43

Rep: Reputation: 15
Cool Building OpenOffice from source (debian way)


Hi, I use Debian Sid (unstable) distribution.

I'm trying to build binary deb package of OpenOffice from source (openoffice.org_2.2.1-9) for my Core 2 Duo (T5500) processor.

I know that the CFLAGS for make should look like:
CFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer"
http://gentoo-wiki.com/Safe_Cflags#Intel_Core_2_Solo.2...

but I'm not sure where exactly I should put it. I mean how can I reedit debian/rules file.

I started with adding CFLAGS at the end of that fragment of that file:

CONFIGURE_FLAGS= --disable-post-install-scripts \
--with-tag=$(TAG) \
--with-distro=$(PATCHSET) \
--with-vendor='$(OOO_VENDOR)' \
--enable-package-directories \
--with-installed-ooo-dirname=openoffice$(VER) \
--mandir=/usr/share/man \
--with-docdir=/usr/share/doc/openoffice.org \
--with-lang="$(ISOS)" \
--with-build-version="openoffice.org$(VER)-core $(BINARY_VERSION), `LANG=C date`" \
--disable-strip \
--enable-atkbridge \
--enable-lockdown \
CFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer"

but I'm not sure if it's good solution. I've noticed that gcc compile my sources with -03 and -02 flag at the same time.

Perhaps I should make something with that options:
OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DIST := $(shell lsb_release -is)
DISTREL := $(shell lsb_release -cs)

or use prepare special DEB_BUILD_OPTIONS variable?

I know that it's better to install binary packages but I want to speed up my linux.

Anyone can halp me?

Last edited by ruppertus; 09-25-2007 at 06:23 PM.
 
Old 09-25-2007, 08:37 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
I get the overwhelming urge to tell you not to follow Gentoo docs. Gentoo does have a very good documentation selection, yes, however when looking at distro-specific documentation (as 95% of Gentoo documentation tends to be specific to Gentoo) don't be so sure that you can transfer it over to a different distribution and have it carry over.

If you read the Gentoo documentation you got that environment variable from, you would notice that it's meant to reside in a file called "/etc/make.conf". On Debian, that file doesn't exist.

What you can probably do is alias the gcc (or cc) command in your ~/.bashrc file to include those compiler flags.

Code:
export CFLAGS='-march=prescott -O3 -pipe -fomit-frame-pointer'
alias gcc='gcc $CFLAGS'
If you ever call it from the command-line to manually compile an application, or even if it's called by a makefile, that alias SHOULD be referenced.
Remember, you only need to be root to "make install".
 
Old 09-26-2007, 04:39 AM   #3
ruppertus
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Arch (used to Debian, Ubuntu)
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by indienick View Post
I get the overwhelming urge to tell you not to follow Gentoo docs. Gentoo does have a very good documentation selection, yes, however when looking at distro-specific documentation (as 95% of Gentoo documentation tends to be specific to Gentoo) don't be so sure that you can transfer it over to a different distribution and have it carry over.

If you read the Gentoo documentation you got that environment variable from, you would notice that it's meant to reside in a file called "/etc/make.conf". On Debian, that file doesn't exist.
I know that there are lots of differences but always I was trying to solve a porblem I've found the answer in gentoo wiki. I don't copy the solutions 1:1. Just try to take some advice.

Anyway I'll try to compile openoffice with that alias but I'm not sure what would happen if a debian/rules script override some of this flags.
e.g. var ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) get the i386 value. I guess it's connected with -march flag. Am I wrong?

Sometimes I see a flag -O2 in other packages (in debian/rules). What would happen if there are both -03 (from alias) and -O2 (from a script) flags?

Thanks for a solution.
Openoffise's going to compile for more than 10h

####
UPDATE:

I've been compiling in that package like you told me and I've noticed that gcc gives me the following log for almost every file belongs to openoffice package. That's a small screenshot from my compiling.

-mtune is setted for pentiumpro. That's not the architecture I wanted to use
man gcc describe that there are lots of arch between mentioned ones:
i386, i486, i586 (pentium), pentium-mmx,
pentiumpro, i686, pentium2, pentium3, pentium3m, pentium-m, pentium4, pentium4m,
prescott /Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support/

####
UPDATE 2

I've found another solution. There is a ARCH_FLAGS var but I don't know where should I use it.

openoffice.org (1.1.1-3) unstable; urgency=medium (...)
* New patches: (...)
- build-arch-flags: support ARCH_FLAGS to change compiler flags from envrionment [MM]

Should I put add that var into the debian/rules file?

I've found two patches that can propobly help inside the source (openoffice.org-2.2.1/ooo-build/patches/src680: testing-more-optimizations-ark.diff and mandriva-archflags.diff) and they reference to the following files:
solenv/inc/unxlngi4.mk.mdvarch
solenv/inc/unxlngi4.mk
solenv/inc/unxlngi5.mk.mdvarch
solenv/inc/unxlngi5.mk
solenv/inc/unxlngi6.mk.mdvarch
solenv/inc/unxlngi6.mk

I can't see that files. So how can I use the patches?
I know that they change these vars:
-ARCH_FLAGS*=-mcpu=pentiumpro
+ARCH_FLAGS*=-mtune=pentiumpro
+ARCH_FLAGS_CC*=$(ARCH_FLAGS)
+ARCH_FLAGS_CXX*=$(ARCH_FLAGS)
+ARCH_FLAGS_OPT*=-O1

Anyone can help me solve that problem?

#####
UPDATE 3

That files are in ooo-build/src/OOo_2.2.1_src_core.tar.bz2.dfsg archive.
./OOF680_m18/solenv/inc/unxlngi6.mk
./OOF680_m18/solenv/inc/unxlngi4.mk
./OOF680_m18/solenv/inc/unxlngi5.mk

I'll try to edit them and start compilation.

#####
UPDATE 4

I think that the most important thing is to edit:
./ooo-build/patches/src680/debian-opt.diff

Last edited by ruppertus; 09-26-2007 at 01:07 PM. Reason: I've found another solutions
 
Old 09-26-2007, 06:55 PM   #4
ruppertus
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Arch (used to Debian, Ubuntu)
Posts: 43

Original Poster
Rep: Reputation: 15
I've found the answer but I can't finish compiling OpenOffice.
Code:
cat /etc/apt/sources.list | grep debian.org
> deb http://ftp.pl.debian.org/debian/ unstable main non-free contrib
> deb-src http://ftp.pl.debian.org/debian/ unstable main non-free contrib

apt-get source openoffice.org
apt-get build-dep openoffice.org
I've edited ./openoffice.org-2.2.1/ooo-build/patches/src680/debian-opt.diff file:
Code:
--- solenv/inc/unxlngi6.mk~     2006-09-21 14:19:05.398388000 +0200
+++ solenv/inc/unxlngi6.mk      2006-09-21 14:48:34.028388000 +0200
@@ -64,7 +64,7 @@

 # architecture dependent flags for the C and C++ compiler that can be changed by
 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
-ARCH_FLAGS*=-mtune=pentiumpro
+ARCH_FLAGS*=-march=prescott -fomit-frame-pointer

 # name of C++ Compiler
 CXX*=g++
@@ -118,7 +118,7 @@
 CFLAGSDBGUTIL=
 # Compiler flags for enabling optimizations
 .IF "$(PRODUCT)"!=""
-CFLAGSOPT=-Os -fno-strict-aliasing             # optimizing for products
+CFLAGSOPT=-O3 -fno-strict-aliasing             # optimizing for products
 .ELSE  # "$(PRODUCT)"!=""
 CFLAGSOPT=                                                     # no optimizing for non products
 .ENDIF # "$(PRODUCT)"!=""
--- solenv/inc/unxlngs.mk~      2006-09-21 14:19:04.108388000 +0200
+++ solenv/inc/unxlngs.mk       2006-09-21 14:49:04.728388000 +0200
@@ -110,7 +110,7 @@
 CFLAGSDBGUTIL=
 # Compiler flags for enabling optimizations
 .IF "$(PRODUCT)"!=""
-CFLAGSOPT=-Os -fno-strict-aliasing             # optimizing for products
+CFLAGSOPT=-O3 -fno-strict-aliasing             # optimizing for products
 .ELSE  # "$(PRODUCT)"!=""
 CFLAGSOPT=                                                     # no optimizing for non products
 .ENDIF # "$(PRODUCT)"!=""
Code:
dpkg-buildpackage -rfakeroot -uc -b | tee ../logs
download about 15 MB of logs
After 3 hours I've got the following errors:
Code:
-----------------------------
SHL1FILTERFILE not set!
-----------------------------
dummy file to keep the dependencies for later use.
------------------------------
Making: ../unxlngi6.pro/lib/libsb680li.so
g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -Wl,--hash-style=gnu -shared -L../unxlngi6.pro/lib -L../lib -L/home/gontek/zlew/src/oo_compile/openoffice.org-2.2.1/ooo-build/build/OOF680_m18/solenv/unxlngi6/lib -L/home/gontek/zlew/src/oo_compile/openoffice.org-2.2.1/ooo-build/build/OOF680_m18/solver/680/unxlngi6.pro/lib -L/home/gontek/zlew/src/oo_compile/openoffice.org-2.2.1/ooo-build/build/OOF680_m18/solenv/unxlngi6/lib -L/usr/lib/jvm/java-gcj/lib -L/usr/lib/jvm/java-gcj/jre/lib/i386 -L/usr/lib/jvm/java-gcj/jre/lib/i386/client -L/usr/lib/jvm/java-gcj/jre/lib/i386/native_threads -L/home/gontek/zlew/src/oo_compile/openoffice.org-2.2.1/stlport/lib -L/usr/lib -L/usr/lib/xulrunner ../unxlngi6.pro/slo/sb_dflt_version.o ../unxlngi6.pro/slo/sb_dflt_description.o -o ../unxlngi6.pro/lib/libsb680li.so ../unxlngi6.pro/slo/basmgr.o ../unxlngi6.pro/slo/basicmanagerrepository.o ../unxlngi6.pro/slo/sb.o ../unxlngi6.pro/slo/sbxmod.o ../unxlngi6.pro/slo/image.o ../unxlngi6.pro/slo/sbintern.o ../unxlngi6.pro/slo/sbunoobj.o ../unxlngi6.pro/slo/propacc.o ../unxlngi6.pro/slo/disas.o ../unxlngi6.pro/slo/errobject.o ../unxlngi6.pro/slo/eventatt.o ../unxlngi6.pro/slo/sbcomp.o ../unxlngi6.pro/slo/dim.o ../unxlngi6.pro/slo/exprtree.o ../unxlngi6.pro/slo/exprnode.o ../unxlngi6.pro/slo/exprgen.o ../unxlngi6.pro/slo/codegen.o ../unxlngi6.pro/slo/io.o ../unxlngi6.pro/slo/loops.o ../unxlngi6.pro/slo/parser.o ../unxlngi6.pro/slo/scanner.o ../unxlngi6.pro/slo/token.o ../unxlngi6.pro/slo/symtbl.o ../unxlngi6.pro/slo/buffer.o ../unxlngi6.pro/slo/namecont.o ../unxlngi6.pro/slo/scriptcont.o ../unxlngi6.pro/slo/dlgcont.o ../unxlngi6.pro/slo/sbmodule.o ../unxlngi6.pro/slo/sbservices.o ../unxlngi6.pro/slo/modsizeexceeded.o ../unxlngi6.pro/slo/basrdll.o ../unxlngi6.pro/slo/inputbox.o ../unxlngi6.pro/slo/runtime.o ../unxlngi6.pro/slo/step0.o ../unxlngi6.pro/slo/step1.o ../unxlngi6.pro/slo/step2.o ../unxlngi6.pro/slo/iosys.o ../unxlngi6.pro/slo/stdobj.o ../unxlngi6.pro/slo/stdobj1.o ../unxlngi6.pro/slo/methods.o ../unxlngi6.pro/slo/methods1.o ../unxlngi6.pro/slo/props.o ../unxlngi6.pro/slo/ddectrl.o ../unxlngi6.pro/slo/dllmgr.o ../unxlngi6.pro/slo/sbxbase.o ../unxlngi6.pro/slo/sbxres.o ../unxlngi6.pro/slo/sbxvalue.o ../unxlngi6.pro/slo/sbxvals.o ../unxlngi6.pro/slo/sbxvar.o ../unxlngi6.pro/slo/sbxarray.o ../unxlngi6.pro/slo/sbxobj.o ../unxlngi6.pro/slo/sbxcoll.o ../unxlngi6.pro/slo/sbxexec.o ../unxlngi6.pro/slo/sbxint.o ../unxlngi6.pro/slo/sbxlng.o ../unxlngi6.pro/slo/sbxsng.o ../unxlngi6.pro/slo/sbxmstrm.o ../unxlngi6.pro/slo/sbxdbl.o ../unxlngi6.pro/slo/sbxcurr.o ../unxlngi6.pro/slo/sbxdate.o ../unxlngi6.pro/slo/sbxstr.o ../unxlngi6.pro/slo/sbxbool.o ../unxlngi6.pro/slo/sbxchar.o ../unxlngi6.pro/slo/sbxbyte.o ../unxlngi6.pro/slo/sbxuint.o ../unxlngi6.pro/slo/sbxulng.o ../unxlngi6.pro/slo/sbxform.o ../unxlngi6.pro/slo/sbxscan.o ../unxlngi6.pro/slo/sbxdec.o -luno_cppu -luno_cppuhelpergcc3 -ltl680li -lsvt680li -lsvl680li -lvcl680li -lvos3gcc3 -luno_sal -lcomphelp4gcc3 -lutl680li -lsot680li -lvos3gcc3 -lxcr680li -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc
../unxlngi6.pro/slo/image.o: In function `SbiImage::Load(SvStream&, unsigned long&)':
image.cxx:(.text+0xaf6): undefined reference to `PCodeBuffConvertor<unsigned short, unsigned long>::convert()'
image.cxx:(.text+0xb02): undefined reference to `PCodeBuffConvertor<unsigned short, unsigned long>::convert()'
../unxlngi6.pro/slo/image.o: In function `SbiImage::Save(SvStream&, unsigned long)':
image.cxx:(.text+0x185f): undefined reference to `PCodeBuffConvertor<unsigned long, unsigned short>::convert()'
image.cxx:(.text+0x186b): undefined reference to `PCodeBuffConvertor<unsigned long, unsigned short>::convert()'
collect2: ld returned 1 exit status
dmake:  Error code 1, while making '../unxlngi6.pro/lib/libsb680li.so'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /home/gontek/zlew/src/oo_compile/openoffice.org-2.2.1/ooo-build/build/OOF680_m18/basic/util
make[1]: *** [stamp/build] Błąd 1
make[1]: Opuszczenie katalogu `/home/gontek/zlew/src/oo_compile/openoffice.org-2.2.1/ooo-build'
make: *** [debian/stampdir/build] Błąd 2
I know that it's often error but I can't find the solution for it.
 
Old 09-27-2007, 03:53 AM   #5
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Rep: Reputation: 31
I noticed you chose -O3 over -Os, a better choice maybe to do -O2 as -O3 I believe may increase the file size and do a lot of code expansion to the point where it actually slows it down; I could be wrong though. The undefined references means the linker can't find the reference for that function and as far as I can tell its a function included in the source. I'd try cleaning the source and do it again, if not check your build options.

edit: also this probably isn't it, but try compiling it without your optimization changes if all else fails.

Last edited by xaos5; 09-27-2007 at 03:54 AM.
 
Old 09-27-2007, 04:20 AM   #6
ruppertus
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Arch (used to Debian, Ubuntu)
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by xaos5 View Post
I noticed you chose -O3 over -Os, a better choice maybe to do -O2 as -O3 I believe may increase the file size and do a lot of code expansion to the point where it actually slows it down; I could be wrong though. The undefined references means the linker can't find the reference for that function and as far as I can tell its a function included in the source. I'd try cleaning the source and do it again, if not check your build options.

edit: also this probably isn't it, but try compiling it without your optimization changes if all else fails.
OK, I'll try to do that:
1/ with -O2 optimalization option
2/ if the /1/ fails i'll change march to mtune
3/ and then without my optimalization

I forgot to tell that I checked that behavior for BUILD_AMD64=n and BUILD_AMD64=y option in debian/rules.

I added there the fallowing var as well:
DEB_BUILD_OPTIONS := lang=pl
 
Old 09-27-2007, 05:22 AM   #7
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Rep: Reputation: 31
Here are a few links on gcc's optimizations:
http://gentoo-wiki.com/Safe_Cflags#P..._.2F_Celeron_D
http://www.network-theory.co.uk/docs...cintro_49.html
http://www.gentoo.org/doc/en/gcc-optimization.xml (tells you to use -O2 over -O3 if using version 4 of gcc)
http://tools.openoffice.org/performance/
http://www.lockergnome.com/nexus/lin...t-start-faster (this one probably will make more of a difference)

edit: http://www.lockergnome.com/nexus/win...up-openoffice/ (one more tweak)
I just found most of these and on a windows machine the tweaks did make a huge difference, I'm not sure what limitations there are to disabling jre

keeping -Os and doing just the tweaks would probably yield the most because most of the time the slowest part of OO.org is loading it from the hard drive, and if the binary is bigger so is the loading time.

Last edited by xaos5; 09-27-2007 at 05:27 AM.
 
Old 09-27-2007, 06:01 AM   #8
ruppertus
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Arch (used to Debian, Ubuntu)
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by xaos5 View Post
Here are a few links on gcc's optimizations:
http://www.gentoo.org/doc/en/gcc-optimization.xml (tells you to use -O2 over -O3 if using version 4 of gcc)
Quote:
* -O2: A step up from -O1. This is the recommended level of optimization unless you have special needs. -O2 will activate a few more flags in addition to the ones activated by -O1. With -O2, the compiler will attempt to increase code performance without compromising on size, and without taking too much compilation time.
* -O3: This is the highest level of optimization possible, and also the riskiest. It will take a longer time to compile your code with this option, and in fact it should not be used system-wide with gcc 4.x. The behavior of gcc has changed significantly since version 3.x. In 3.x, -O3 has been shown to lead to marginally faster execution times over -O2, but this is no longer the case with gcc 4.x. Compiling all your packages with -O3 will result in larger binaries that require more memory, and will significantly increase the odds of compilation failure or unexpected program behavior (including errors). The downsides outweigh the benefits; remember the principle of diminishing returns. Using -O3 is not recommended for gcc 4.x.
* -Os: This level will optimize your code for size. It activates all -O2 options that don't increase the size of the generated code. It can be useful for machines that have extremely limited disk storage space and/or have CPUs with small cache sizes. However, it can cause quite a few problems, which is why it is filtered out by many of the ebuilds in the tree. Using -Os is not recommended.
Thanks a lot I'll choose -02 option in the future.

edit:
I passed that problem with -O2 optimalization option. I'll report the result of the compilation here.

edit2:
At the end of compilation I've got the following log
Code:
Cleaning up ...
Done
Creating package directories...
Can't open gid_Module_Root.pl: Nie ma takiego pliku ani katalogu.
Can't open gid_Module_Langpack_Resource.pl: Nie ma takiego pliku ani katalogu.
Can't open gid_Module_Langpack_Help.pl: Nie ma takiego pliku ani katalogu.
File not packaged: ./usr/lib/pkgconfig/mono-openoffice.pc
File not packaged: ./usr/lib/openoffice/share/template/en-US/forms/resume.ott
File not packaged: ./usr/lib/openoffice/share/template/en-US/officorr/project-proposal.ott
File not packaged: ./usr/lib/openoffice/share/dict/ooo/dictionary.lst
File not packaged: ./usr/lib/openoffice/install-dict
File not packaged: ./usr/share/man/man1/oobase.1
File not packaged: ./usr/share/man/man1/ooffice.1
File not packaged: ./usr/share/man/man1/oocalc.1
File not packaged: ./usr/share/man/man1/ooweb.1
File not packaged: ./usr/share/man/man1/oofromtemplate.1
File not packaged: ./usr/share/man/man1/ooimpress.1
File not packaged: ./usr/share/man/man1/oomath.1
File not packaged: ./usr/share/man/man1/oodraw.1
File not packaged: ./usr/share/man/man1/oowriter.1
Cleaning up lists of files...
Fixing permissions...
Checking for DESTDIR inside installed files...
Packaging succeeded
make[1]: Opuszczenie katalogu `/home/gontek/zlew/src/oo_compile/openoffice.org-2.2.1/ooo-build'
# install *english* help; we can't do that later since this is in
# arch-dep and arch-indep stuff..
cd debian/tmp/pkg; \
		mkdir -p openoffice.org-help-en-us/usr/lib/openoffice/help/en; \
		for i in common calc math draw writer impress base; do \
			cp -r ./openoffice.org-$i/usr/lib/openoffice/help/en/* \
			 ./openoffice.org-help-en-us/usr/lib/openoffice/help/en && \
			if [ "$i" = "common" ]; then \
				rm -rf ./openoffice.org-$i/usr/lib/openoffice/help/en; \
			else \
				rm -rf ./openoffice.org-$i/usr/lib/openoffice/help; \
			fi; \
		done
cp: nie można wykonać stat na `./openoffice.org-common/usr/lib/openoffice/help/en/*': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na `./openoffice.org-calc/usr/lib/openoffice/help/en/*': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na `./openoffice.org-math/usr/lib/openoffice/help/en/*': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na `./openoffice.org-draw/usr/lib/openoffice/help/en/*': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na `./openoffice.org-writer/usr/lib/openoffice/help/en/*': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na `./openoffice.org-impress/usr/lib/openoffice/help/en/*': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na `./openoffice.org-base/usr/lib/openoffice/help/en/*': Nie ma takiego pliku ani katalogu
make: *** [debian/stampdir/install] Błąd 1
I know that it consists with my flag:
DEB_BUILD_OPTIONS := lang=pl
but what's wrong with that. There is a solution in the openoffice documentation debian/README:
Quote:
Changing the build behaviour with DEB_BUILD_OPTIONS
---------------------------------------------------
These options are supported:
(...)
lang=<code>
- Build only the specified language
Perhaps it should be "lang=pl en" value? And once again... 8 hours...

edit3:
I'll try compile with var:
DEB_BUILD_OPTIONS := lang=en-US,pl
because the script looks like
Code:
(...)
ifneq "$(BUILD_ONLY_EN_US)" "y"
  ifeq (lang=,$(findstring lang=,$(DEB_BUILD_OPTIONS)))
    ISOS=$(shell echo "$(DEB_BUILD_OPTIONS)," | sed -n 's/^.*lang=\([^,]*\),.*/\1/p')
    HELPISOS=$(shell echo "$(DEB_BUILD_OPTIONS)," | sed -n 's/^.*lang=\([^,]*\),.*/\1/p')
    LANGPACKISOS=$(shell echo "$(DEB_BUILD_OPTIONS)," | sed -n 's/^.*lang=\([^,]*\),.*/\1/p')
  else
    # Note that the first one here *has to be* en-US. the first one gets
    # gid_Module_Root as filelist later and the rest gid_Module_Root.$iso
    # but we can't/shouldn't do dynamic switching, so let en-US be the first
    # one to that gid_Module_Root always is english and the other langpacks
    # have gid_Module_Root.$iso
    #ISOS=$(shell ooo-build/bin/openoffice-xlate-lang -i all')
    ISOS:=en-US af as-IN be-BY bg bn br bs ca cs cy da de dz el \
        en-GB en-ZA eo es et fa fi fr ga gl gu-IN he hi-IN hr hu it ja \
        ka km ko ku lo lt lv mk ml-IN nb ne nl nn nr ns or-IN pa-IN \
        pl pt pt-BR ru rw sk sl sr-CS ss st sv \
        ta-IN te-IN tg th tn tr ts uk ve vi xh zh-CN zh-TW zu
    #HELPISOS:=$(shell ooo-build/bin/openoffice-xlate-lang -i all')
    HELPISOS:=en-US cs da de dz en-GB es et fr gl hi-IN hu it ja km ko nl \
        pl pt pt-BR ru sl sv zh-CN zh-TW
    #LANGPACKISOS:=$(shell ooo-build/bin/openoffice-xlate-lang -i all')
    LANGPACKISOS:=en-US af as-IN be-BY bg bn br bs ca cs cy da de dz el \
        en-GB en-ZA eo es et fa fi fr ga gl gu-IN he hi-IN hr hu it ja \
        ka km ko ku lo lt lv mk ml-IN nb ne nl nn nr ns or-IN pa-IN \
        pl pt pt-BR ru rw sk sl sr-CS ss st sv \
        ta-IN te-IN tg th tn tr ts uk ve vi xh zh-CN zh-TW zu
  endif
else
  ISOS=en-US
  HELPISOS=en-US
  LANGPACKISOS=en-US
endif
...

Last edited by ruppertus; 09-27-2007 at 11:17 AM.
 
Old 09-27-2007, 05:06 PM   #9
ruppertus
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Arch (used to Debian, Ubuntu)
Posts: 43

Original Poster
Rep: Reputation: 15
It looks like the:
Code:
DEB_BUILD_OPTIONS := lang=en-US pl
was needed.

It's still compiling...
 
Old 09-27-2007, 06:09 PM   #10
ruppertus
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Arch (used to Debian, Ubuntu)
Posts: 43

Original Poster
Rep: Reputation: 15
At last It works great OO start 2 sec. now
and the size all debs I need is about 110 MB.
Code:
-rw-r--r-- 1 gontek gontek   137930 2007-09-28 00:13 openoffice.org_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek  3406566 2007-09-28 00:14 openoffice.org-base_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek  4806066 2007-09-28 00:14 openoffice.org-calc_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek 14051438 2007-09-28 00:18 openoffice.org-common_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek 34185198 2007-09-28 00:14 openoffice.org-core_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek  2468526 2007-09-28 00:14 openoffice.org-draw_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek   216682 2007-09-28 00:14 openoffice.org-evolution_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek  8729618 2007-09-28 00:14 openoffice.org-filter-binfilter_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek   243576 2007-09-28 00:18 openoffice.org-filter-mobiledev_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek   212376 2007-09-28 00:14 openoffice.org-gnome_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek   318458 2007-09-28 00:14 openoffice.org-gtk_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek 12332096 2007-09-28 00:18 openoffice.org-help-pl_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek   854590 2007-09-28 00:14 openoffice.org-impress_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek  3050822 2007-09-28 00:18 openoffice.org-java-common_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek   347104 2007-09-28 00:14 openoffice.org-kde_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek  1931056 2007-09-28 00:18 openoffice.org-l10n-pl_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek   419640 2007-09-28 00:14 openoffice.org-math_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek   178050 2007-09-28 00:14 openoffice.org-officebean_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek  3357984 2007-09-28 00:18 openoffice.org-style-andromeda_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek  4143362 2007-09-28 00:18 openoffice.org-style-crystal_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek  2838460 2007-09-28 00:18 openoffice.org-style-hicontrast_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek  3613038 2007-09-28 00:18 openoffice.org-style-industrial_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek  3656280 2007-09-28 00:18 openoffice.org-style-tango_2.2.1-9_all.deb
-rw-r--r-- 1 gontek gontek  5643866 2007-09-28 00:14 openoffice.org-writer_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek   254624 2007-09-28 00:14 python-uno_2.2.1-9_i386.deb
-rw-r--r-- 1 gontek gontek   203154 2007-09-28 00:18 ttf-opensymbol_2.2.1-9_all.deb
The problem is solved.
 
  


Reply

Tags
compilation, debian, openoffice.org, source


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I can Build Debian (by source CDs no internet)? alMubarmij Debian 22 04-28-2006 04:44 AM
openoffice port build error on FreeBSD 5.3 pnayak *BSD 5 03-14-2005 10:16 PM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM


All times are GMT -5. The time now is 05:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration