[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible fedora: try harder to configure mock correctly

Holger Levsen holger at moszumanska.debian.org
Mon Dec 7 18:58:56 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 50f5f1e924e48474f8dec32c4135d19fd183a3e8
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Dec 7 19:58:49 2015 +0100

    reproducible fedora: try harder to configure mock correctly
---
 TODO                                               |  1 +
 bin/reproducible_setup_mock.sh                     |  2 +-
 .../etc/fedora-23-x86_64.cfg                       | 61 ++++++++++++++++++++++
 .../yum/repos.d/{fedora23-src => fedora-23-src}    |  2 +-
 4 files changed, 64 insertions(+), 2 deletions(-)

diff --git a/TODO b/TODO
index bf6cee6..e0c6d9b 100644
--- a/TODO
+++ b/TODO
@@ -306,6 +306,7 @@ This is about Debian, below are more todo entries for other projects…
 * then configure+use mock to build:
 ** 'sudo mock -r fedora-20-x86_64 --init'
 ** 'sudo mock -r fedora-20-x86_64 sudo-1.8.14p3-1.fc23.src.rpm'
+* baseurl=http://fedora.mirrors.telekom.ro/pub/fedora/linux/development/23/source/SRPMS is really not so good…
 
 * more notes:
 ** http://blog.packagecloud.io/eng/2015/05/11/building-rpm-packages-with-mock/
diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh
index c404eec..711d2d9 100755
--- a/bin/reproducible_setup_mock.sh
+++ b/bin/reproducible_setup_mock.sh
@@ -19,5 +19,5 @@ DISTRO=$1
 ARCHITECTURE=$2
 
 echo "$(date -u) - starting to configure mock for ${DISTRO} on ${ARCHITECTURE} now."
-sudo mock -r ${DISTRO}-${ARCHITECTURE} --init
+sudo /usr/bin/mock -r ${DISTRO}-${ARCHITECTURE} --init
 echo "$(date -u) - mock configured for ${DISTRO} on ${ARCHITECTURE} now."
diff --git a/hosts/profitbricks-build3-amd64/etc/fedora-23-x86_64.cfg b/hosts/profitbricks-build3-amd64/etc/fedora-23-x86_64.cfg
new file mode 100644
index 0000000..c05a845
--- /dev/null
+++ b/hosts/profitbricks-build3-amd64/etc/fedora-23-x86_64.cfg
@@ -0,0 +1,61 @@
+config_opts['root'] = 'fedora-23-x86_64'
+config_opts['target_arch'] = 'x86_64'
+config_opts['legal_host_arches'] = ('x86_64',)
+config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
+config_opts['dist'] = 'fc23'  # only useful for --resultdir variable subst
+
+config_opts['yum.conf'] = """
+[main]
+cachedir=/var/cache/yum
+debuglevel=1
+reposdir=/dev/null
+logfile=/var/log/yum.log
+retries=20
+obsoletes=1
+gpgcheck=0
+assumeyes=1
+syslog_ident=mock
+syslog_device=
+
+# repos
+
+[fedora]
+name=fedora
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-23&arch=x86_64
+failovermethod=priority
+
+[updates]
+name=updates
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f23&arch=x86_64
+failovermethod=priority
+
+[updates-testing]
+name=updates-testing
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f23&arch=x86_64
+failovermethod=priority
+enabled=0
+
+[local]
+name=local
+baseurl=http://kojipkgs.fedoraproject.org/repos/f23-build/latest/x86_64/
+cost=2000
+enabled=0
+
+[fedora-debuginfo]
+name=fedora-debuginfo
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-23&arch=x86_64
+failovermethod=priority
+enabled=0
+
+[updates-debuginfo]
+name=updates-debuginfo
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f23&arch=x86_64
+failovermethod=priority
+enabled=0
+
+[updates-testing-debuginfo]
+name=updates-testing-debuginfo
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-debug-f23&arch=x86_64
+failovermethod=priority
+enabled=0
+"""
diff --git a/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora23-src b/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src
similarity index 92%
rename from hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora23-src
rename to hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src
index 78a7e37..3db137b 100644
--- a/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora23-src
+++ b/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src
@@ -1,4 +1,4 @@
-[fedora23-src]
+[fedora-23-src]
 name=fedora 23 sources
 baseurl=http://fedora.mirrors.telekom.ro/pub/fedora/linux/development/23/source/SRPMS
 enabled=1

-- 
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