On 22/05/14 09:47, Ken Moffat wrote:
> When I first started to use libreoffice I think the book mentioned
> about saving the "non-optional" downloads that it does at the start
> of 'make', such as
> 0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
> and
> libvisio-0.0.31.tar.bz2
> with 4.2.3.3 and my current config settings.
>
> Sometime, perhaps when the build system was overhauled, that fell
> out.
>
> Alternatively, maybe I'm imagining that it was ever in the book,
> and _I_ dropped it from my scripts because I could not immediately
> see how to apply it after things had changed.
>
> Anyway, my downloads are now fast-enough and re-downloading these
> files on every build is not going to cause me any trouble. Except,
> it has now twice broken my builds because dev-www.libreoffice.org
> sometimes disappears in the small hours (British time). The second
> time was earlier this week : I got up in the small hours, checked
> the build and found it had halted because of a typo I had made when
> I altered my script to better match the current book.
>
> Fixed that, the next 3 attempts failed because that site was not
> responding. Waited a bit, tried pinging it, no packets returned.
> Tried again at about 08:30 British time, still no response. Tried
> again some hours later, it was back and I was able to procede.
>
> While it was building I thought about this and decided to try
> copying the downloads, and then restoring them on the next build.
> Tonight I'm now running my next build and it didn't do any downloads
> ;-) src/fetch.log just has one line:
> Wed 21 May 23:47:32 BST 2014
> whereas the first fetch.log has 343 lines for about 30 downloads,
> and 'make' is now building it.
>
> What I have is :
>
> 1. Before 'make build', if the directory with the downloads exists
> locally, [ /sources/libreoffice-W.X.Y.Z-downloads for me ]
>
> cp -v /path/to/directory/* src
> rm -vf src/fetch.log
>
> 2. after 'make build', if that direcotry does NOT exist
>
> mkdir -pv /path/to/directory
> DOWNLOADS=$(ls /scratch/working/libreoffice-4.2.3.3/src/ \
> | grep -v libreoffice | grep -v tmp)
> cp -v $DOWNLOADS /path/to/directory
>
> I actually call this variable KM_DOWNLOADS, to put it in a KM_
> namespace so that it doesn't interfere with the build (I had a lot
> of grief with bison when that started to use a variable name I was
> setting in my script). The book doesn't do scripts for most
> packages, so I guess something like downloads= ... unset downloads
> would be fine.
>
> I hope this is useful to someone who has the same issue, but I
> guess that many users only build a version once. I suppose some
> people might have download caps, or slowness. I'm fairly sure
> that it might break if you rebuild the same version but with a
> different set of autogen options.
>
> So, is it worth adding this to the LO page ?
>
> ĸen
>
I used to do a similar thing to what you mentioned but using a single
tarball rather than a directory for all the source files.
I now preload everything before a build. I have a
--disable-fetch-external switch which makes sure that there are no
unexpected on the fly downloads. This way a build will not fail due to
an internet/network problem. I've attached my build file which will give
you an idea on the process.
Wayne.
<build>
<package>
<name>libreoffice</name>
<version>4.2.3.3</version>
<download>
<file>
<name>libreoffice-4.2.3.3.tar.xz</name>
<md5sum>0347f2c919e809b3f3794ed509caa902</md5sum>
<location>http://download.documentfoundation.org/libreoffice/src/4.2.3</location>
</file>
<file>
<name>libreoffice-dictionaries-4.2.3.3.tar.xz</name>
<md5sum>f031b9ce64498cd14e07454fb3df5401</md5sum>
<location>http://download.documentfoundation.org/libreoffice/src/4.2.3</location>
</file>
<file>
<name>libreoffice-help-4.2.3.3.tar.xz</name>
<md5sum>fa82b4c4510c78fe22a3a56d53fb9752</md5sum>
<location>http://download.documentfoundation.org/libreoffice/src/4.2.3</location>
</file>
<file>
<name>libreoffice-translations-4.2.3.3.tar.xz</name>
<md5sum>81759541de9ce626a02d652399cd1ffe</md5sum>
<location>http://download.documentfoundation.org/libreoffice/src/4.2.3</location>
</file>
<file>
<name>1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz</name>
<md5sum>1756c4fa6c616ae15973c104cd8cb256</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz</name>
<md5sum>1f24ab1d39f4a51faf22244c94a6203f</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>368f114c078f94214a308a74c7e991bc-crosextrafonts-20130214.tar.gz</name>
<md5sum>368f114c078f94214a308a74c7e991bc</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>c74b7223abe75949b4af367942d96c7a-crosextrafonts-carlito-20130920.tar.gz</name>
<md5sum>c74b7223abe75949b4af367942d96c7a</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>f872f4ac066433d8ff92f5e316b36ff9-dejavu-fonts-ttf-2.33.zip</name>
<md5sum>f872f4ac066433d8ff92f5e316b36ff9</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip</name>
<md5sum>35efabc239af896dfb79be7ebdd6e6b9</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>5c781723a0d9ed6188960defba8e91cf-liberation-fonts-ttf-2.00.1.tar.gz</name>
<md5sum>5c781723a0d9ed6188960defba8e91cf</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>b3174b11c2b6a341f5c99b31088bd67b-liberation-fonts-ttf-1.07.3.tar.gz</name>
<md5sum>b3174b11c2b6a341f5c99b31088bd67b</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>e7a384790b13c29113e22e596ade9687-LinLibertineG-20120116.zip</name>
<md5sum>e7a384790b13c29113e22e596ade9687</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>7a15edea7d415ac5150ea403e27401fd-open-sans-font-ttf-1.10.tar.gz</name>
<md5sum>7a15edea7d415ac5150ea403e27401fd</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>c3c1a8ba7452950636e871d25020ce0d-pt-serif-font-1.0000W.tar.gz</name>
<md5sum>c3c1a8ba7452950636e871d25020ce0d</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>0279a21fab6f245e85a6f85fea54f511-source-code-font-1.009.tar.gz</name>
<md5sum>0279a21fab6f245e85a6f85fea54f511</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
<file>
<name>1e9ddfe25ac9577da709d7b2ea36f939-source-sans-font-1.036.tar.gz</name>
<md5sum>1e9ddfe25ac9577da709d7b2ea36f939</md5sum>
<location>http://dev-www.libreoffice.org/src</location>
</file>
</download>
<dependency>
<required>Archive-Zip</required>
<required>bison</required>
<required>boost</required>
<required>cairo</required>
<required>clucene</required>
<required>coreutils</required>
<required>cppunit</required>
<required>curl</required>
<required>expat</required>
<required>findutils</required>
<required>flex</required>
<required>fontconfig</required>
<required>freetype</required>
<required>gettext</required>
<required>gperf</required>
<required>graphite2</required>
<required>harfbuzz</required>
<required>hunspell</required>
<required>hyphen</required>
<required>icu</required>
<required>intltool</required>
<required>lcms</required>
<required>libXinerama</required>
<required>libXrandr</required>
<required>libXrender</required>
<required>libXt</required>
<required>libXtst</required>
<required>libabw</required>
<required>libatomic_ops</required>
<required>libcdr</required>
<required>libcmis</required>
<required>libebook</required>
<required>libetonyek</required>
<required>libexttextcat</required>
<required>libfreehand</required>
<required>libjpeg-turbo</required>
<required>liblangtag</required>
<required>libmspub</required>
<required>libmwaw</required>
<required>libodfgen</required>
<required>liborcus</required>
<required>libpng</required>
<required>libvisio</required>
<required>libwpd</required>
<required>libwpg</required>
<required>libwps</required>
<required>libxml2</required>
<required>libxslt</required>
<required>lpsolve</required>
<required>make</required>
<required>mdds</required>
<required>mythes</required>
<required>npapi-sdk</required>
<required>nspr</required>
<required>nss</required>
<required>openldap</required>
<required>openssl</required>
<required>perl</required>
<required>pkgconfig</required>
<required>poppler</required>
<required>randrproto</required>
<required>redland</required>
<required>ucpp</required>
<required>unzip</required>
<required source="self">vigra</required>
<required>xextproto</required>
<required>xineramaproto</required>
<required>xproto</required>
<required>zip</required>
<required>zlib</required>
<optional>bluez</optional>
<recommended source="blfs">cups</recommended>
<optional>dbus-glib</optional>
<optional>evolution-data-server</optional>
<optional>gconf</optional>
<optional>gdk-pixbuf</optional>
<optional>glib</optional>
<recommended source="blfs">glu</recommended>
<optional>gst-plugins-base</optional>
<optional>gstreamer</optional>
<optional>gtk+</optional>
<optional>jdk</optional>
<optional>mesa</optional>
<recommended source="blfs">neon</recommended>
<optional>telepathy-glib</optional>
<recommended source="blfs">python</recommended>
</dependency>
<installation>
<command>install -dm755 src</command>
<command>tar -xf ../libreoffice-dictionaries-4.2.3.3.tar.xz --no-overwrite-dir --strip-components=1</command>
<command>tar -xf ../libreoffice-help-4.2.3.3.tar.xz --no-overwrite-dir --strip-components=1</command>
<command>tar -xf ../libreoffice-translations-4.2.3.3.tar.xz --no-overwrite-dir --strip-components=1</command>
<command>ln -sv ../../libreoffice-dictionaries-4.2.3.3.tar.xz src/</command>
<command>ln -sv ../../libreoffice-help-4.2.3.3.tar.xz src/</command>
<command>ln -sv ../../libreoffice-translations-4.2.3.3.tar.xz src/</command>
<command>ln -sv ../../1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz src/</command>
<command>ln -sv ../../1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz src/</command>
<command>ln -sv ../../368f114c078f94214a308a74c7e991bc-crosextrafonts-20130214.tar.gz src/</command>
<command>ln -sv ../../c74b7223abe75949b4af367942d96c7a-crosextrafonts-carlito-20130920.tar.gz src/</command>
<command>ln -sv ../../f872f4ac066433d8ff92f5e316b36ff9-dejavu-fonts-ttf-2.33.zip src/</command>
<command>ln -sv ../../35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip src/</command>
<command>ln -sv ../../5c781723a0d9ed6188960defba8e91cf-liberation-fonts-ttf-2.00.1.tar.gz src/</command>
<command>ln -sv ../../b3174b11c2b6a341f5c99b31088bd67b-liberation-fonts-ttf-1.07.3.tar.gz src/</command>
<command>ln -sv ../../e7a384790b13c29113e22e596ade9687-LinLibertineG-20120116.zip src/</command>
<command>ln -sv ../../7a15edea7d415ac5150ea403e27401fd-open-sans-font-ttf-1.10.tar.gz src/</command>
<command>ln -sv ../../c3c1a8ba7452950636e871d25020ce0d-pt-serif-font-1.0000W.tar.gz src/</command>
<command>ln -sv ../../0279a21fab6f245e85a6f85fea54f511-source-code-font-1.009.tar.gz src/</command>
<command>ln -sv ../../1e9ddfe25ac9577da709d7b2ea36f939-source-sans-font-1.036.tar.gz src/</command>
<command>sed -e "/gzip -f/d" \
-e "s|.1.gz|.1|g" \
-i bin/distro-install-desktop-integration</command>
<command>sed -e "/distro-install-file-lists/d" -i Makefile.in</command>
<command>chmod +x bin/unpack-sources</command>
<command>sed -e "s/target\.mk/langlist\.mk/" \
-e "s/tar -xf/tar -x --strip-components=1 -f/" \
-e "/tar -x/s/lo_src_dir/start_dir/" \
-i bin/unpack-sources</command>
<autogen>
<parameter type="recommended">--prefix=/usr</parameter>
<parameter type="recommended">--sysconfdir=/etc</parameter>
<parameter type="recommended">--with-vendor="BLFS"</parameter>
<parameter type="recommended">--with-lang="en-GB en-US"</parameter>
<parameter type="recommended">--with-help</parameter>
<parameter type="recommended">--with-alloc=system</parameter>
<parameter type="recommended">--without-java</parameter>
<parameter condition="!gconf" type="optional">--disable-gconf</parameter>
<parameter type="recommended">--disable-odk</parameter>
<parameter type="recommended">--disable-postgresql-sdbc</parameter>
<parameter type="recommended">--enable-release-build=yes</parameter>
<parameter condition="python" type="optional">--enable-python=system</parameter>
<parameter condition="boost" type="optional">--with-system-boost</parameter>
<parameter condition="clucene" type="optional">--with-system-clucene</parameter>
<parameter condition="cairo" type="optional">--with-system-cairo</parameter>
<parameter condition="curl" type="optional">--with-system-curl</parameter>
<parameter condition="expat" type="optional">--with-system-expat</parameter>
<parameter condition="graphite2" type="optional">--with-system-graphite</parameter>
<parameter condition="harfbuzz" type="optional">--with-system-harfbuzz</parameter>
<parameter condition="icu" type="optional">--with-system-icu</parameter>
<parameter condition="libjpeg-turbo" type="optional">--with-system-jpeg</parameter>
<parameter condition="lcms" type="optional">--with-system-lcms2</parameter>
<parameter condition="libpng" type="optional">--with-system-libpng</parameter>
<parameter condition="libxml2" type="optional">--with-system-libxml</parameter>
<parameter type="recommended">--with-system-mesa-headers</parameter>
<parameter condition="neon" type="optional">--with-system-neon</parameter>
<parameter condition="npapi-sdk" type="optional">--with-system-npapi-headers</parameter>
<parameter condition="nss" type="optional">--with-system-nss</parameter>
<parameter condition="unixODBC" type="optional">--with-system-odbc</parameter>
<parameter condition="openldap" type="optional">--with-system-openldap</parameter>
<parameter condition="openssl" type="optional">--with-system-openssl</parameter>
<parameter condition="poppler" type="optional">--with-system-poppler</parameter>
<parameter condition="redland" type="optional">--with-system-redland</parameter>
<parameter type="recommended">--with-system-zlib</parameter>
<parameter type="recommended">--with-parallelism=$(getconf _NPROCESSORS_ONLN)</parameter>
<parameter type="recommended">--disable-firebird-sdbc</parameter>
<parameter type="recommended">--disable-gnome-vfs</parameter>
<parameter type="recommended">--disable-gstreamer-0.10</parameter>
<parameter type="recommended">--disable-gtk</parameter>
<parameter condition="gtk+" type="optional">--enable-gtk3</parameter>
<parameter condition="gst-plugins-base" type="optional">--enable-gstreamer</parameter>
<parameter condition="hyphen" type="optional">--with-system-altlinuxhyph</parameter>
<parameter condition="cppunit" type="optional">--with-system-cppunit</parameter>
<parameter condition="hunspell" type="optional">--with-system-hunspell</parameter>
<parameter condition="libabw" type="optional">--with-system-libabw</parameter>
<parameter condition="libcdr" type="optional">--with-system-libcdr</parameter>
<parameter condition="libcmis" type="optional">--with-system-libcmis</parameter>
<parameter condition="libebook" type="optional">--with-system-libebook</parameter>
<parameter condition="libetonyek" type="optional">--with-system-libetonyek</parameter>
<parameter condition="libexttextcat" type="optional">--with-system-libexttextcat</parameter>
<parameter condition="libfreehand" type="optional">--with-system-libfreehand</parameter>
<parameter condition="liblangtag" type="optional">--with-system-liblangtag</parameter>
<parameter condition="libmspub" type="optional">--with-system-libmspub</parameter>
<parameter condition="libmwaw" type="optional">--with-system-libmwaw</parameter>
<parameter condition="libodfgen" type="optional">--with-system-libodfgen</parameter>
<parameter condition="liborcus" type="optional">--with-system-orcus</parameter>
<parameter condition="libwpd" type="optional">--with-system-libwpd</parameter>
<parameter condition="libwpg" type="optional">--with-system-libwpg</parameter>
<parameter condition="libwps" type="optional">--with-system-libwps</parameter>
<parameter condition="lpsolve" type="optional">--with-system-lpsolve</parameter>
<parameter condition="mdds" type="optional">--with-system-mdds</parameter>
<parameter condition="mythes" type="optional">--with-system-mythes</parameter>
<parameter condition="ucpp" type="optional">--with-system-ucpp</parameter>
<parameter condition="vigra" type="optional">--with-system-vigra</parameter>
<parameter condition="libvisio" type="optional">--with-system-libvisio</parameter>
<parameter type="recommended">--disable-fetch-external</parameter>
</autogen>
<command>make build</command>
<command user="root">make distro-pack-install</command>
<command user="root">chown -cR 0:0 dictionaries/</command>
<command user="root">mkdir -pv /usr/lib/libreoffice/share/extensions/dict-en</command>
<command user="root">cp -vR dictionaries/en/* /usr/lib/libreoffice/share/extensions/dict-en</command>
</installation>
</package>
</build>
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page