diff options
44 files changed, 325 insertions, 265 deletions
diff --git a/recipe.d/0001-cpio b/recipe.d/0001-cpio new file mode 100644 index 0000000..8ef2d54 --- /dev/null +++ b/recipe.d/0001-cpio @@ -0,0 +1,6 @@ + mcd $BUILDDIR/$1 + $SRC/${1}-*/configure $TCONFIGARGS + notparallel + make $J + make $J install + diff --git a/recipe.d/0002-ncurses b/recipe.d/0002-ncurses new file mode 100644 index 0000000..767b582 --- /dev/null +++ b/recipe.d/0002-ncurses @@ -0,0 +1,13 @@ + mcd $BUILDDIR/ncurses + $SRC/ncurses-*/configure $TCONFIGARGS \ + --with-shared --without-ada --with-ospeed=unsigned \ + --enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \ + --enable-overwrite \ + --enable-pc-files \ + --with-termlib=tinfo \ + --with-chtype=long \ + --with-ticlib + notparallel + make $J + make $J install + diff --git a/recipe.d/0003-m4 b/recipe.d/0003-m4 new file mode 100644 index 0000000..23f1b3d --- /dev/null +++ b/recipe.d/0003-m4 @@ -0,0 +1,5 @@ + mcd $BUILDDIR/m4 + $SRC/m4-*/configure $TCONFIGARGS + make $J -k + make $J -k install + diff --git a/recipe.d/0004-flex b/recipe.d/0004-flex new file mode 100644 index 0000000..56df525 --- /dev/null +++ b/recipe.d/0004-flex @@ -0,0 +1,5 @@ + mcd $BUILDDIR/flex + $SRC/flex-*/configure $TCONFIGARGS --disable-dependency-tracking + make $J -k + make $J -k install + diff --git a/recipe.d/0005-bison b/recipe.d/0005-bison new file mode 100644 index 0000000..f5b4773 --- /dev/null +++ b/recipe.d/0005-bison @@ -0,0 +1,5 @@ + mcd $BUILDDIR/bison + $SRC/bison-*/configure $TCONFIGARGS + make $J -k + make $J -k install + diff --git a/recipe.d/0006-texinfo b/recipe.d/0006-texinfo new file mode 100644 index 0000000..d42fd72 --- /dev/null +++ b/recipe.d/0006-texinfo @@ -0,0 +1,5 @@ + mcd $BUILDDIR/texinfo + $SRC/texinfo-*/configure $TCONFIGARGS + make $J -k + make $J -k install + diff --git a/recipe.d/0007-gdb b/recipe.d/0007-gdb new file mode 100644 index 0000000..7be409b --- /dev/null +++ b/recipe.d/0007-gdb @@ -0,0 +1,6 @@ + mcd $BUILDDIR/gdb + $SRC/gdb-*/configure $TCONFIGARGS --without-rpm + notparallel + make $J -k + make $J -k install + diff --git a/recipe.d/0008-curl b/recipe.d/0008-curl new file mode 100644 index 0000000..12d95ae --- /dev/null +++ b/recipe.d/0008-curl @@ -0,0 +1,5 @@ + mcd $BUILDDIR/curl + $SRC/curl-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0009-nspr b/recipe.d/0009-nspr new file mode 100644 index 0000000..d1bc7ce --- /dev/null +++ b/recipe.d/0009-nspr @@ -0,0 +1,5 @@ + mcd $BUILDDIR/nspr + $SRC/nspr-*/mozilla/nsprpub/configure $TCONFIGARGS --enable-thumb2 + make $J + make $J install + diff --git a/recipe.d/0010-pcre b/recipe.d/0010-pcre new file mode 100644 index 0000000..9ef89ef --- /dev/null +++ b/recipe.d/0010-pcre @@ -0,0 +1,5 @@ + mcd $BUILDDIR/pcre + $SRC/pcre-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0011-readline b/recipe.d/0011-readline new file mode 100644 index 0000000..ed2f513 --- /dev/null +++ b/recipe.d/0011-readline @@ -0,0 +1,5 @@ + mcd $BUILDDIR/readline + $SRC/readline-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0012-chkconfig b/recipe.d/0012-chkconfig new file mode 100644 index 0000000..a423cbe --- /dev/null +++ b/recipe.d/0012-chkconfig @@ -0,0 +1,5 @@ + mcd $BUILDDIR/pth + #$SRC/${1}-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0013-sqlite b/recipe.d/0013-sqlite new file mode 100644 index 0000000..e3af038 --- /dev/null +++ b/recipe.d/0013-sqlite @@ -0,0 +1,22 @@ + ##################################################### + # sqlite is choking on sqlite_int64 definition + ##################################################### + mcd $BUILDDIR/sqlite + export CFLAGS="$RPM_OPT_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -Wall -fno-strict-aliasing" + $SRC/sqlite-*/configure --disable-tcl --enable-threadsafe --enable-threads-override-locks --enable-load-extension $TCONFIGARGS + # the compile would fail here, so on a host you need to run + # tclsh ../../rpmbuild/BUILD/sqlite-src-3070500/tool/mksqlite3h.tcl ../../rpmbuild/BUILD/sqlite-src-3070500 > sqlite3.h + cp ../../rpmbuild/BUILD/sqlite-src-*/sqlite3.h.stage1 sqlite3.h + + # Also possibly add -ldl to TLIB in the Makefile + if egrep '^TLIBS.*ldl' Makefile > /dev/null + then + true + else + sed 's/^\(TLIBS = .*\)/\1 -ldl/' Makefile > Makefile.stage2 + mv Makefile.stage2 Makefile + fi + + make $J + make $J install + diff --git a/recipe.d/0014-gdbm b/recipe.d/0014-gdbm new file mode 100644 index 0000000..3ebe358 --- /dev/null +++ b/recipe.d/0014-gdbm @@ -0,0 +1,6 @@ + mcd $BUILDDIR/gdbm + echo "Current in: $PWD" + $SRC/${1}-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0016-pth b/recipe.d/0016-pth new file mode 100644 index 0000000..762f780 --- /dev/null +++ b/recipe.d/0016-pth @@ -0,0 +1,5 @@ + mcd $BUILDDIR/pth + $SRC/${1}-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0017-libtool b/recipe.d/0017-libtool new file mode 100644 index 0000000..8f0591a --- /dev/null +++ b/recipe.d/0017-libtool @@ -0,0 +1,5 @@ + mcd $BUILDDIR/libtool + $SRC/libtool-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0018-db4 b/recipe.d/0018-db4 new file mode 100644 index 0000000..4b35df2 --- /dev/null +++ b/recipe.d/0018-db4 @@ -0,0 +1,5 @@ + mcd $BUILDDIR/db4 + $SRC/db-*/dist/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0019-perl b/recipe.d/0019-perl new file mode 100644 index 0000000..2505a78 --- /dev/null +++ b/recipe.d/0019-perl @@ -0,0 +1,6 @@ + mcd $BUILDDIR/perl + cd $SRC/perl-* + sh $SRC/perl-*/Configure -des -Dprefix=/usr -DDEBUGGING=-g -Dcc=gcc -Dmyhostname=localhost -Dperladmin=root@localhost -Duseshrplib -Dusethreads -Duseithreads -Uusedtrace -Duselargefiles -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto + make + make install + diff --git a/recipe.d/0020-openssl b/recipe.d/0020-openssl new file mode 100644 index 0000000..a8379c1 --- /dev/null +++ b/recipe.d/0020-openssl @@ -0,0 +1,8 @@ + mcd $BUILDDIR/openssl + cd $SRC/openssl-* + ./Configure --prefix=/usr --openssldir=/etc/pki/tls zlib enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 no-idea no-mdc2 no-rc5 no-ec no-ecdh no-ecdsa shared linux-generic32 + make depend + make all + make rehash + make install + diff --git a/recipe.d/0021-gettext b/recipe.d/0021-gettext new file mode 100644 index 0000000..c4128a0 --- /dev/null +++ b/recipe.d/0021-gettext @@ -0,0 +1,5 @@ + mcd $BUILDDIR/gettext + $SRC/gettext-*/configure $TCONFIGARGS --disable-static --enable-shared --with-pic-=yes --disable-csharp --disable-rpath + make $J + make $J install + diff --git a/recipe.d/0022-popt b/recipe.d/0022-popt new file mode 100644 index 0000000..18cccaf --- /dev/null +++ b/recipe.d/0022-popt @@ -0,0 +1,5 @@ + mcd $BUILDDIR/popt + $SRC/popt-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/0023-glib2 b/recipe.d/0023-glib2 new file mode 100644 index 0000000..750d709 --- /dev/null +++ b/recipe.d/0023-glib2 @@ -0,0 +1,7 @@ + mcd $BUILDDIR/glib2 + # glib2 expects --enable-threads=yes to enable threads, + # anything else disables threads + $SRC/glib-*/configure `echo $TCONFIGARGS | sed 's/posix/yes/'` --enable-static + make $J + make $J install + diff --git a/recipe.d/0024-pkgconfig b/recipe.d/0024-pkgconfig new file mode 100644 index 0000000..863e66d --- /dev/null +++ b/recipe.d/0024-pkgconfig @@ -0,0 +1,5 @@ + mcd $BUILDDIR/pkg-config + $SRC/pkg-config-*/configure $TCONFIGARGS --disable-shared --with-installed-glib --with-installed-popt + make $J + make $J install + diff --git a/recipe.d/0025-nss b/recipe.d/0025-nss new file mode 100644 index 0000000..19b631d --- /dev/null +++ b/recipe.d/0025-nss @@ -0,0 +1,37 @@ + ######################################################## + # needs perl + ######################################################## + mcd $BUILDDIR/nss + BUILD_OPT=1 + export BUILD_OPT + PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 + PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 + + export PKG_CONFIG_ALLOW_SYSTEM_LIBS + export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS + NSPR_INCLUDE_DIR=/usr/include/nspr + NSPR_LIB_DIR=/usr/lib + export NSPR_INCLUDE_DIR + export NSPR_LIB_DIR + NSS_USE_SYSTEM_SQLITE=1 + export NSS_USE_SYSTEM_SQLITE + make -C $SRC/${1}-3.12.10/mozilla/security/coreconf + make -C $SRC/${1}-3.12.10/mozilla/security/dbm + make -C $SRC/${1}-3.12.10/mozilla/security/nss + cd $SRC/${1}-3.12.10/mozilla/security/coreconf + make install + cd $SRC/${1}-3.12.10/mozilla/security/dbm + make install + cd $SRC/${1}-3.12.10/mozilla/security/nss + make install + # Copy the binary libraries we want + cd $SRC/${1}-3.12.10 + for file in libnss3.so libnssckbi.so libnsspem.so libnsssysinit.so libsmime3.so libssl3.so libnssutil3.so libnssdbm3.chk libfreebl3.chk libfreebl3.so libnssdbm3.so libsoftokn3.chk libsoftokn3.so + do + install -p -m 755 mozilla/dist/*.OBJ/lib/$file /usr/lib/ + done + # Copy the include files we want + for file in $SRC/nss-*/mozilla/dist/public/nss/*.h + do + install -p -m 644 $file /usr/include/nss3/ + done diff --git a/recipe.d/0026-elfutils b/recipe.d/0026-elfutils new file mode 100644 index 0000000..3c3bf46 --- /dev/null +++ b/recipe.d/0026-elfutils @@ -0,0 +1,4 @@ + mcd $BUILDDIR/elfutils + $SRC/elfutils-*/configure $TCONFIGARGS --program-prefix=eu- + make $J + make $J install diff --git a/recipe.d/0026-rsync b/recipe.d/0026-rsync new file mode 100755 index 0000000..785adab --- /dev/null +++ b/recipe.d/0026-rsync @@ -0,0 +1,4 @@ +cd $SRC/rsync-* +./configure $TCONFIGARGS +make $J +make $J install diff --git a/recipe.d/0027-fakechroot b/recipe.d/0027-fakechroot new file mode 100644 index 0000000..09bbfde --- /dev/null +++ b/recipe.d/0027-fakechroot @@ -0,0 +1,6 @@ + mcd $BUILDDIR/fakechroot + $SRC/fakechroot-*/configure $TCONFIGARGS \ + --disable-dependency-tracking \ + --disable-static + make $J + make $J install diff --git a/recipe.d/0030-file b/recipe.d/0030-file new file mode 100755 index 0000000..477096d --- /dev/null +++ b/recipe.d/0030-file @@ -0,0 +1,4 @@ +cd $SRC/${1}-* +./configure $TCONFIGARGS +make $J +make install diff --git a/recipe.d/0031-ustr b/recipe.d/0031-ustr new file mode 100755 index 0000000..bbf1738 --- /dev/null +++ b/recipe.d/0031-ustr @@ -0,0 +1,5 @@ +cd $SRC/$1-* +make $J CC=gcc +make $J CC=gcc all-shared +make $J CC=gcc install + diff --git a/recipe.d/0033-libusb b/recipe.d/0033-libusb new file mode 100755 index 0000000..477096d --- /dev/null +++ b/recipe.d/0033-libusb @@ -0,0 +1,4 @@ +cd $SRC/${1}-* +./configure $TCONFIGARGS +make $J +make install diff --git a/recipe.d/0034-tzdata b/recipe.d/0034-tzdata new file mode 100755 index 0000000..f9f8056 --- /dev/null +++ b/recipe.d/0034-tzdata @@ -0,0 +1,7 @@ +# +# Note: java tzdata is not built (unlike tzdata.spec) +# +cd $SRC/$1 +make $J +make $J install + diff --git a/recipe.d/0035-redhat-rpm-config b/recipe.d/0035-redhat-rpm-config new file mode 100644 index 0000000..13d783e --- /dev/null +++ b/recipe.d/0035-redhat-rpm-config @@ -0,0 +1,3 @@ + cd $SRC/redhat-rpm-config-* + make install + cp -p /usr/share/libtool/config/config.{guess,sub} /usr/lib/rpm/redhat/ diff --git a/recipe.d/0036-rpm b/recipe.d/0036-rpm new file mode 100644 index 0000000..7405771 --- /dev/null +++ b/recipe.d/0036-rpm @@ -0,0 +1,22 @@ + mcd $BUILDDIR/rpm + $SRC/rpm-*/configure $TCONFIGARGS \ + --build=armv7hl-redhat-linux-gnueabi \ + --host=armv7hl-redhat-linux-gnueabi \ + --target=armv7hl-redhat-linux-gnueabi \ + CPPFLAGS="-I/usr/include/nspr -I/usr/include/nss3" \ + --libdir=/usr/lib \ + --with-external-db \ + --disable-static \ + --without-lua + make $J + make $J install + mkdir -p /etc/rpm + mkdir -p /var/lib/rpm + for dbi in \ + Basenames Conflictname Dirnames Group Installtid Name Obsoletename \ + Packages Providename Requirename Triggername Sha1header Sigmd5 \ + __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \ + __db.008 __db.009 + do + touch /var/lib/rpm/$dbi + done diff --git a/recipe.d/0100-ccache b/recipe.d/0100-ccache new file mode 100644 index 0000000..f652995 --- /dev/null +++ b/recipe.d/0100-ccache @@ -0,0 +1,4 @@ + mcd $BUILDDIR/ccache + $SRC/ccache-*/configure $TCONFIGARGS + make $J + make $J install diff --git a/recipe.d/0101-cracklib b/recipe.d/0101-cracklib new file mode 100644 index 0000000..53ae6ce --- /dev/null +++ b/recipe.d/0101-cracklib @@ -0,0 +1,4 @@ + mcd $BUILDDIR/cracklib + $SRC/cracklib-*/configure $TCONFIGARGS + make $J + make $J install diff --git a/recipe.d/0102-pam b/recipe.d/0102-pam new file mode 100644 index 0000000..4b1e00e --- /dev/null +++ b/recipe.d/0102-pam @@ -0,0 +1,12 @@ + # FIXME: this possibly has a problem with pam_faillock.8 + # not sure if configure would re-generate that warning at this point + mcd $BUILDDIR/pam + rsync -av $SRC/Linux-PAM-*/ ./ + ./configure \ + --libdir=/lib \ + --includedir=/usr/include/security \ + --disable-prelude \ + --disable-selinux \ + --disable-audit + make $J + make $J install diff --git a/recipe.d/0103-shadow b/recipe.d/0103-shadow new file mode 100644 index 0000000..7cef382 --- /dev/null +++ b/recipe.d/0103-shadow @@ -0,0 +1,4 @@ + mcd $BUILDDIR/shadow + $SRC/shadow-*/configure $TCONFIGARGS + make $J + make $J install diff --git a/recipe.d/0104-strace b/recipe.d/0104-strace new file mode 100644 index 0000000..c755d60 --- /dev/null +++ b/recipe.d/0104-strace @@ -0,0 +1,4 @@ + mcd $BUILDDIR/strace + $SRC/strace-*/configure $TCONFIGARGS + make $J + make $J install diff --git a/recipe.d/0105-util-linux b/recipe.d/0105-util-linux new file mode 100644 index 0000000..c755d60 --- /dev/null +++ b/recipe.d/0105-util-linux @@ -0,0 +1,4 @@ + mcd $BUILDDIR/strace + $SRC/strace-*/configure $TCONFIGARGS + make $J + make $J install diff --git a/recipe.d/0106-libxcb b/recipe.d/0106-libxcb new file mode 100644 index 0000000..5108bc1 --- /dev/null +++ b/recipe.d/0106-libxcb @@ -0,0 +1,4 @@ + mcd $BUILDDIR/libxcb + $SRC/libxcb-*/configure $TCONFIGARGS + make $J + make $J install diff --git a/recipe.d/XXXX-audit b/recipe.d/XXXX-audit new file mode 100755 index 0000000..6aa2091 --- /dev/null +++ b/recipe.d/XXXX-audit @@ -0,0 +1,9 @@ + ####################################################### + # needs: libprelude, libcap, openldap, python, + # tcp_wrappers, swig + ####################################################### + mcd $BUILDDIR/audit + $SRC/audit-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/XXXX-gnupg b/recipe.d/XXXX-gnupg new file mode 100644 index 0000000..ef22072 --- /dev/null +++ b/recipe.d/XXXX-gnupg @@ -0,0 +1,8 @@ + ####################################################### + # needs libgpg-error, libgcrypt, libassuan, libksba + ####################################################### + mcd $BUILDDIR/gnupg2 + $SRC/${1}-*/configure $TCONFIGARGS + make $J + make $J install + diff --git a/recipe.d/XXXX-rpm b/recipe.d/XXXX-rpm new file mode 100644 index 0000000..3265bcf --- /dev/null +++ b/recipe.d/XXXX-rpm @@ -0,0 +1,6 @@ + mcd $BUILDDIR/rpm + $SRC/${1}-*/configure $TCONFIGARGS + notparallel + make $J + make $J install + @@ -52,6 +52,8 @@ # # ------------------------------------------------------------ +#set -vx + TOP=/stage2 MYDIR=${0%/*} STAGE2=$MYDIR/stage2 @@ -91,6 +93,7 @@ then mknod /dev/ttyO1 c 253 1 mknod /dev/ttyO2 c 253 2 mknod /dev/ttyO3 c 253 3 + chmod a+rw /dev/null /dev/zero fi if [ ! -d /tmp ] @@ -141,42 +144,15 @@ case "$1" in "" ) go clean - # Keep these in the order in which they must be built. You - # will thus normally add new packages to the end of the list. - - go cpio - go ncurses - go m4 - go flex - go bison - go texinfo - go gdb - - go curl - go nspr - go pcre - go readline - - go chkconfig - go sqlite - go gdbm - go gawk - go pth - go libtool - go db4 - go perl - go openssl - go gettext - go popt - go glib2 - go pkgconfig - go nss + # build recipes are now in /stage2/recipe.d/ + # enabled recipes start with [0-9]{4}- + # disabled recipes start with XXXX- - # Packages known to not build yet - should be a clause later - # in the file describing why. - - # go gnupg # not yet - # go rpm # not yet + for PKG in /stage2/recipe.d/[0-9][0-9][0-9][0-9]-* + do + PKG="$(basename $PKG|sed 's/^[0-9]{4}-//')" + go "$PKG" + done ;; "clean" ) @@ -189,242 +165,22 @@ case "$1" in | bash | make | sed | coreutils | util-linux | tar | gzip \ | bzip2 | diffutils | findutils | gawk | patch | unzip | which | gz | grep ) - echo "$1 is built in stage1" + echo "$1 is built in stage1" >&2 exit 1 ;; #-------------------------------------------------- - cpio ) - mcd $BUILDDIR/$1 - $SRC/${1}-*/configure $TCONFIGARGS - notparallel - make $J - make $J install - ;; - - ncurses ) - mcd $BUILDDIR/ncurses - $SRC/ncurses-*/configure $TCONFIGARGS \ - --with-shared --without-ada --with-ospeed=unsigned \ - --enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \ - --enable-overwrite \ - --enable-pc-files \ - --with-termlib=tinfo \ - --with-chtype=long \ - --with-ticlib - notparallel - make $J - make $J install - ;; - - m4 ) - mcd $BUILDDIR/m4 - $SRC/m4-*/configure $TCONFIGARGS - make $J -k - make $J -k install - ;; - - flex ) - mcd $BUILDDIR/flex - $SRC/flex-*/configure $TCONFIGARGS --disable-dependency-tracking - make $J -k - make $J -k install - ;; - - bison ) - mcd $BUILDDIR/bison - $SRC/bison-*/configure $TCONFIGARGS - make $J -k - make $J -k install - ;; - - texinfo ) - mcd $BUILDDIR/texinfo - $SRC/texinfo-*/configure $TCONFIGARGS - make $J -k - make $J -k install - ;; - - gdb ) - mcd $BUILDDIR/gdb - $SRC/gdb-*/configure $TCONFIGARGS --without-rpm - notparallel - make $J -k - make $J -k install - ;; - - curl ) - mcd $BUILDDIR/curl - $SRC/curl-*/configure $TCONFIGARGS - make $J - make $J install - ;; - - nspr ) - mcd $BUILDDIR/nspr - $SRC/nspr-*/mozilla/nsprpub/configure $TCONFIGARGS --enable-thumb2 - make $J - make $J install - ;; - - rpm ) - mcd $BUILDDIR/rpm - $SRC/${1}-*/configure $TCONFIGARGS - notparallel - make $J - make $J install - ;; - - pth ) - mcd $BUILDDIR/pth - $SRC/${1}-*/configure $TCONFIGARGS - make $J - make $J install - ;; - - chkconfig ) - mcd $BUILDDIR/pth - #$SRC/${1}-*/configure $TCONFIGARGS - make $J - make $J install - ;; - - sqlite ) - ##################################################### - # sqlite is choking on sqlite_int64 definition - ##################################################### - mcd $BUILDDIR/sqlite - export CFLAGS="$RPM_OPT_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -Wall -fno-strict-aliasing" - $SRC/sqlite-*/configure --disable-tcl --enable-threadsafe --enable-threads-override-locks --enable-load-extension $TCONFIGARGS - # the compile would fail here, so on a host you need to run - # tclsh ../../rpmbuild/BUILD/sqlite-src-3070500/tool/mksqlite3h.tcl ../../rpmbuild/BUILD/sqlite-src-3070500 > sqlite3.h - # Also possibly add -ldl to TLIB in the Makefile - make $J - make $J install - ;; - - gdbm ) - mcd $BUILDDIR/gdbm - $SRC/${1}-*/configure $TCONFIGARGS - make $J - make $J install - ;; - - nss ) - ######################################################## - # needs perl - ######################################################## - mcd $BUILDDIR/nss - BUILD_OPT=1 - export BUILD_OPT - PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 - PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 - - export PKG_CONFIG_ALLOW_SYSTEM_LIBS - export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS - NSPR_INCLUDE_DIR=/usr/include/nspr - NSPR_LIB_DIR=/usr/lib - export NSPR_INCLUDE_DIR - export NSPR_LIB_DIR - NSS_USE_SYSTEM_SQLITE=1 - export NSS_USE_SYSTEM_SQLITE - make -C $SRC/${1}-3.12.10/mozilla/security/coreconf - make -C $SRC/${1}-3.12.10/mozilla/security/dbm - make -C $SRC/${1}-3.12.10/mozilla/security/nss - cd $SRC/${1}-3.12.10/mozilla/security/coreconf - make install - cd $SRC/${1}-3.12.10/mozilla/security/dbm - make install - cd $SRC/${1}-3.12.10/mozilla/security/nss - make install - ;; - - gnupg ) - ####################################################### - # needs libgpg-error, libgcrypt, libassuan, libksba - ####################################################### - mcd $BUILDDIR/gnupg2 - $SRC/${1}-*/configure $TCONFIGARGS - make $J - make $J install - ;; - - pcre ) - mcd $BUILDDIR/pcre - $SRC/pcre-*/configure $TCONFIGARGS - make $J - make $J install - ;; + * ) + if [ -f "/stage2/recipe.d/"[0-9][0-9][0-9][0-9]"-$1" ] + then + . /stage2/recipe.d/[0-9][0-9][0-9][0-9]-$1 + else + echo "No build recipe found for $1" >&2 + exit 2 + fi - readline ) - mcd $BUILDDIR/readline - $SRC/readline-*/configure $TCONFIGARGS - make $J - make $J install - ;; - - libtool ) - mcd $BUILDDIR/libtool - $SRC/libtool-*/configure $TCONFIGARGS - make $J - make $J install - ;; - - db4 ) - mcd $BUILDDIR/db4 - $SRC/db-*/dist/configure $TCONFIGARGS - make $J - make $J install - ;; - - perl ) - mcd $BUILDDIR/perl - cd $SRC/perl-* - sh $SRC/perl-*/Configure -des -Dprefix=/usr -DDEBUGGING=-g -Dcc=gcc -Dmyhostname=localhost -Dperladmin=root@localhost -Duseshrplib -Dusethreads -Duseithreads -Uusedtrace -Duselargefiles -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto - make - make install -;; - - openssl ) - mcd $BUILDDIR/openssl - cd $SRC/openssl-* - ./Configure --prefix=/usr --openssldir=/etc/pki/tls zlib enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 no-idea no-mdc2 no-rc5 no-ec no-ecdh no-ecdsa shared linux-generic32 - make depend - make all - make rehash - make install - ;; - - gettext ) - mcd $BUILDDIR/gettext - $SRC/gettext-*/configure $TCONFIGARGS --disable-static --enable-shared --with-pic-=yes --disable-csharp --disable-rpath - make $J - make $J install - ;; - - popt ) - mcd $BUILDDIR/popt - $SRC/popt-*/configure $TCONFIGARGS - make $J - make $J install - ;; - - glib2 ) - mcd $BUILDDIR/glib2 - # glib2 expects --enable-threads=yes to enable threads, - # anything else disables threads - $SRC/glib-*/configure `echo $TCONFIGARGS | sed 's/posix/yes/'` --enable-static - make $J - make $J install - ;; - - pkgconfig ) - mcd $BUILDDIR/pkg-config - $SRC/pkg-config-*/configure $TCONFIGARGS --disable-shared --with-installed-glib --with-installed-popt - make $J - make $J install - esac exit 0 + |