Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659634 - net-irc/quasselgrep Version bump ( ebuild attached )
Summary: net-irc/quasselgrep Version bump ( ebuild attached )
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: ephemer0l
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2018-06-30 04:50 UTC by ephemer0l
Modified: 2019-08-07 16:13 UTC (History)
3 users (show)

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


Attachments
net-irc/quasselgrep-0_p20180521.ebuild (quasselgrep-0_p20180521.ebuild,959 bytes, text/plain)
2018-06-30 04:50 UTC, ephemer0l
Details
net-irc/quasselgrep-0_p20180531.ebuild (quasselgrep-0_p20180531.ebuild,1.02 KB, text/plain)
2018-07-05 10:34 UTC, ephemer0l
Details
net-irc/quasselgrep-9999.ebuild (quasselgrep-9999.ebuild,1.13 KB, text/plain)
2018-07-05 10:35 UTC, ephemer0l
Details
quasselgrep-9999.ebuild (quasselgrep-9999.ebuild,1.18 KB, text/plain)
2019-04-19 07:22 UTC, ephemer0l
Details
quasselgrep-0_p20190211.ebuild (quasselgrep-0_p20190211.ebuild,1.18 KB, text/plain)
2019-04-19 07:23 UTC, ephemer0l
Details
quasselgrep-0_p20190211.ebuild (quasselgrep-0_p20190211.ebuild,951 bytes, text/plain)
2019-08-05 17:52 UTC, ephemer0l
Details
metadata.xml (metadata.xml,540 bytes, text/xml)
2019-08-05 17:53 UTC, ephemer0l
Details
quasselgrep-0_p20190211.ebuild (quasselgrep-0_p20190211.ebuild,970 bytes, text/plain)
2019-08-07 11:13 UTC, ephemer0l
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ephemer0l 2018-06-30 04:50:46 UTC
Created attachment 537808 [details]
net-irc/quasselgrep-0_p20180521.ebuild

There is still not symver for the package. I submitted a pull request to clean up the sed required in the ebuild.

related bug 623642
Comment 1 Jonas Stein gentoo-dev 2018-07-03 18:30:39 UTC
Thank you for your contribution. I had a short look on the ebuild. 
Here a few ideas:

* Please test the ebuild with repoman full -x https://wiki.gentoo.org/wiki/Repoman
* please fix the header. (see /usr/portage/skel.ebuild and https://devmanual.gentoo.org/ebuild-writing/eapi/)
* Please fix indentation
Comment 2 ephemer0l 2018-07-03 19:33:53 UTC
Thank you for the improvement comments. I will fix and resubmit after python 3.7 is in the tree, and I test it.

Be well.
Comment 3 ephemer0l 2018-07-05 10:34:37 UTC
Created attachment 538428 [details]
net-irc/quasselgrep-0_p20180531.ebuild

This works with python 2.7,3.4,3.5,3.6
Comment 4 ephemer0l 2018-07-05 10:35:15 UTC
Created attachment 538430 [details]
net-irc/quasselgrep-9999.ebuild
Comment 5 Jonas Stein gentoo-dev 2019-04-14 18:46:13 UTC
would you mind to update it to EAPI=7 and push it to github?
Automatic tests will prepare the detailed review and merge there.
https://wiki.gentoo.org/wiki/Gentoo_GitHub
Comment 6 ephemer0l 2019-04-19 07:22:28 UTC
Created attachment 573416 [details]
quasselgrep-9999.ebuild

updated .ebuild, supports up to python 3.7
Comment 7 ephemer0l 2019-04-19 07:23:26 UTC
Created attachment 573418 [details]
quasselgrep-0_p20190211.ebuild

updated, as well.
Comment 8 Joonas Niilola gentoo-dev 2019-08-05 15:47:25 UTC
Comment on attachment 573418 [details]
quasselgrep-0_p20190211.ebuild

># Copyright 1999-2019 Gentoo Foundation
Old header, it's Authors instead of Foundation nowadays. Repoman should complain about this?

># Distributed under the terms of the GNU General Public License v2
>
>EAPI=7
>
>PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
>
>inherit distutils-r1
>
>DESCRIPTION="Tool for searching quassel logs from the commandline"
>HOMEPAGE="https://github.com/fish-face/quasselgrep"
>
>if [[ "${PV}" == "9999" ]] ; then
>	EGIT_REPO_URI="https://github.com/65278/quasselgrep.git"
>	inherit git-r3
>	KEYWORDS=""
>else
>	MY_COMMIT=9b6b0bc1252daa6e574363d87d04eebd981215a5
>	SRC_URI="https://github.com/fish-face/"${PN}"/tarball/"${MY_COMMIT}" -> "${P}".tar.gz"
You don't have to break the SRC_URI with unnecessary " "

>	S=""${WORKDIR}"/fish-face-"${PN}"-"${MY_COMMIT:0:7}""
Same here

>	KEYWORDS="~amd64 ~x86"
>#else
>#	SRC_URI="https://github.com/fish-face/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
>#	KEYWORDS="~amd64 ~x86"
You could just remove commented lines, they're just noise.

>fi
>
>LICENSE="GPL-2"
>SLOT="0"
>IUSE="sqlite postgres"
Sort...

>
>DEPEND="${RDEPEND}"
You define RDEPEND below, so how can you inherit its contents here? Besides, setup.py ebuilds usually don't even compile anything, so most likely DEPEND can be dropped from this ebuild altogether. Please check first though. 

>RDEPEND="sqlite? ( "dev-lang/python[sqlite]" )
I'm not against this, but correct way would probably be to use PYTHON_REQ_USE here

>	dev-python/python-dateutil[${PYTHON_USEDEP}]
>	dev-python/pycryptodome[${PYTHON_USEDEP}]
>	dev-python/future[${PYTHON_USEDEP}]
Please sort this list. 

>	postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )"
>
>#src_configure() {
>	# https://github.com/fish-face/quasselgrep/pull/15
>#	sed -i 's/pycrypto/pycryptodome/g' "${S}"/setup.py || die "sed failed"
>#}
Again, this can be removed. And this kind of operation needs to happen in src_prepare rather than src_configure.
Comment 9 Joonas Niilola gentoo-dev 2019-08-05 15:50:09 UTC
I forgot to mention IUSE="postgres" seems to have no function in the ebuild rather than pull a runtime dependency, it should be removed then and moved to 'optfeature'.
Comment 10 ephemer0l 2019-08-05 17:52:49 UTC
Created attachment 585774 [details]
quasselgrep-0_p20190211.ebuild

Thanks for the review. I think I covered all your advice.
Comment 11 ephemer0l 2019-08-05 17:53:47 UTC
Created attachment 585776 [details]
metadata.xml

Added upstream bug address to metadata.xml
Comment 12 Joonas Niilola gentoo-dev 2019-08-06 15:59:34 UTC
Comment on attachment 585774 [details]
quasselgrep-0_p20190211.ebuild


>IUSE="sqlite"
>
>RDEPEND="sqlite? ( "dev-lang/python[sqlite]" )

With new eyes I believe this is wrong. Just remove the IUSE altogether and use PYTHON_REQ_USE in this ebuild. It needs to be called before inheriting distutils-r1. Test it please, if it works, I believe it's ready to be merged.
Comment 13 ephemer0l 2019-08-07 11:13:24 UTC
Created attachment 585972 [details]
quasselgrep-0_p20190211.ebuild

The ebuilld has been updated. Thanks for your help, and time with this.

Signed-off-by: Scott Martin om@organizedmagnetism.com (DCO-1.1)
Comment 14 Larry the Git Cow gentoo-dev 2019-08-07 16:06:57 UTC
The bug has been closed via the following commit(s):

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

commit ed40d3c4d27621fdca2bec1b36fd86f476b764cb
Author:     Scott Martin <om@organizedmagnetism.com>
AuthorDate: 2019-08-07 16:02:49 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-08-07 16:06:02 +0000

    net-irc/quasselgrep: bump to 0_p20190211
    
    Signed-off-by: Scott Martin <om@organizedmagnetism.com>
    Closes: https://bugs.gentoo.org/659634
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-irc/quasselgrep/Manifest                       |  1 +
 net-irc/quasselgrep/quasselgrep-0_p20190211.ebuild | 35 ++++++++++++++++++++++
 2 files changed, 36 insertions(+)
Comment 15 Joonas Niilola gentoo-dev 2019-08-07 16:13:09 UTC
Well that didnt quite go as planned, I cleaned the ebuild a bit. Didnt add metadata.xml yet, Ill maybe do it later. Next time please please please use github, pulling from bugzilla is hard and I couldve worked on 5 PRs using the time I used for this one.