[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible fedora rpms: as a start, build 235 fedora-23 source packages (those from @buildsys-build)
Holger Levsen
holger at moszumanska.debian.org
Fri Dec 11 20:52:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 4e45d74a0418ab3fec0dcde96121ec103aa6ae2e
Author: Holger Levsen <holger at layer-acht.org>
Date: Fri Dec 11 21:47:31 2015 +0100
reproducible fedora rpms: as a start, build 235 fedora-23 source packages (those from @buildsys-build)
---
TODO | 3 +--
bin/reproducible_build_rpm.sh | 4 +++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/TODO b/TODO
index 45b1172..74ad1cb 100644
--- a/TODO
+++ b/TODO
@@ -284,16 +284,15 @@ This is about Debian, below are more todo entries for other projects…
* build script
** maintenance should do maintenance too, to avoid blocking: if stamp file is older than 6h, do mock --update
** how to allow more than one mock builder per node? using schroots?
-** how to get a list of packages?
** no variations introduced yet:
*** use '-j$NUM_CPU' and 'NEW_NUM_CPU=$(echo $NUM_CPU-1|bc)'
*** modify TZ, LANG, LC_ALL, umask
* other bits:
** use modified rpmbuild package from dhiru
** verify gpg signatures (via /etc/mock/)
+** one day we will want to schedule all 17k source packages in fedora…
* hosts/pb-build3/etc/yum/repos.d/* is really not sooo good but works…
* build rawhide too (once fedora-23 builds nicely)
-** when adding rawhide make sure this is not needed: 'yumdownloader --enablerepo=fedora-23-src --source sudo'
* more notes:
** https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds
diff --git a/bin/reproducible_build_rpm.sh b/bin/reproducible_build_rpm.sh
index 6b4a92a..2ef3d44 100755
--- a/bin/reproducible_build_rpm.sh
+++ b/bin/reproducible_build_rpm.sh
@@ -45,7 +45,9 @@ download_package() {
choose_package() {
echo "$(date -u ) - choosing package to be build."
local MIN_AGE=6
- for PKG in sudo git screen vim joe less rpm file ssh ; do
+ # instead of hardcoding the list of packages we can also use something like this to get a list of all packages:
+ # yumdownloader --urls --source --releasever=23 '*'
+ for PKG in bash bzip2 coreutils cpio diffutils fedora-release findutils gawk gcc gcc-c++ gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux util-linux which xz audit-libs audit-libs basesystem binutils bzip2-libs bzip2-libs ca-certificates chkconfig cpp cracklib cracklib cracklib-dicts crypto-policies curl cyrus-sasl-lib cyrus-sasl-lib dwz elfutils elfutils-default-yama-scope elfutils-libelf elfutils-libelf elfutils-libs elfutils-libs ema [...]
# build package if it has never build or at least $MIN_AGE days ago
if [ ! -d $BASE/rpm/$RELEASE/$ARCH/$PKG ] || [ ! -z $(find $BASE/rpm/$RELEASE/$ARCH/ -name $PKG -mtime +$MIN_AGE) ] ; then
SRCPACKAGE=$PKG
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list