On Fri, Jan 19, 2024 at 12:16 PM Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote: ....
I don't see where the .spec file specifies a dependency for this. Is the rpm program looking inside the .rpm and coming up with dependencies?
Yes, rpmbuild calls plugins to generate a list of dependencies. For Mono there is such plugin (I do not know how you create your RPM so I do not know if it is actually used):
It is built by alien. When I build it myself, it reports:
Processing files: navsolve-cmd-1.2.1-2.x86_64 Provides: mingw32(navsolvenetcore.dll) mingw32(oxts.netcore.utilities.dll) mono(NAVsolveNetCore) = 23.5.12.0 mono(OxTS.NetCore.Utilities) = 23.5.12.0 navsolve-cmd = 1.2.1-2 navsolve-cmd(x86-64) = 1.2.1-2 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/bash libc.so.6 libc.so.6()(64bit) libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIB C_2.34)(64bit) libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6 libm.so.6()(64bit) libm.so.6(GLIBC_2.0) libm.so.6(GLIBC_2.1) libst dc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIB CXX_3.4.26)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) mono(OxTS.NetCore.Utilities) = 23.5.12.0 mono(System.Collections) = 6.0.0.0 mono(System.ComponentModel.Primitives) = 6.0.0.0 mono(System.Console) = 6.0.0.0 mono(Syst em.Diagnostics.Process) = 6.0.0.0 mono(System.Linq) = 6.0.0.0 mono(System.Runtime) = 6.0.0.0 mono(System.Text.RegularExpressions) = 6.0.0.0 mono(System.Threading) = 6.0.0.0 mono(System.Threading.Thread) = 6.0.0.0 mono(Sys tem.Xml.ReaderWriter) = 6.0.0.0 mono(System.Xml.XmlSerializer) = 6.0.0.0 rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/roger/rpmbuild/BUILDROOT/navsolve-cmd-1.2.1-2.x86_64 warning: Installed (but unpackaged) file(s) found: /navsolve-cmd-1.2.1-2.spec Wrote: /home/roger/rpmbuild/SRPMS/navsolve-cmd-1.2.1-2.src.rpm Wrote: ../navsolve-cmd-1.2.1-2.x86_64.rpm Executing(%clean): /usr/bin/bash -e /var/tmp/rpm-tmp.wonSFD + umask 022 + cd /home/roger/rpmbuild/BUILD + /usr/bin/rm -rf /home/roger/rpmbuild/BUILDROOT/navsolve-cmd-1.2.1-2.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Executing(rmbuild): /usr/bin/bash -e /var/tmp/rpm-tmp.hyZeHO shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory + umask 022 + cd /home/roger/rpmbuild/BUILD chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory + RPM_EC=0 ++ jobs -p + exit 0
RPM build warnings: Installed (but unpackaged) file(s) found: /navsolve-cmd-1.2.1-2.spec
So rpmbuild is adding these. I winder why it sets the require mono to 6.0.0.0.
Then show the full log, not just the final result.