summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rwxr-xr-xbin/reproducible_setup_mock.sh2
-rw-r--r--hosts/profitbricks-build3-amd64/etc/fedora-23-x86_64.cfg61
-rw-r--r--hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src (renamed from hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora23-src)2
4 files changed, 64 insertions, 2 deletions
diff --git a/TODO b/TODO
index bf6cee65..e0c6d9b7 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 c404eecb..711d2d9f 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 00000000..c05a8452
--- /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
index 78a7e37b..3db137ba 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