New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
games-util/pyfa: version bump to 1.37.0 #7367
games-util/pyfa: version bump to 1.37.0 #7367
Conversation
Pull Request assignment Areas affected: ebuilds games-util/pyfa: No bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and ping us to reset the assignment. If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers. In order to force reassignment and/or bug reference scan, please append |
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
|
||
eapply_user | ||
|
||
touch __init__.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intention of the application developers is that pyfa is installed somewhere in the users home directory. The ebuild however installs it in the proper locations for python packages and since there is no __init__.py
coming with the sources one is created to make python recognize it as a proper package.
The ebuild and program works without this, but I think it is the right thing to do here: https://docs.python.org/3/tutorial/modules.html#packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just ||die
, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also suggest adding a comment so that future maintainers aren't confused with this line.
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
|
||
pyfa_make_configforced() { | ||
mkdir -p "${BUILD_DIR}" || die | ||
sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing || die
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ | ||
-e "s:%%EPREFIX%%:${EPREFIX}:" \ | ||
"${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py" | ||
sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash the changes afterwards.
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
inherit git-r3 | ||
KEYWORDS="" | ||
else | ||
SRC_URI="https://github.com/pyfa-org/Pyfa/archive/v${PV}.tar.gz -> pyfa-${PV}.tar.gz" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think pyfa-${PV}
is equivalent to ${P}
, isn't it?
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
|
||
eapply_user | ||
|
||
touch __init__.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just ||die
, please.
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
|
||
src_install() { | ||
pyfa_py_install() { | ||
local packagedir=$(python_get_sitedir)/${PN} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use python_domodule
to install to site-packages. It should handle any kind of data files too.
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
python_foreach_impl pyfa_py_install | ||
|
||
insinto /usr/share/${PN} | ||
doins eve.db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this file isn't modified at runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an asset database for the program. The program does not change it at runtime, it only gets updated with new releases.
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
popd > /dev/null || die | ||
|
||
dodoc README.md | ||
doicon -s 32 imgs/gui/pyfa.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is desktop.eclass now, not eutils.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the desktop eclass, but the eutils is still needed because of a call to edos2unix
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
} | ||
|
||
pkg_preinst() { | ||
gnome2_icon_savelist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was talking about savelist, not update calls. Updates are still necessary/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, sorry
8d272d7
to
f109fd6
Compare
Implemented the requested changes and squashed the commits onto the current master. I also added yet another release which came out two days ago. |
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
PYTHON_COMPAT=( python2_7 ) | ||
PYTHON_REQ_USE="sqlite,threads" | ||
|
||
inherit eutils desktop python-r1 python-utils-r1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please sort lexically whenever possible, and don't inherit python-utils-r1
directly.
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online" | ||
HOMEPAGE="https://github.com/pyfa-org/Pyfa" | ||
|
||
LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 free-noncomm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry if you've been asked about this already but do you actually need all those licenses simultaneously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are absolutely right, I don't think they are correct. The software itself is GPL-3, but there are game assets bundled with the code which have another licenses and it is not clear to me what they are. I opened a ticked about it upstream and try to investigate this. May take some time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If those assets are installed and are indeed licensed with all those licenses, then LICENSE
is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, sorry for the long delay. The developer just got an answer from the asset owners and it's more or less "we don't know". pyfa-org/Pyfa#1505
What he proposes is that we include the text snipped he has on the bottom of the README here: https://github.com/pyfa-org/Pyfa/blob/master/README.md
So should I just add that text as a licence file and add that that as license together with GPL3 for the pyfa code? Is there a naming convention for this (I looked around but found none)?
CCP-assets-pfya (because the text is granting the rights to pyfa specifically) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's wait for @gentoo/licenses to advise. In the meantime, please implement all the remaining remarks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already commented at pyfa-org/Pyfa#1505 but I must admit that I am somewhat at a loss concerning the license situation.
Especially, is the text below "License" at https://community.eveonline.com/community/fansites/toolkit/ a statement from the assets' copyright holder? To whom is it addressed (i.e., who is "you" in that text)? Note that the only clause that grants any rights is "we will give you a license to use them". All the rest of that text are conditions imposed on "you" restricting that usage right. There is no clause that would grant the right to redistribute.
My current conclusion would be that LICENSE needs to include "all-rights-reserved" (because it certainly isn't "free-noncomm") along with RESTRICT="mirror bindist".
I would also suggest that you file a Gentoo bug (with licenses team in CC or as assignee) if you want to further discuss the licensing situation, so that we have a traceable record of any decisions taken.
games-util/pyfa/pyfa-1.35.2.ebuild
Outdated
pyfa_py_install() { | ||
python_moduleinto ${PN} | ||
python_domodule eos gui service utils config*.py __init__.py | ||
[[ -e info.py ]] && python_domodule info.py # only in zip releases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are '.zip releases' even relevant here? Please change the condition to express when the file is expected, so that it'd explicitly fail when the file unexpectedly is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file does not exist anymore even in the zip archives it seems. I will remove the line
games-util/pyfa/pyfa-1.36.0.ebuild
Outdated
@@ -0,0 +1,88 @@ | |||
# Copyright 1999-2018 Gentoo Foundation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make it one commit per version.
f109fd6
to
11257f8
Compare
Implemented the remaining remarks, apart from the license issue |
@ZeroPointEnergy still want to work on this? |
@flappyports Yes, I implemented all the requested changes but the situation with the license seems to be the issue why this is not moving on: pyfa-org/Pyfa#1505 Can we merge the new ebuild while the license stuff gets sorted? Old versions of the program get useless really fast for the users as the game parameters change. |
11257f8
to
fadd79a
Compare
@ulm @mgorny @monsieurp Ok, I just rebased and updated the ebuild to the newest version with all the requested changes and finally also with all the license changes. Sorry this took so long, there where a lot of personal things which came suddenly up and I just had no free time to work on this until now. The live ebuild does not work any-more, I updated the licence information and restrictions anyway in a separate commit. The reason why it currently breaks is that pyfa has moved to wxpython 4, which is missing in gentoo and will block any further updates of this software for now. |
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Package-Manager: Portage-2.3.24, Repoman-2.3.6
fadd79a
to
740c75d
Compare
Pull request CI report Report generated at: 2018-05-30 12:56 UTC No issues found |
Thanks! |
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Simple version bump, no changes to the ebuild