Hi! I tried to build rpm package using rpmbuild and ebuild. But assembly fails with the errors error: magic_load(ms, "/usr/lib/rpm/magic") failed: could not find any magic files! error: magic_file(ms, "/var/tmp/portage/app-shells/zsh-4.3.9/image") failed: mode 040755 could not find any magic files! rpmbuild: rpmfc.c:1040: rpmfcClassify: Assertion `ftype != ((void *)0)' failed. /usr/lib/portage/bin/misc-functions.sh: line 771: 23336 Aborted rpmbuild -bb --clean --rmsource "${PF}.spec" The solution in the ebuild for "app-arch/rpm-4.4.6-r6" would be to replace in src_install() function: dosym /usr/share/misc/file/${magic_file} /usr/lib/rpm/${magic_file} by dosym /usr/share/misc/${magic_file} /usr/lib/rpm/${magic_file} Reproducible: Always
There is rpm-4.4.6-r7 with your fix applied. Can you re-test? I will try to do verify, but of course you have access to perfect test suite :-)
(In reply to comment #1) > There is rpm-4.4.6-r7 with your fix applied. Can you re-test? I will try to do > verify, but of course you have access to perfect test suite :-) > Thank you very much, rpm is going fine. ;)
Created attachment 229395 [details, diff] Adds the spec directive BuildArch However, there is a problem with the definition BuildArch. I do not know whether to open a separate task. If you are not hard to Adjust the issue? ;)
Maybe I am missing something, but are you sure (In reply to comment #3) > Created an attachment (id=229395) [details] > Adds the spec directive BuildArch > > However, there is a problem with the definition BuildArch. > I do not know whether to open a separate task. If you are not hard to Adjust > the issue? ;) > Are you sure this is about app-arch/rpm-4.4.6? Because there is no file misc-functions.sh inside archive. I am closing this bug, but if you believe there is something to be done about your patch (perhaps in a different package?) then open a new bug.
Sorry, the patch applies to a package sys-apps/portage. It cost me clarify this fact. Сan you fix this problem or is it time to open a new request?
Yes please file another bug for sys-apps/portage if you believe there is something wrong with it.