Replies: 6 comments
-
Variable Now, when I start another build I can see output like:
But now build fails because not finding a ccache package:
This does not makes sense to me. Debian Now, what's wrong? By the way, I checked it on an Oracle-Linux-8 native build system with mock 1.4.16. Same here, there does not exist a directory Even if we look into mock.spec we cannot find a clue that the plugin modules needed to be copied to |
Beta Was this translation helpful? Give feedback.
-
Ad the plugins - they should go to:
On my F38 machine the plugins are in As this is not issue per se, I will convert it to discussion. |
Beta Was this translation helpful? Give feedback.
-
The ccache is has to be installed in buildroot. The error means that mock cannot do that. Ccache on host is actually ignored. |
Beta Was this translation helpful? Give feedback.
-
Alright, thanks, with the ccache. Mock cannot do that,for whatever reason. The log says no packages found. So, probably I have to add some more package repo in the cfg-file. That's a good hint! Thanks, I'll check it. |
Beta Was this translation helpful? Give feedback.
-
By the way here track down with the plugins: Regarding the Python modules for the plugin, I respected the I instrumented the
And, as described, the path Line 25, I did not specify
The global variable
So, obviously, line 12 concatenates the current working directory |
Beta Was this translation helpful? Give feedback.
-
Coooool, works now! I added the developer directory (EPEL) of the distro where the ccache package is obtainable. And now I have a real build boost as expected right after the compiler cache warm-up :) The reason why I expected ccache outside bildroot is because for Debian Pbuilder (counter part to Mock for Debian distro) ccache is installed outside the buildroot. The same ccache instance is used for all build environments on a build machine. Thanks for the hint and willing to help! |
Beta Was this translation helpful? Give feedback.
-
Short Description
I installed mock from source on Debian 12 (Bookworm) OS. Since for that OS level a Debian distribution package for mock does not exist anymore and is just on the wish list, I installed it from GitHub source here. In earlier Debian OS releases a
mock
installation package was still available. See also Debian bug #1025460Output of
rpm -q mock
Of course, there is none.
Steps to reproduce issue
git clone https://github.com/rpm-software-management/mock.git
python-is-python3 python3-dev libpython3-dev python3-rpm dnf usermode python3-six python3-all-dev python3-distro python3-pyroute2 python3-backoff python3-jinja2 python3-requests python3-rpm util-linux coreutils procps-ng shadow-utils systemd-container podman
mock
and added the build user to that group...Do not forget to mention full commandline with the mock command you executed.
where
$EPEL_CFG
can be:oraclelinux-9-x86_64
(self defined)oraclelinux-8-x86_64
(self defined)oraclelinux-7-x86_64
(self defined)and
$EL
'7' or '8' or '9'Any additional notes
The
mockbuild/plugins
directory with the Python modules exists:What did I wrong? Did I miss something or screwed something up?
I want to make use of
ccache
and it does not work. Butccache
is installed and configured on my Debian 12 build system:In
/etc/mock/site-defaults.cfg
I added the following lines forccache
:I would be glad in case you are willing to help me here even it is a Debian system.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions