Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612900 - app-emulation/genymotion-bin-2.8.1 accesses DISTDIR in pkg_* phases
Summary: app-emulation/genymotion-bin-2.8.1 accesses DISTDIR in pkg_* phases
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA
Assignee: Marco Genasci
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 612966
  Show dependency tree
 
Reported: 2017-03-17 12:41 UTC by Ulrich Müller
Modified: 2017-03-26 10:34 UTC (History)
3 users (show)

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


Attachments
genymotion-2.8.1-r1.patch (0001-app-emulation-genymotion-bin-correct-dependencies-an.patch,2.90 KB, patch)
2017-03-22 14:15 UTC, Marco Genasci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2017-03-17 12:41:56 UTC
The ebuild suffers from multiple severe QA violations:

- Ebuilds must not modify files in DISTDIR (with very few exceptions, like
  live ebuilds). Otherwise, Manifest verification will fail when the distfile
  is fetched for the next time. Neither should permissions of the files be
  changed.

- Especially, patching of the sources must not be done in pkg_setup but in
  src_prepare.

- The DISTDIR variable is not valid in pkg_* phases. This concerns both
  pkg_nofetch and pkg_setup.
  PMS reference: https://projects.gentoo.org/pms/6/pms.html#x1-11800011.1

- Why is renaming of the desktop entry file (last line in src_install) needed?
Comment 1 Marco Genasci 2017-03-22 14:15:11 UTC
Created attachment 467906 [details, diff]
genymotion-2.8.1-r1.patch
Comment 2 Marco Genasci 2017-03-22 14:17:22 UTC
(In reply to Ulrich Müller from comment #0)
> The ebuild suffers from multiple severe QA violations:
> 
> - Ebuilds must not modify files in DISTDIR (with very few exceptions, like
>   live ebuilds). Otherwise, Manifest verification will fail when the distfile
>   is fetched for the next time. Neither should permissions of the files be
>   changed.
> 
> - Especially, patching of the sources must not be done in pkg_setup but in
>   src_prepare.
> 
> - The DISTDIR variable is not valid in pkg_* phases. This concerns both
>   pkg_nofetch and pkg_setup.
>   PMS reference: https://projects.gentoo.org/pms/6/pms.html#x1-11800011.1

Solved in proposed patch.


> - Why is renaming of the desktop entry file (last line in src_install)
> needed?

It's only a "cosmetic changes", without this file is named "_opt_genymotion_genymotion-genymotion-bin.desktop".
Comment 3 Ulrich Müller gentoo-dev 2017-03-22 19:32:25 UTC
(In reply to Marco Genasci from comment #1)
> Created attachment 467906 [details, diff] [details, diff]
> genymotion-2.8.1-r1.patch

Ack, this looks much better.
Comment 4 Ettore Di Giacinto (RETIRED) gentoo-dev 2017-03-26 09:47:55 UTC
Revbump is available in the tree now. Thanks
Comment 5 Ulrich Müller gentoo-dev 2017-03-26 10:34:44 UTC
DISTDIR is still referenced in pkg_nofetch (I missed that in the previous round). 

It is not critical because it affects an einfo message only. But maybe you could fix it with the next version bump.