On 06-04-2012 22:54, Fernando de Oliveira wrote:
> --- Em sex, 6/4/12, Andrew Benton escreveu:
>
>> De: Andrew Benton
>> Assunto: Re: [blfs-dev] libreoffice-3.5.2.2 without java
>> Para: blfs-dev
>> Data: Sexta-feira, 6 de Abril de 2012, 22:44
>> On Sat, 07 Apr 2012 02:29:21 +0100
>> Fernando de Oliveira
>> wrote:
>>
>>> Andrew,
>>>
>>> Remembering a recent discussion about libreoffice and
>> java, today, when upgrading LO from 3.5.1.2 to 3.5.2.2, I
>> used --without-java (consequently, no need for
>> --without-junit - "Not relevant in the --without-java
>> case").
>>> It took almost 100 minutes and the build directory size
>> was 6.5GB, 0.2 less than previous version, where
>> --without-junit was used, but not --without-java.
>> I'm guessing you had java installed? Last time I tried
>> compiling
>> Libre-Office 3.5.1 I used --without-java and --without-junit
>> and when
>> the build failed the error message mentioned junit. I didn't
>> keep a
>> copy of the error I just deleted it all and ran away ;)
>>
>> Are you suggesting that Apache-Ant is no longer required?
> Thanks for the reply.
>
> Not any more, after reading above. I cannot run another build at this moment, 
> as two other VM's are building LO. Tomorrow, I will remove Apache-Ant from 
> LFS"7.1-svn" and check that.
>
> []s,
> Fernando

Andrew,

No need for java nor apache-ant! It was tested in LFS6.7, where I had not yet 
upgraded from 3.5.1.2, but I can rebuild in LFS"7.1-svn", if you think it is 
worth. Below, I describe (1) How java and ant were removed and (2) autogen.sh 
switches used.


1. Removing Java and Apache-Ant

This machine did not have Sun JDK nor JRE, but IcedTea.

In /etc/profile, relevant entries were commented out:

# from JUnit-4.8.1
#export CLASSPATH=$CLASSPATH:\
#/usr/share/junit-4.8.1/junit-4.8.1.jar:/usr/share/junit-4.8.1

# from Apache Ant-1.8.0
#export PATH=$PATH:/opt/ant/bin
#export ANT_HOME=/opt/ant

In /etc/profile.d, icedtea.sh was moved to /etc/profile.d/disabled/

In /opt:

# cd /opt
# mv -v ant* icedtea* jdk* tmp/

# exit

$ sudo su

Checked the environment variables

# /home/fernando/sshfs/blfs/libreoffice/libreoffice-3.5.2.2.sh

2. Switches:

      ./autogen.sh                                                \
            --prefix=/opt/$PACKAGE                                \
            --sysconfdir=/etc/libreoffice                         \
            --enable-split-app-modules                            \
            --enable-crashdump                                    \
            --enable-gtk3                                         \
            --disable-binfilter                                   \
            --disable-gnome-vfs                                   \
            --disable-gconf                                       \
            --disable-kde                                         \
            --disable-kde4                                        \
            --disable-mozilla                                     \
            --disable-odk                                         \
            --disable-systray                                     \
            --with-system-boost                                   \
            --with-system-cairo                                   \
            --with-system-curl                                    \
            --with-system-expat                                   \
            --with-system-jpeg                                    \
            --with-system-libxml                                  \
            --with-system-neon                                    \
            --with-system-openssl                                 \
            --with-system-poppler                                 \
            --with-system-stdlibs                                 \
            --with-system-zlib                                    \
            --with-build-version="3.5.2.2"                        \
            --with-lang="pt-BR en-US"                             \
            --with-max-jobs=4                                     \
            --with-num-cpus=4                                     \
            --with-package-format=native                          \
            --with-use-shell=bash                                 \
            --with-vendor="BLFS"                                  \
            --with-build-vendor="Fernando de Oliveira"            \
            --without-java                                       &&
            #Not relevant in the --without-java case:
            #--without-junit                                      &&

The switch --with-build-vendor="Fernando de Oliveira" never seems to work.

-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to