Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307459 - [patch] app-arch/rpm-4.4.6-r6 broken links to "magic files"
Summary: [patch] app-arch/rpm-4.4.6-r6 broken links to "magic files"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stanislav Ochotnicky (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 10:17 UTC by OvsInc
Modified: 2010-04-28 07:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds the spec directive BuildArch (misc-functions-buildarh.diff,281 bytes, patch)
2010-04-27 14:03 UTC, OvsInc
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description OvsInc 2010-03-02 10:17:04 UTC
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
Comment 1 Stanislav Ochotnicky (RETIRED) gentoo-dev 2010-04-22 19:04:44 UTC
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 :-)
Comment 2 OvsInc 2010-04-27 14:00:41 UTC
(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. ;)

Comment 3 OvsInc 2010-04-27 14:03:59 UTC
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? ;)
Comment 4 Stanislav Ochotnicky (RETIRED) gentoo-dev 2010-04-27 23:20:50 UTC
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.
Comment 5 OvsInc 2010-04-28 07:31:05 UTC
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?
Comment 6 Stanislav Ochotnicky (RETIRED) gentoo-dev 2010-04-28 07:38:06 UTC
Yes please file another bug for sys-apps/portage if you believe there is something wrong with it.