i've locally built an rpm on F32 with `rpmbuild`.
it installs fine via `rpm -Uvh`.
i've created/enabled a local repo, cp'd the rpm to the local store, and rebuilt the metadata cache.
'dns' sees the enabled repo, but fails to find my package in local repo, or act on it, e.g., to install.
this is what I see so far:
mkdir -p /usr/local/LOCAL_REPO/nginx-mainline
cp -af \
dnf --disablerepo="*" --enablerepo="nginx-mainline-local" clean metadata
Cache was expired
0 files removed
dnf --disablerepo="*" --enablerepo="nginx-mainline-local" makecache -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.2.23
Making cache files for all metadata files.
nginx-mainline-local: has expired and will be refreshed.
repo: downloading from remote: nginx-mainline-local
nginx-mainline-local 251 kB/s | 257 B 00:00
nginx-mainline-local: using metadata from Sun 28 Jun 2020 10:42:29 AM PDT.
User-Agent: constructed: 'libdnf (Fedora 32; generic; Linux.x86_64)'
Completion plugin: Generating completion cache...
Metadata cache created.
dnf repolist nginx-mainline-local
repo id repo name status
nginx-mainline-local nginx-mainline-local enabled
dnf info compat-luarocks
Last metadata expiration check: 0:00:27 ago on Sun 28 Jun 2020 12:09:37 PM PDT.
Error: No matching Packages to list
can't see it, can't install it :-/
what have I missed in the process?
I author a kmod rpm package that uses the %kernel_module_package
macro. That macro used to be in the /usr/lib/rpm/redhat/macros
file, but was moved in RHEL 8 and later versions of Fedora to
the /usr/lib/rpm/macros.d/macros.kmp file which is owned by the
If I attempt to build my packages on these later systems with mock,
they break imediately even when just trying to create the srpm
because the %kernel_module_package macro is undefined leading to
a spec file parse error.
What I need help with is understanding where the bug is and the best
way to fix it.
I would think that either: 1) my spec file needs to be updated in
some way to mitigate this change, or 2) the "kernel-rpm-macros"
package needs to be added to the @buildsys-build group for Fedora
(or added to the "config_opts['chroot_setup_cmd']=..." cfg line for
For now, I've just been hacking mock cfg files to workaround this
What are people's thoughts on this problem?
If I do need to tweak the spec file, if someone could point me to
an example of how, that would be appreciated.