You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2020. It is now read-only.
# rpm on debian has a patch to macros that messes up mock so undo it. Note
59
-
# that updating your os will sometimes reset this file and you will have
60
-
# to run this command again.
61
-
sudo sed -i 's;%_dbpath\t.*;%_dbpath\t\t%{_var}/lib/rpm;g' /usr/lib/rpm/macros
62
-
# on debian/ubuntu for some reason yum tries to install packages for
63
-
# multiple archs, so it is necessary to update the yum.conf section in
64
-
# default.cfg to prevent that. If you switch your default.cfg you may
65
-
# have to do this again.
66
-
sudo sed -i '/\[main\]/a multilib_policy=best' /etc/mock/default.cfg
77
+
##### Runtime #####
78
+
79
+
To build from RPMs, `smith` requires:
80
+
81
+
- mock
82
+
83
+
mock can have issues with non - RPM distros.
84
+
85
+
**If you have problems installing or running `smith` natively on a non - RPM distro, best advice is to build it and run it in a Docker container (see above)**
86
+
87
+
mock can be installed on Debian/Ubuntu with some extra care (see below). Specifically you need at least mock
88
+
1.2. Version 1.1.X will not work because the -r flag does not support abspath to the mock config file.
89
+
Be aware that your `smith` builds may still fail.
90
+
91
+
Debian/Ubuntu specific instructions (_Here be Dragons_):
92
+
93
+
```sudo apt install mock createrepo yum```
94
+
95
+
```
96
+
# Fedora rawhide chroot (which mock uses by default) does not play well with
97
+
# Debian, so point /etc/mock/default.cfg to EPEL 7 (6 on Ubuntu):
0 commit comments