summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO14
-rwxr-xr-xbin/reproducible_setup_mock.sh12
-rw-r--r--hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src.repo (renamed from hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src)2
-rw-r--r--hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora.repo (renamed from hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora)4
4 files changed, 19 insertions, 13 deletions
diff --git a/TODO b/TODO
index 32581198..ce3a579c 100644
--- a/TODO
+++ b/TODO
@@ -299,13 +299,13 @@ This is about Debian, below are more todo entries for other projects…
==== reproducible Fedora
-* call the script reproducible_rpms.sh as it can also build OpenSuSE packages
-** see below for '/etc/yum/repos.d/'
-* then use yumdownloader to download rpms: 'yumdownloader --source sudo'
-** https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=X86_64 has a list of repos
-* then configure+use mock to build:
-** '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…
+* build script
+** call the script reproducible_rpms.sh as it can also build OpenSuSE packages
+** then use yumdownloader to download rpms: 'yumdownloader --source sudo'
+** use mock to build: 'mock -r fedora-23-x86_64 --resultdir=. sudo-1.8.14p3-1.fc23.src.rpm'
+* hosts/pb-build3/etc/yum/repos.d/* is really not sooo good but works…
+* how to get a list of packages?
+* build rawhide instead of fedora-23?
* 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 2385693d..37d2b21d 100755
--- a/bin/reproducible_setup_mock.sh
+++ b/bin/reproducible_setup_mock.sh
@@ -18,6 +18,12 @@ fi
DISTRO=$1
ARCHITECTURE=$2
-echo "$(date -u) - starting to configure mock for ${DISTRO} on ${ARCHITECTURE} now."
-mock -r ${DISTRO}-${ARCHITECTURE} --init
-echo "$(date -u) - mock configured for ${DISTRO} on ${ARCHITECTURE} now."
+echo "$(date -u) - showing setup."
+dpkg -l mock
+id
+echo "$(date -u) - starting to cleanly configure mock for ${DISTRO} on ${ARCHITECTURE}."
+set -x
+mock -r ${DISTRO}-${ARCHITECTURE} --resultdir=. --clean
+mock -r ${DISTRO}-${ARCHITECTURE} --resultdir=. --init
+set +x
+echo "$(date -u) - mock configured for ${DISTRO} on ${ARCHITECTURE}."
diff --git a/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src b/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src.repo
index 3db137ba..fb948356 100644
--- a/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src
+++ b/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora-23-src.repo
@@ -1,6 +1,6 @@
[fedora-23-src]
name=fedora 23 sources
-baseurl=http://fedora.mirrors.telekom.ro/pub/fedora/linux/development/23/source/SRPMS
+baseurl=http://ftp.informatik.uni-frankfurt.de/fedora/releases/23/Everything/source/SRPMS
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
diff --git a/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora b/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora.repo
index d7cf7436..a431739d 100644
--- a/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora
+++ b/hosts/profitbricks-build3-amd64/etc/yum/repos.d/fedora.repo
@@ -1,8 +1,8 @@
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
+#baseurl=http://ftp.informatik.uni-frankfurt.de/fedora/releases/$releasever/Everything/$basearch/os/
+baseurl=http://ftp.informatik.uni-frankfurt.de/fedora/releases/23/Everything/x86_64/os/
enabled=1
#metadata_expire=7d
gpgcheck=0