Openoffice da sorgenti

Postate qui se avete consigli per migliorare i pacchetti disponibili in questo sito o se avete problemi con installazione, funzionamento o altro.

Moderatore: Staff

Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Avatar utente
diego
Linux 2.x
Linux 2.x
Messaggi: 333
Iscritto il: ven 1 apr 2005, 0:00

Re: Openoffice da sorgenti

Messaggio da diego »

Per la precisione, l'intero slackbuild lo esegue in

Codice: Seleziona tutto

real	398m58.974s
user	337m27.389s
sys	40m56.522s
su

Codice: Seleziona tutto

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 15
model		: 4
model name	: Intel(R) Xeon(TM) CPU 3.00GHz
stepping	: 10
cpu MHz		: 3000.102
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pebs bts pni monitor ds_cpl cid cx16 xtpr lahf_lm
bogomips	: 6000.20
clflush size	: 64
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 15
model		: 4
model name	: Intel(R) Xeon(TM) CPU 3.00GHz
stepping	: 10
cpu MHz		: 3000.102
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
apicid		: 1
initial apicid	: 1
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pebs bts pni monitor ds_cpl cid cx16 xtpr lahf_lm
bogomips	: 6000.64
clflush size	: 64
power management:

con 2 GB di ram, da questo computo e' escluso il tempo di download dei sorgenti (effettuato solo la prima volta)
:roll:

p.s.
la macchina non faceva altro

Avatar utente
Trotto@81
Iper Master
Iper Master
Messaggi: 3559
Iscritto il: sab 26 giu 2004, 0:00
Nome Cognome: Andrea
Slackware: Slackware64 14.2 bet
Kernel: default
Desktop: KDE 4.14.14
Località: Monasterace M. (RC)
Contatta:

Re: Openoffice da sorgenti

Messaggio da Trotto@81 »

Quasi 6 ore? :shock:

Avatar utente
diego
Linux 2.x
Linux 2.x
Messaggi: 333
Iscritto il: ven 1 apr 2005, 0:00

Re: Openoffice da sorgenti

Messaggio da diego »

Conclusione:

OOo.SlackBuild

Codice: Seleziona tutto

#!/bin/sh
# Copyright 2009 Loris Vincenzi (http://www.slacky.eu)
# All rights reserved.
#
# Heavily based on the Slackware 12.2 SlackBuild
# http://www.openoffice.org/
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

CWD=`pwd`
TMP=${TMP:-/tmp/tgz}
PKG=$TMP/package-ooo
NAME=OOo
VERSION=3.1.0
CHOST=i486
ARCH=${ARCH:-i486}
BUILD=1ld


SOURCES=$NAME-build-$VERSION
COMPONENT="binfilter core extensions l10n system testautomation"
URL=http://ooo.mirror.garr.it/mirrors/openoffice/stable/$VERSION/

#Speedup
export SMP="6"
export nodep=true
export NO_HIDS=true
		

SOURCES=""
for file in $COMPONENT
do
    SOURCES+="$NAME"_"$VERSION"_src_"$file".tar.bz2" "
done

for source in $SOURCES
do
    if [ ! -e $source ]; then
	wget -c $URL$source
	if [[ "$?" > "0" ]]
	then
	    echo -e "Sorgente $source non trovato\n"
	    exit
	fi
    fi
done

# Scarico i sorgenti di Mozilla
if [ ! -e mozilla-source-1.7.5.tar.bz2 ]; then
    wget http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/mozilla-source-1.7.5.tar.bz2
fi


if [ "$ARCH" = "i386" ]; then
  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2"
fi

if [ ! -d $TMP ]; then
 mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
 mkdir -p $PKG
fi


cd $TMP
## Scarico i Sorgenti
for source in $SOURCES
do
    if [ -e $CWD/$source ]; then
	tar xjvf $CWD/$source
	if [[ "$?" > "0" ]]
	then
	    echo -e "Sorgente $source non e' un tar.bz2\n"
	    exit
	fi
    fi
done

SOURCETGZ=`find . -type d -maxdepth 1 -exec basename {} \; | grep OOO`
cd $SOURCETGZ

(
    cd moz/download
    #echo `pwd`
    if [ ! -e mozilla-source-1.7.5.tar.bz2 ]; then
	cp $CWD/mozilla-source-1.7.5.tar.bz2 .
    fi
)

## Sistemo i Permessi
find . \( -perm 777 -o -perm 775 -o -perm 711 \) -exec chmod 755 {} \;
find . \( -perm 700 -o -perm 555 -o -perm 511 \) -exec chmod 755 {} \;
find . \( -perm 666 -o -perm 664 -o -perm 600 \) -exec chmod 644 {} \;
find . \( -perm 444 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
chown -R root:root .


if [ "$ARCH" = "x86_64" ]; then
    EXTRAOPTS="--without-stlport"
    # fix to build with SUN jdk/jre and OpenJDK
    # http://qa.openoffice.org/issues/show_bug.cgi?id=74749
    sed -i "s:lib64\/libjpeg.so:lib\/libjpeg.so:g" solenv/inc/libs.mk || exit 1
    else EXTRAOPTS="--with-stlport"
fi
                                        

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
--exec-prefix=/usr \
--datarootdir=/usr/share \
--docdir=/usr/doc/$NAME-$VERSION \
--sysconfdir=/etc \
--mandir=/usr/man \
--disable-binfilter \
--enable-cairo \
--enable-crashdump=no \
--enable-cups \
--enable-dbus \
--disable-dbgutil \
--disable-debug \
--disable-evolution2 \
--disable-gconf \
--enable-gcjaot \
--enable-gio  \
--disable-gnome-vfs \
--enable-gtk \
--disable-kde \
--enable-ldap \
--disable-lockdown \
--enable-minimizer \
--enable-neon \
--disable-odk \
--enable-ogltrans \
--enable-opengl \
--disable-pam \
--disable-pam-link \
--enable-pdfimport \
--enable-presenter-console \
--disable-qadevooo \
--enable-report-builder \
--disable-symbols \
--enable-vba \
--disable-xrender-link \
--disable-werror \
--enable-wiki-publisher \
--without-afms \
--with-agg \
--with-alloc=system \
--with-ant-home=/usr/lib/ant \
--with-build-version="$VERSION-$BUILD Slackware Built" \
--with-dict=ALL \
--with-fonts \
--without-gpc \
--with-hsqldb-jar=/usr/share/java/hsqldb.jar \
--with-installed-ooo-dirname=openoffice.org3 \
--with-java \
--with-jdk-home="/usr/lib/java" \
--with-lang="it" \
--with-lucene-analyzers-jar=/usr/share/java/lucene-analyzers-2.4.1.jar \
--with-lucene-core-jar=/usr/share/java/lucene-core-2.4.1.jar \
--with-mozilla-toolkit=gtk2 \
--without-myspell-dicts \
--without-nas \
--with-openldap \
--with-package-format=native \
--without-ppds \
--with-stlport \
--with-system-agg \
--with-system-cairo \
--with-system-curl \
--with-system-db \
--with-system-expat \
--with-system-freetype \
--with-system-hsqldb \
--with-system-icu \
--with-system-jpeg \
--with-system-libxml \
--with-system-libxslt \
--with-system-libwpd \
--with-system-lucene \
--with-system-mozilla=libxul \
--with-system-mspack \
--with-system-neon \
--with-system-openssl \
--with-system-poppler \
--with-system-python \
--with-system-redland \
--with-system-sane-header \
--with-system-sndfile \
--with-system-stdlibs \
--with-system-vigra \
--with-system-xrender-headers \
--with-system-zlib \
--with-unix-wrapper=soffice \
--with-use-shell=bash \
--with-vba-package-format="builtin" \
--with-vendor="Slacky.eu by Diego" \
--with-serializer-jar=/usr/share/java/serializer.jar \
--with-system-xalan \
--with-system-xerces \
--with-system-xml-apis \
--with-xalan-jar=/usr/share/java/xalan.jar \
--with-xerces-jar=/usr/share/java/xercesImpl.jar \
--with-xml-apis-jar=/usr/share/java/xml-apis.jar \
--without-system-beanshell \
--without-system-saxon \
--without-system-vigra \
--without-system-mozilla \
--with-x \
$EXTRAOPTS || exit 1


(
# Setup environment for build
if [ "$ARCH" = "x86_64" ]; then
    source LinuxX86-64Env.Set.sh
else 
    source LinuxX86Env.Set.sh
fi

# Build dmake utility
./bootstrap || exit 1

dmake -P${SMP} all || exit 1
)

# Copia file
cd $PKG
cp -rf $TMP/$SOURCETGZ/instsetoo_native/unxlngi6.pro/OpenOffice/native/install/it/linux-2.6-intel/buildroot/opt . || exit 1
tar xzvf $TMP/$SOURCETGZ/sysui/unxlngi6.pro/bin/desktop-integration/openoffice*.tgz || exit 1

# Icone
(
 mkdir -p $PKG/usr/share/pixmaps
 cd $PKG/opt/kde/share/icons/hicolor/48x48/apps/
 ICONS=`find . -name "*.png"`
 cd $PKG/usr/share/pixmaps
 for file in $ICONS
 do 
	linc=`basename $file`
	ln -sf /opt/kde/share/icons/hicolor/48x48/apps/$linc  $linc 
 done
)

find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded --strip-debug 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded --strip-debug 2> /dev/null

mkdir -p $PKG/usr/doc/$NAME-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
requiredbuilder -v -y -s $CWD $PKG
makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz

if [ "$1" = "--cleanup" ]; then
  rm -rf $TMP
fi
slack-desc

Codice: Seleziona tutto

# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in.  You must make
# exactly 11 lines for the formatting to be correct.  It's also customary to
# leave one space after the ':'.

   |-----handy-ruler-------------------------------------------------------|
OOo: OpenOffice.org
OOo:
OOo: E' una suite per ufficio completa, rilasciata con una licenza libera
OOo: e Open Source che ne consente la distribuzione gratuita. Legge e 
OOo: scrive file nei formati utilizzati dai prodotti più diffusi sul 
OOo: mercato e, a garanzia della futura accessibilità dei dati, nel formato
OOo: OpenDocument, standard ISO. Consente inoltre l'esportazione in formato
OOo: PDF.
OOo: 
OOo: http://www.openoffice.org/
OOo: Packager: diego @ slacky.it
e con questo ho finito.
In settimana vedo di mandare a Loris i tgz delle dipendenze (che hanno un size un po' piu' umano)
Ciao a tutti
Diego

p.s.
dimenticavo, forse a qualcuno puo' essere utile alche lo
slack-required

Codice: Seleziona tutto

agg >= 2.4-i486-3as | raptor >= 1.4.18-i486-2sl
atk >= 1.23.5-i486-1
cairo >= 1.6.4-i486-1
curl >= 7.19.4-i486-1_slack12.2
cxxlibs >= 6.0.9-i486-1 | gcc-g++ >= 4.2.4-i486-1
cyrus-sasl >= 2.1.23-i486-1_slack12.2
db44 >= 4.4.20-i486-2
dbus >= 1.2.6-i486-1
dbus-glib >= 0.78-i486-1
expat >= 2.0.1-i486-1
fontconfig >= 2.6.0-i486-2
freetype >= 2.3.7-i486-1
gcc >= 4.2.4-i486-1
glib2 >= 2.16.6-i486-2_slack12.2
glibc-solibs >= 2.7-i486-17
gmp >= 4.2.3-i486-1
gtk+2 >= 2.12.12-i486-1
icu >= 4.2.1-i486-2sl | raptor >= 1.4.18-i486-2sl
libICE >= 1.0.4-i486-1
libSM >= 1.0.3-i486-1
libX11 >= 1.1.5-i486-1
libXau >= 1.0.4-i486-1
libXaw >= 1.0.4-i486-1
libXcomposite >= 0.4.0-i486-1
libXcursor >= 1.1.9-i486-1
libXdamage >= 1.1.1-i486-1
libXdmcp >= 1.0.2-i486-1
libXext >= 1.0.4-i486-1
libXfixes >= 4.0.3-i486-1
libXi >= 1.1.3-i486-1
libXinerama >= 1.0.3-i486-1
libXmu >= 1.0.4-i486-1
libXp >= 1.0.0-i486-1
libXpm >= 3.5.7-i486-1
libXrandr >= 1.2.3-i486-1
libXrender >= 0.9.4-i486-1
libXt >= 1.0.5-i486-1
libidn >= 1.5-i486-1
libjpeg >= 6b-i486-5
libmspack >= 0.0.20060920alpha-i486-1as
libpng >= 1.2.37-i486-1_slack12.2
libwpd >= 0.8.14-i486-1
libxcb >= 1.1-i486-1
libxml2 >= 2.6.32-i486-2
libxslt >= 1.1.24-i486-1
mpfr >= 2.3.1-i486-1
neon >= 0.28.3-i486-1
net-tools >= 1.60-i486-2 | util-linux-ng >= 2.14.1-i486-1
openldap-client >= 2.3.43-i486-1
openssl >= 0.9.8i-i486-3_slack12.2 | openssl-solibs >= 0.9.8i-i486-3_slack12.2
pango >= 1.20.5-i486-1
perl >= 5.10.0-i486-1
pixman >= 0.12.0-i486-1
python >= 2.5.2-i486-4
raptor >= 1.4.18-i486-2sl
rasqal >= 0.9.16-i486-2as
redland >= 1.0.9-i486-1as
zlib >= 1.2.3-i486-2
p.p.s
per chi utilizza DM come Gnome/Kde
puo' mettere --enable-gconf e/o --enable-kde
al posto dei rispettivi --disable-*
Ultima modifica di diego il mer 12 ago 2009, 15:59, modificato 1 volta in totale.

Avatar utente
submax82
Staff
Staff
Messaggi: 3202
Iscritto il: mer 31 ago 2005, 0:00
Desktop: xfce
Distribuzione: SalixOS
Contatta:

Re: Openoffice da sorgenti

Messaggio da submax82 »

ma se riuppiamo openoffice già pacchettizzato siamo al punto di partenza, l'autobuilder è stato creato per risolvere i problemi di banda che portava quella soluzione :-k

Avatar utente
diego
Linux 2.x
Linux 2.x
Messaggi: 333
Iscritto il: ven 1 apr 2005, 0:00

Re: Openoffice da sorgenti

Messaggio da diego »

a no, ma questo SlackBuild non diventera' mai un tgz da repository ufficiale,
proprio per la dimensione, chi vuole se lo copia/modifica secondo le proprie
esigenze, quello che spero in settimana di mandare a Loris sono gli sb dei
pacchetti di contorno creati per soddisfare le dipendenze per la compilazione
di OO: trattasi per lo piu' di librerie (C/Perl) da un peso molto piu' modesto e
che spero possano comunque essere utili.
Tutto qui

Ciao

Avatar utente
submax82
Staff
Staff
Messaggi: 3202
Iscritto il: mer 31 ago 2005, 0:00
Desktop: xfce
Distribuzione: SalixOS
Contatta:

Re: Openoffice da sorgenti

Messaggio da submax82 »

ok :thumbright:

Rispondi