Skip to content
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

Closed
wants to merge 2 commits into from
Closed

net-im/psi update #5219

wants to merge 2 commits into from

Conversation

Ri0n
Copy link
Contributor

@Ri0n Ri0n commented Jul 26, 2017

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.

@gentoo-repo-qa-bot gentoo-repo-qa-bot added maintainer-needed There is at least one affected package with no maintainer. Review it if you can. assigned PR successfully assigned to the package maintainer(s). labels Jul 26, 2017
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull Request assignment

Areas affected: ebuilds, profiles
Packages affected: net-im/psi

net-im/psi: @gentoo/proxy-maint (maintainer needed)

enchant? ( spell )
hunspell? ( spell )
webengine? ( webkit )
^^ ( qt4 qt5 )
Copy link
Member

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.

dbus? ( dev-qt/qtdbus:4 )
app-crypt/qca:2[qt4]
whiteboarding? ( dev-qt/qtsvg:4 )
webkit? ( dev-qt/qtwebkit:4 )
Copy link
Member

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

)
qt5? (
dev-qt/qtgui:5
dev-qt/qtxml:5
Copy link
Member

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.

aspell? ( spell )
enchant? ( spell )
hunspell? ( spell )
webengine? ( webkit )
Copy link
Member

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 and webkit 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.

@Ri0n
Copy link
Contributor Author

Ri0n commented Jul 27, 2017

I honestly don't understand what qa-bot wants from me :-)

@a17r
Copy link
Member

a17r commented Jul 27, 2017

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.

Copy link
Member

@a17r a17r left a 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.

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}
Copy link
Member

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

aspell? ( app-text/aspell )
dbus? ( dev-qt/qtdbus:5 )
enchant? ( >=app-text/enchant-1.3.0 )
hunspell? ( app-text/hunspell )
Copy link
Member

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

--qtdir="$(qt5_get_bindir)/.."
)

use dbus || CONF+=("--disable-qdbus")
Copy link
Member

@a17r a17r Jul 27, 2017

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?

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
Copy link
Member

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.

RESTRICT="test"

pkg_setup() {
MY_PN=psi
Copy link
Member

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/"
Copy link
Member

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.

Copy link
Contributor Author

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 :-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks - my eyes ;)

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"
Copy link
Member

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.

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multilib.eclass seems unused

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"
Copy link
Member

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

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
Copy link
Member

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">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's there now

@a17r
Copy link
Member

a17r commented Jul 27, 2017

Bug https://bugs.gentoo.org/show_bug.cgi?id=511462 suggests to add RESTRICT="iconsets? ( bindist )" because of unclear licensing, this would be a good opportunity to fix as well if still applicable.

@Ri0n
Copy link
Contributor Author

Ri0n commented Jul 27, 2017

forgot about tab. fixed now. but had to squash all together


src_configure() {
CONF=(
--libdir="${EPREFIX}"/usr/$(get_libdir)
Copy link
Member

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

Copy link
Contributor Author

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.

CONF=(
--libdir="${EPREFIX}"/usr/$(get_libdir)
--no-separate-debug-info
--prefix="${EPREFIX}"/usr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also not necessary

if use doc; then
cd doc
make api_public || die "make api_public failed"
fi
Copy link
Member

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

newdoc certs/README README.certs
dodoc README

use doc && dohtml -r doc/api
Copy link
Member

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


# install translations
local mylrelease="$(qt5_get_bindir)"/lrelease
cd "${WORKDIR}/psi-l10n-${PV}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing || die

EGIT_REPO_URI="${PSI_PLUS_LANGS_URI}"
else
EGIT_REPO_URI="${PSI_LANGS_URI}"
fi
Copy link
Member

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}")

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing || die

@a17r
Copy link
Member

a17r commented Jul 31, 2017

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.

@gentoo-repo-qa-bot
Copy link
Collaborator

😞 The QA check for this pull request has found the following issues:

Issues inherited from Gentoo (may be modified by PR):
https://qa-reports.gentoo.org/output/gentoo-ci/ad65a773f/output.html#sys-auth/nss-pam-ldapd

@a17r
Copy link
Member

a17r commented Jul 31, 2017

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.

a17r pushed a commit to a17r/gentoo that referenced this pull request Jul 31, 2017
a17r pushed a commit to a17r/gentoo that referenced this pull request Jul 31, 2017
@a17r
Copy link
Member

a17r commented Jul 31, 2017

@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.

gentoo-bot pushed a commit that referenced this pull request Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). maintainer-needed There is at least one affected package with no maintainer. Review it if you can.
Projects
None yet
4 participants