2019-05-25

This commit is contained in:
Baho Utot 2019-05-25 09:08:04 -04:00
parent e42cf13d67
commit a9edab01f0
4 changed files with 89 additions and 21 deletions

View File

@ -1,16 +1,17 @@
#TARBALL: http://ftp.rpm.org/releases/rpm-4.14.x/rpm-4.14.1.tar.bz2 #TARBALL: ftp.rpm.org/releases/rpm-4.14.x/rpm-4.14.2.1.tar.bz2
#TARBALL: http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz #TARBALL: http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz
#MD5SUM: 1058b1a8e96b42b4fc31afc6719c8239;SOURCES/rpm-4.14.1.tar.bz2 #MD5SUM: fdb8b8857f103b087b6aed5b78dd9b4f;SOURCES/rpm-4.14.2.1.tar.bz2
#MD5SUM: f73afcb308aefde7e6ece4caa87b22a9;SOURCES/db-6.0.20.tar.gz #MD5SUM: f73afcb308aefde7e6ece4caa87b22a9;SOURCES/db-6.0.20.tar.gz
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
Summary: Package manager Summary: Package manager
Name: rpm Name: rpm
Version: 4.14.1 Version: 4.14.2.1
Release: 2 Release: 1
License: GPLv2 License: GPLv2
URL: http://rpm.org URL: http://rpm.org
Group: LFS/BASE Group: LFS/BASE
Vendor: Elizabeth Vendor: Elizabeth
Source0: http://ftp.rpm.org/releases/rpm-4.14.x/%{name}-%{version}.tar.bz2 Source0: http://ftp.rpm.org/releases/rpm-4.14.x/%{name}-%{version}.tar.bz2
Source1: http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz Source1: http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz
Source2: macros Source2: macros
@ -31,19 +32,14 @@ sed -i 's/--srcdir=$db_dist/--srcdir=$db_dist --with-pic/' db3/configure
--with-crypto=openssl \ --with-crypto=openssl \
--with-cap \ --with-cap \
--with-acl \ --with-acl \
--enable-python \
--with-python=2.7 \
--without-external-db \ --without-external-db \
--without-archive \ --without-archive \
--without-lua \ --without-lua \
--disable-dependency-tracking \ --disable-dependency-tracking \
--disable-silent-rules \ --disable-silent-rules \
--disable-rpath \ --disable-rpath \
--with-python=2.7 --disable-plugins \
# --disable-plugins --disable-inhibit-plugin
# --with-archive build rpm2archive - requires libarchive
# --with-lua build with lua support
# --with-python=<version>
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install

72
TODO
View File

@ -1,3 +1,75 @@
Update rpm to 4.14.2.1:
* update setup.sh, download 4.14.2.1 tarball
* update tools.sh, build 4.14.2.1
* update base.sh: not needed
* update rpm.spec, see below
* drop python dependency
#TARBALL: ftp.rpm.org/releases/rpm-4.14.x/rpm-4.14.2.1.tar.bz2
#TARBALL: http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz
#MD5SUM: fdb8b8857f103b087b6aed5b78dd9b4f;rpm-4.14.2.1.tar.bz2
#MD5SUM: f73afcb308aefde7e6ece4caa87b22a9;SOURCES/db-6.0.20.tar.gz
#-----------------------------------------------------------------------------
Summary: Package manager
Name: rpm
Version: 4.14.2.1
Release: 1
License: GPLv2
URL: http://rpm.org
Group: LFS/BASE
Vendor: Elizabeth
Source0: ftp.rpm.org/releases/rpm-4.14.x/%{name}-%{version}.tar.bz2
Source1: http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz
Source2: macros
Requires: filesystem
%description
Package manager
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}
%setup -q -T -D -a 1 -n %{name}-%{version}
sed -i 's/--srcdir=$db_dist/--srcdir=$db_dist --with-pic/' db3/configure
%build
ln -vs db-6.0.20 db
./configure \
--prefix=%{_prefix} \
--program-prefix= \
--sysconfdir=/etc \
--with-crypto=openssl \
--with-cap \
--with-acl \
--without-external-db \
--without-archive \
--without-lua \
--disable-dependency-tracking \
--disable-silent-rules \
--disable-rpath \
--disable-plugins \
--disable-inhibit-plugin
# --enable-python python bindings
# --with-python=2.7 python bindings
# --with-archive build rpm2archive - requires libarchive
# --with-lua build with lua support
tools.sh:
--prefix=/tools \
--program-prefix= \
--sysconfdir=/tools/etc \
--with-crypto=openssl \
--without-external-db
--without-archive \
--without-lua \
--disable-dependency-tracking \
--disable-silent-rules \
--disable-rpath \
--disable-plugins \
--disable-inhibit-plugin
--disable-shared \
--enable-static \
--enable-zstd=no \
--enable-lmdb=no \
Read base.spec to get list of packages to install Read base.spec to get list of packages to install

View File

@ -122,8 +122,7 @@ function _chapter_3 {
list+="${i} " list+="${i} "
done < "${TOPDIR}/BOOK/wget-list" done < "${TOPDIR}/BOOK/wget-list"
list+="http://rpm5.org/files/popt/popt-1.16.tar.gz " list+="http://rpm5.org/files/popt/popt-1.16.tar.gz "
list+="https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tar.xz " list+="http://ftp.rpm.org/releases/rpm-4.14.x/rpm-4.14.2.1.tar.bz2 "
list+="http://ftp.rpm.org/releases/rpm-4.14.x/rpm-4.14.1.tar.bz2 "
list+="http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz " list+="http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz "
list+="https://ftp.gnu.org/gnu/cpio/cpio-2.12.tar.bz2 " list+="https://ftp.gnu.org/gnu/cpio/cpio-2.12.tar.bz2 "
list+="https://ftp.gnu.org/gnu/wget/wget-1.20.1.tar.gz " list+="https://ftp.gnu.org/gnu/wget/wget-1.20.1.tar.gz "

View File

@ -1220,18 +1220,19 @@ function Rpm {
--prefix=/tools \ --prefix=/tools \
--program-prefix= \ --program-prefix= \
--sysconfdir=/tools/etc \ --sysconfdir=/tools/etc \
--disable-dependency-tracking \ --with-crypto=openssl \
--disable-shared \ --without-external-db \
--disable-silent-rules \
--without-archive \ --without-archive \
--without-lua \ --without-lua \
--without-plugins \ --disable-dependency-tracking \
--with-crypto=openssl \ --disable-silent-rules \
--disable-rpath \
--disable-plugins \
--disable-inhibit-plugin \
--disable-shared \
--enable-static \ --enable-static \
--enable-zstd=no \ --enable-zstd=no \
--enable-lmdb=no \ --enable-lmdb=no >> ${logfile} 2>&1
--disable-rpath \
--without-external-db >> ${logfile} 2>&1
msg_success msg_success
msg_line " Make: " msg_line " Make: "
make ${MKFLAGS} >> ${logfile} 2>&1 make ${MKFLAGS} >> ${logfile} 2>&1