Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812855 - media-video/mplayer-1.4-r1: unsupported architecture UNKNOWN
Summary: media-video/mplayer-1.4-r1: unsupported architecture UNKNOWN
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: riscv-keywording
  Show dependency tree
 
Reported: 2021-09-13 01:11 UTC by Yixun Lan
Modified: 2022-03-17 08:17 UTC (History)
1 user (show)

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


Attachments
full build log (build.log.xz,1.29 KB, application/x-xz)
2021-09-13 01:12 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2021-09-13 01:11:04 UTC
Checking for host cc ... riscv64-unknown-linux-gnu-gcc
The architecture of your CPU (UNKNOWN) is not supported by this configure script
It seems nobody has ported MPlayer to your OS or CPU type yet.

Error: unsupported architecture UNKNOWN

Check "config.log" if you do not understand why it failed.
 * ERROR: media-video/mplayer-1.4-r1::gentoo failed (configure phase):
 *   (no error message)


Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2021-09-13 01:12:51 UTC
Created attachment 739073 [details]
full build log
Comment 2 Yixun Lan archtester gentoo-dev 2021-09-13 01:57:40 UTC
there is bug in upstream which opened 3year ago..
https://trac.mplayerhq.hu/ticket/2344
Comment 3 Larry the Git Cow gentoo-dev 2022-03-14 10:48:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68fe335796dbcd3ba4b47d6ab8d725ca8757183f

commit 68fe335796dbcd3ba4b47d6ab8d725ca8757183f
Author:     Han Gao <rabenda.cn@gmail.com>
AuthorDate: 2022-03-12 13:29:08 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2022-03-14 10:47:36 +0000

    media-video/mplayer: ~riscv keywording
    
    Bug: https://bugs.gentoo.org/812855
    Closes: https://github.com/gentoo/gentoo/pull/24506
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Han Gao <rabenda.cn@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 media-video/mplayer/mplayer-1.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af8937c981e9c56681a1bb961cdcee20a47866ac

commit af8937c981e9c56681a1bb961cdcee20a47866ac
Author:     Han Gao <rabenda.cn@gmail.com>
AuthorDate: 2022-03-12 13:26:50 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2022-03-14 10:43:50 +0000

    media-video/mplayer: add riscv support
    
    Bug: https://bugs.gentoo.org/812855
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Han Gao <rabenda.cn@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 media-video/mplayer/files/mplayer-1.4-riscv-support.patch | 14 ++++++++++++++
 media-video/mplayer/mplayer-1.4-r1.ebuild                 |  2 ++
 2 files changed, 16 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-14 10:49:32 UTC
This is interesting: https://trac.mplayerhq.hu/ticket/2344#comment:1.

1. Does it work okay at runtime?
2. Have we sent the non-generic patch upstream?
Comment 5 Han Gao 2022-03-14 11:04:02 UTC
(In reply to Sam James from comment #4)
> This is interesting: https://trac.mplayerhq.hu/ticket/2344#comment:1.
> 
> 1. Does it work okay at runtime?
> 2. Have we sent the non-generic patch upstream?

Patch from https://code.pa4wdh.nl.eu.org/gentoo/unmatched-patchwork/tree/media-video/mplayer/files/configure-riscv.patch

It work okay but very slow.
Comment 6 Han Gao 2022-03-16 14:54:21 UTC
https://salsa.debian.org/multimedia-team/mplayer/-/blob/debian/2%251.4+ds1-3/debian/patches/0203_generic-arch-fallback.patch

Debian's patch hack fallback to generic. It seems same solution.
Comment 7 Yixun Lan archtester gentoo-dev 2022-03-17 08:17:43 UTC
(In reply to Sam James from comment #4)
> This is interesting: https://trac.mplayerhq.hu/ticket/2344#comment:1.
> 
> 1. Does it work okay at runtime?
as said, it just works, but far from usable (we'd expect fast CPU or HW acceleration) - I still think it's an improvement than none (support)

> 2. Have we sent the non-generic patch upstream?
No, we didn't even try to implement non-generic support, and I think it's probably beyond our scope of work for now(from the Gentoo downstream perspective). and we are here more or less trying to catch up with
other distros..