Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587342 - games-emulation/ppsspp: terrible ebuild quality
Summary: games-emulation/ppsspp: terrible ebuild quality
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrice Clement (RETIRED)
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 583818 585722
Blocks: 612826
  Show dependency tree
 
Reported: 2016-06-27 20:51 UTC by Michał Górny
Modified: 2017-04-06 09:46 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-27 20:51:10 UTC
The ebuild needs a second review, and fixing.

At a first glance, I see the following problems:

1. empty RDEPEND (?!),

2. use of live eclass for keyworded release (easy to fix),

3. use of deprecated qt4-r2 eclass,

4. awful mixing of qt4-r2 & cmake, including phases that do not do anything (qt4-r2_src_unpack),

5. a lot of 'if' branches copying the same code,

6. reinvention of deprecated & banned games.eclass in the inline code,

7. in one of the conditionals, the game is installed into /usr/games (without /bin),

8. newins -> newicon?

I also have a suspicion that it bundles ffmpeg. Please get those issues fixed or lastrite the package.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-28 18:25:28 UTC
commit a401627148007f874469589a94805007c3614af6
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Tue Jun 28 20:22:00 2016
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Tue Jun 28 20:25:08 2016

    package.mask: Mask games-emulation/ppsspp for QA violations, #587342
Comment 2 Andrew Church 2016-07-02 10:25:09 UTC
I don't touch anything Qt-related so I can't speak to that, but based on my local ppsspp ebuild (dating back to before it was in Portage) and assuming USE=sdl:

- RDEPEND="media-libs/libsdl2 media-video/ffmpeg sys-libs/zlib"
- DEPEND="${RDEPEND} dev-util/cmake"
- Bug 585822 comment 2 gives a solution for the git checkout stuff (note that the only required submodules are lang, ext/armips, and ext/glslang).
- CMakeLists.txt (at least at git HEAD, haven't checked the 1.2.2 tag) will automatically use system FFmpeg if available, but you need to hack it to link shared instead of static libraries:
      sed -i -e 's/\(lib[a-z]*\)\.a/\1.so/g' CMakeLists.txt || die
Comment 3 Andrew Church 2016-07-02 10:25:56 UTC
s/Bug 585822 comment 2/Bug 585722 comment 2/
Comment 4 Hadrien Lacour 2016-07-03 00:43:54 UTC
Since this thread seems a little more active than the other, I'll list other problems I've encountered (and fixed in my local repo) about ppsspp:
- Doesn't check if qt5 is compiled with the gles2 USE flag, which breaks the package.
- Bundle ffmpeg when you just need CONFIG+='system_ffmpeg' for the eqmakes. I hit some compilation errors with -DUSE_SYSTEM_FFMPEG='TRUE' for the cmake/sdl one.
- I don't if CONFIG+='release' is the default or not.

That's basically it.
Comment 5 tsmksubc 2017-04-01 20:21:12 UTC
pr to fix this https://github.com/gentoo/gentoo/pull/4342
Comment 6 Patrice Clement (RETIRED) gentoo-dev 2017-04-04 21:15:12 UTC
commit 07dcd0e1a674de8b3c71b2e5b34335b3f555eb9f (HEAD)
Author:     soredake <fdsfgs@krutt.org>
AuthorDate: Tue Apr 4 16:17:54 2017 +0300
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Tue Apr 4 23:13:58 2017 +0200

games-emulation/ppsspp: version bump to 1.4.

Gentoo-Bug: https://bugs.gentoo.org/583818
Gentoo-Bug: https://bugs.gentoo.org/612826
Gentoo-Bug: https://bugs.gentoo.org/587342
Gentoo-Bug: https://bugs.gentoo.org/574118
Gentoo-Bug: https://bugs.gentoo.org/585722

Closes: https://github.com/gentoo/gentoo/pull/4342

games-emulation/ppsspp/Manifest                    |  8 ++
games-emulation/ppsspp/files/ppsspp-1.4-O2.patch   | 32 ++++++++
.../ppsspp/files/ppsspp-1.4-assets-lookup.patch    | 13 ++++
games-emulation/ppsspp/metadata.xml                |  8 +-
games-emulation/ppsspp/ppsspp-1.4.ebuild           | 87 ++++++++++++++++++++++
5 files changed, 145 insertions(+), 3 deletions(-)
create mode 100644 games-emulation/ppsspp/Manifest
create mode 100644 games-emulation/ppsspp/files/ppsspp-1.4-O2.patch
create mode 100644 games-emulation/ppsspp/files/ppsspp-1.4-assets-lookup.patch
create mode 100644 games-emulation/ppsspp/ppsspp-1.4.ebuild
Comment 7 Simon 2017-04-06 03:55:17 UTC
Hi, thanks for the good work on the new ebuild,
the Icon in the menu-entry is now missing, that needs to be corrected though.
But i think the package.mask can now be removed?!
Comment 8 Patrice Clement (RETIRED) gentoo-dev 2017-04-06 09:46:46 UTC
Thanks for the heads up! The mask has been removed.