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
net-im/psi update #5219
net-im/psi update #5219
Conversation
Pull Request assignment Areas affected: ebuilds, profiles net-im/psi: @gentoo/proxy-maint (maintainer needed) |
net-im/psi/psi-1.2.ebuild
Outdated
enchant? ( spell ) | ||
hunspell? ( spell ) | ||
webengine? ( webkit ) | ||
^^ ( qt4 qt5 ) |
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 avoid such constructs. It is an unnecessary burden to resolve, when qt4
can be simply done as !qt5
.
However: Qt4 is going away, so it would be much better if you just dropped the option altogether and make it a qt5-only build.
net-im/psi/psi-1.2.ebuild
Outdated
dbus? ( dev-qt/qtdbus:4 ) | ||
app-crypt/qca:2[qt4] | ||
whiteboarding? ( dev-qt/qtsvg:4 ) | ||
webkit? ( dev-qt/qtwebkit:4 ) |
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.
Qt4Webkit is in the process of removal, new ebuild submissions with it as a dependency will not be accepted. See also: https://bugs.gentoo.org/show_bug.cgi?id=620684
net-im/psi/psi-1.2.ebuild
Outdated
) | ||
qt5? ( | ||
dev-qt/qtgui:5 | ||
dev-qt/qtxml:5 |
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 and other lines: Please keep dependencies sorted, it makes future maintenance much better. Optional dependencies below fixed, and also sorted.
net-im/psi/psi-1.2.ebuild
Outdated
aspell? ( spell ) | ||
enchant? ( spell ) | ||
hunspell? ( spell ) | ||
webengine? ( webkit ) |
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 unfortunate REQUIRED_USE
:
- The way
webengine
andwebkit
flags are currently used among most packages is preferring one over the other. - The way it is used in the ebuild, it seems you could instead do
?? ( webengine webkit )
and only--enable-webkit
when one of them is selected.
I honestly don't understand what qa-bot wants from me :-) |
The remaining two CI issues are not caused by your PR. Wrt previous failure, if you have a USE flag that due to dependencies does not work on all arches, you can mask that flag in the according profiles/arch/<arch>/package.use.mask files. However, not everything provided by the build system strictly needs to be exposed by USE flags if it is not that important. |
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.
thanks for your work - please address the remaining nitpicks, sqash ebuild changes and have a look at https://wiki.gentoo.org/wiki/Gentoo_git_workflow#Commit_policy to adjust the commit message. repoman commit
, besides doing basic QA and dependency checks, already prepares half of a proper commit message for you.
net-im/psi/psi-1.2.ebuild
Outdated
emake INSTALL_ROOT="${D}" install | ||
|
||
# this way the docs will be installed in the standard gentoo dir | ||
rm -f "${ED}"/usr/share/${MY_PN}/{COPYING,README} |
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 rather do without -f
and add the missing || die
net-im/psi/psi-1.2.ebuild
Outdated
aspell? ( app-text/aspell ) | ||
dbus? ( dev-qt/qtdbus:5 ) | ||
enchant? ( >=app-text/enchant-1.3.0 ) | ||
hunspell? ( app-text/hunspell ) |
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 probably needs :=
when it links to a versioned soname
net-im/psi/psi-1.2.ebuild
Outdated
--qtdir="$(qt5_get_bindir)/.." | ||
) | ||
|
||
use dbus || CONF+=("--disable-qdbus") |
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 and other lines - any reason why you can't use $(use_enable)
and move those into the CONF block above?
net-im/psi/psi-1.2.ebuild
Outdated
PLOCALES="be bg ca cs de en eo es et fa fi fr he hu it ja kk mk nl pl pt pt_BR ru sk sl sr@latin sv sw uk ur_PK vi zh_CN zh_TW" | ||
PLOCALE_BACKUP="en" | ||
|
||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz |
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 move this below the HOMEPAGE
line.
net-im/psi/psi-1.2.ebuild
Outdated
RESTRICT="test" | ||
|
||
pkg_setup() { | ||
MY_PN=psi |
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 is no reason to do this in pkg_setup (usually we declare those on top, after EAPI), but MY_PN
is the same as PN
anyway unless I'm missing something?
ewarn "that fail too." | ||
ewarn "You're about to build patched version of Psi called Psi+." | ||
ewarn "It has new nice features not yet included to Psi." | ||
ewarn "Take a look at homepage for more info: http://psi-plus.com/" |
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 a suggestion: You can use ${HOMEPAGE}
there and it will always be up to date with the ebuild.
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.
That's Psi+ home. HOMEPAGE is just Psi. But thanks. maybe I will use it somewhere else :-)
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.
thanks - my eyes ;)
net-im/psi/psi-9999.ebuild
Outdated
use powersave && epatch "${WORKDIR}/psi-plus/patches/dev/psi-reduce-power-consumption.patch" | ||
PATCHES_DIR="${WORKDIR}/psi-plus/patches" | ||
EPATCH_SOURCE="${PATCHES_DIR}" EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch | ||
use sql && epatch "${PATCHES_DIR}/dev/psi-new-history.patch" |
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.
In EAPI 6 we don't use epatch anymore. Please convert to eapply.
net-im/psi/psi-1.2.ebuild
Outdated
@@ -6,62 +6,49 @@ EAPI=6 | |||
PLOCALES="be bg ca cs de en eo es et fa fi fr he hu it ja kk mk nl pl pt pt_BR ru sk sl sr@latin sv sw uk ur_PK vi zh_CN zh_TW" | |||
PLOCALE_BACKUP="en" | |||
|
|||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" | |||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz | |||
https://github.com/psi-im/psi-l10n/archive/1.2.tar.gz -> psi-l10n-${PV}.tar.gz" | |||
|
|||
inherit eutils l10n multilib qmake-utils |
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.
multilib.eclass
seems unused
net-im/psi/psi-9999.ebuild
Outdated
EPATCH_EXCLUDE="${MY_EPATCH_EXCLUDE} " \ | ||
EPATCH_SOURCE="${WORKDIR}/psi-plus/patches/" EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch | ||
if use iconsets; then | ||
cp -a "${WORKDIR}/resources/iconsets" "${S}" || die "failed to copy additional iconsets" |
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.
that looks like a tab after die
net-im/psi/psi-1.2.ebuild
Outdated
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz | ||
https://github.com/psi-im/psi-l10n/archive/1.2.tar.gz -> psi-l10n-${PV}.tar.gz" | ||
|
||
inherit eutils l10n multilib qmake-utils |
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 don't see multilib.eclass
in use here - and after converting to eapply
you should also be able to drop eutils.eclass
- please check.
@@ -1,16 +1,21 @@ | |||
<?xml version='1.0' encoding='UTF-8'?> | |||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | |||
<pkgmetadata> | |||
<!-- maintainer-needed --> | |||
<longdescription>Psi is a very good jabber client that uses QT</longdescription> | |||
<maintainer type="person"> |
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.
In addition you also need to add proxy-maint team, like so: https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers/User_Guide#Proxied_maintainer_in_metadata.xml
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.
it's there now
Bug https://bugs.gentoo.org/show_bug.cgi?id=511462 suggests to add |
forgot about tab. fixed now. but had to squash all together |
net-im/psi/psi-1.2.ebuild
Outdated
|
||
src_configure() { | ||
CONF=( | ||
--libdir="${EPREFIX}"/usr/$(get_libdir) |
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.
not necessary in EAPI 6
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.
ah true. after converting to econf I forgot to remove this.
net-im/psi/psi-1.2.ebuild
Outdated
CONF=( | ||
--libdir="${EPREFIX}"/usr/$(get_libdir) | ||
--no-separate-debug-info | ||
--prefix="${EPREFIX}"/usr |
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.
also not necessary
net-im/psi/psi-1.2.ebuild
Outdated
if use doc; then | ||
cd doc | ||
make api_public || die "make api_public failed" | ||
fi |
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.
turn this whole if
block into use doc && emake -C doc api_public
net-im/psi/psi-1.2.ebuild
Outdated
newdoc certs/README README.certs | ||
dodoc README | ||
|
||
use doc && dohtml -r doc/api |
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.
dohtml
is deprecated. Either use docinto html
+ dodoc -r doc/api/.
or HTML_DOCS
+ einstalldocs
net-im/psi/psi-1.2.ebuild
Outdated
|
||
# install translations | ||
local mylrelease="$(qt5_get_bindir)"/lrelease | ||
cd "${WORKDIR}/psi-l10n-${PV}" |
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
net-im/psi/psi-9999.ebuild
Outdated
EGIT_REPO_URI="${PSI_PLUS_LANGS_URI}" | ||
else | ||
EGIT_REPO_URI="${PSI_LANGS_URI}" | ||
fi |
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.
tip (you don't have to do this): EGIT_REPO_URI=$(usex extras "${PSI_PLUS_LANGS_URI}" "${PSI_LANGS_URI}")
net-im/psi/psi-9999.ebuild
Outdated
features="$(use webkit && echo '--webkit') $(use webengine && echo '--webengine') $(use sql && echo '--sql')" | ||
NIGHTLY_VER=$("${vergen}" ./ $features) | ||
elog "Prepared version: ${NIGHTLY_VER}" | ||
echo "${NIGHTLY_VER}" > version |
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
umm something went wrong there - could you please remove the merge commit and rebase against master? then I think we will be good to proceed here. |
😞 The QA check for this pull request has found the following issues: Issues inherited from Gentoo (may be modified by PR): |
Thanks for your work - ebuilds look in pretty good shape now safe for some really minor cosmetic nitpicks I am going to solve in a separate commit. |
@Ri0n I've both altered your commit messages to be git workflow compliant, mention related bugs, and did the mentioned cosmetic fixes and then some more - please have a look. |
Updated 9999 version.
Bumped release to 1.2
Removed dependency on psimedia from new ebuilds. So psimedia could be removed without any harm. psimedia will be fixed someday to work either with new gstreamer of with qt internal multimedia framework.
More ebuilds will be submitted later. Also some fixes will be added to these ones. particularly related to internationalization, which is incomplete in these ebuilds.