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-p2p/classified-ads: v0.10 version bump. #1406

Closed

Conversation

operatornormal
Copy link
Contributor

Classified ads upstream version 0.10 bump.

This PR is continuation of #1327. See also QA issues listed in https://bugs.gentoo.org/show_bug.cgi?id=581910.

Compared to previously released version 0.09_p20151220 changes include:

  • upstream version bump 0.09 -> 0.10
  • dependency to qt4 and libqjson dropped
  • dependency to qt5 added
  • EAPI bump 5->6
  • method how qmake is used is now different because qt4-r2 eclass is not avail for EAPI6

Compared to last version of #1327 changes include

  • unit tests fixed
  • method how $HOME is used is different, it is kind of promised in https://dev.gentoo.org/%7Eulm/pms/head/pms.html#x1-119002 that inside ebuild $HOME always points to some temporary directory and can't mess up with real $HOME
  • added curly brances around variables where applicable
  • whole "test_suite" function is now more straight-forward
  • manifest should be correctly updated now
  • gettext is in DEPEND, not RDEPEND
  • qttest is in DEPEND only if FEATURES=test is in effect

Btw, it seems to me that while previous #1327 got reverted and ebuilds in directory are 4 months old as they should, the manifest is more recent. Was manifest reverted too? This PR here now includes a new manifest and git didn't report any conflict yet.

Package-Manager: portage-2.2.26

Package-Manager: portage-2.2.26

EAPI=6
PLOCALES="en fi sv da uk"
PLOCALE_BACKUP="en"
Copy link
Contributor

Choose a reason for hiding this comment

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

and where is the rest of the l10n eclass?

Copy link

Choose a reason for hiding this comment

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

It does appear this eclass is not inherited. PLOCALES && PLOCALE_BACKUP are indeed vars from the l10n eclass.

Copy link
Contributor

Choose a reason for hiding this comment

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

Although inherited, still not implemented.

@rindeal
Copy link
Contributor

rindeal commented May 4, 2016

Also do not append periods after commit message headers

@idella
Copy link

idella commented May 5, 2016

rindeal, also mention points are relatively harmless and trivial when they are relatively harmless and trivial. While correct, I probably would not have bothered mention myself

@monsieurp
Copy link
Member

@idella

@monsieurp monsieurp added version bump assigned PR successfully assigned to the package maintainer(s). labels May 5, 2016
@gktrk
Copy link
Member

gktrk commented May 6, 2016

I'm using the unreleased version of repoman and here's the output:

$ repom full

RepoMan scours the neighborhood...
  metadata.bad [fatal]          1
   net-p2p/classified-ads/metadata.xml: line: 34, Element 'maintainer': Missing child element(s). Expected is ( name ).

Per GLEP 68, <upstream> <maintainer> has to have a <name> element. Unfortunately, current portage does not catch this so it's normal that this is missed.

@gktrk
Copy link
Member

gktrk commented May 6, 2016

Also do not append periods after commit message headers

There is nothing banning the use of '.' at the end of the summary line. There are commits in both forms in the repo. It's a stylistic nitpick but I will admit that I personally don't append periods either. Just wanted to clarify.

@gktrk
Copy link
Member

gktrk commented May 6, 2016

Hi, I see that you are actually the upstream for this package. Any reason why you'd want to download by commit hash when you already released a version which can be downloaded via the following link: https://github.com/operatornormal/classified-ads/archive/0.10.tar.gz ?

@gktrk
Copy link
Member

gktrk commented May 6, 2016

util/catranslator.cpp:25:#include <libintl.h>

Should include virtual/libintl in RDEPEND.

@idella
Copy link

idella commented May 6, 2016

you are all keen. I was awaiting him to make the changes before doing testing. This now needs user to push next set of changes to catch up

@gktrk
Copy link
Member

gktrk commented May 6, 2016

@idella I see that I may be interfering with your interaction with the user here. I apologize for that. Unsubscribing myself. Good luck!

@operatornormal
Copy link
Contributor Author

Thanks everybody for comments, the ebuild in question is actually starting to look cleaner after all the suggestions I've got.

Some suggestions were not not implemented, I'll try to briefly comment each suggestion above, everything combined into same posting but grouped by person:

Rindeal:

  • l10n added as inherited classes - how come did this work before?
  • VIRTUALX_DEPEND is gone, obviosly inheried eclasses take care of their own dependencies
  • sys-devel/gdb:0 is moved to different location, indentation hopefully fixed
  • src_configure added and qmake-calls moved there
  • . at end of commit message should not be there any more
    Gögtürk: (sorry for misspellign your name earlier)
  • Metadata updated, should now also include maintainer name
  • I'm also the upstream of this package. This very version went to fedora linux with
    faulty unit tests but the rpm build process there does not include mandatory unit test.

@gentoo-repo-qa-bot
Copy link
Collaborator

@operatornormal
Copy link
Contributor Author

Continuation from comment at several minutes ago:

  • So, fedora linux got version where the actual sw is all right but unit test broken. In gentoo I fixed the unit test in upstream and that causes the COMMIT_ID-thing - I still can't modify contents of actual 0.10 tag as it would chage checksum of the sources tagged and cause problems in fedora build process.
  • virtual/libintl added in RDEPEND.

Any additional suggestions to lift sw quality slihtly up?

@idella
Copy link

idella commented May 7, 2016

gktrk not interfering from my opinion. I was noting your reviewing and input was somewhat ahead of mine in that I was holding back on runtesting until after user had applied changes from feedback. afaiac your input was well intended and on track

@idella
Copy link

idella commented May 7, 2016

sys-devel/gettext comes with @System, we discussed this and decided it is redundant, strongly discouraged form inclusion under deps.

@operatornormal
Copy link
Contributor Author

Pushed again, sys-devel/gettext is not there any more. Also added $S to sub-directory reference as it turned out that the package could not be merged if both doc&test features were used at the same time.

Antti

@gentoo-repo-qa-bot
Copy link
Collaborator

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

Issues persisted from underlying repository state:
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#app-cdr/cdrtools
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#app-cdr/xfburn
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#app-i18n/man-pages-it
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#app-laptop/laptop-mode-tools
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#app-misc/trash-cli
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#app-portage/pfl
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#media-gfx/pinta
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#media-gfx/splash-themes-livedvd
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#media-tv/gentoo-vdr-scripts
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#net-misc/youtube-viewer
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#net-p2p/classified-ads
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#net-p2p/ncdc
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#sys-boot/yaboot
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#virtual/mda
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#virtual/mta
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#x11-misc/obmenu-generator
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#x11-misc/openbox-menu
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#x11-misc/spacefm
https://qa-reports.gentoo.org/output/gentoo-ci/9edf27d/output.html#x11-plugins/pidgin-opensteamworks

@idella
Copy link

idella commented May 8, 2016

despite runtesting ok, seems you have repeated the same commit msg for the 2 edits since re-making this pull req afresh. Can you squash them into one. If at all, each commit need state the new change, in this case addition of a missed eclass, removal of unrequired dep. You can alternatively over write all 3 with a new one outlining the changes in the bumped ebuild compared to the prior version last added. Points like "VIRTUALX_DEPEND is gone" do not warrant mention. You don't need to say something you added wrongly only to have reversed it.

@idella
Copy link

idella commented May 8, 2016

Another inchannel also observed that the IUSE debug is never actually used in the ebuild. Another innocent oversight I suspect.

review comments: added "inherit l10n", added dependency to
virtual/libintl, removed dependency to $VIRTUALX_DEPEND, changed again
way how test suite is configured and run.

Package-Manager: portage-2.2.26
@operatornormal
Copy link
Contributor Author

Those identical commit messages were a misunderstanding, I was under impression that keeping commits messages short is considered the approved way to go. I now tried to reset the latest commits and make a new one, how does the "history" now look? At least I'm seeing only 2 commits now..

Antti

@gentoo-repo-qa-bot
Copy link
Collaborator

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

Issues persisted from underlying repository state:
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#app-cdr/cdrtools
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#app-cdr/xfburn
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#app-i18n/man-pages-it
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#app-laptop/laptop-mode-tools
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#app-misc/trash-cli
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#app-portage/pfl
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#media-gfx/pinta
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#media-gfx/splash-themes-livedvd
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#media-tv/gentoo-vdr-scripts
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#net-misc/youtube-viewer
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#net-p2p/classified-ads
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#net-p2p/ncdc
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#sys-boot/yaboot
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#virtual/mda
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#virtual/mta
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#x11-misc/obmenu-generator
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#x11-misc/openbox-menu
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#x11-misc/spacefm
https://qa-reports.gentoo.org/output/gentoo-ci/8db5793/output.html#x11-plugins/pidgin-opensteamworks

@idella
Copy link

idella commented May 11, 2016

I could edit the commit msg on commit to tidy up the syntax.
brief summary line 1
blank line 2
extended description >= line 3.
To my surprise, it appears you are less than fully familiar with the style of the git commit.
Also. the final commit could do it all, making the first redundant since they both cite
v0.10 version bump

As much as I'd like to add this there are a few little points that may as well be tidied.

1.    cd "${S}"/doc || die
2.    cd "${S}"/test || die

pwd is already "${S}" therefore redundant. It does not break but it is also not 'right'
These then can have the "${S}"/ simply taken out

  1. Wile at it, I do not know rindeal and I do not know why he has prompted you to shift the use of eqmake5 to src_configure. TO me I see no reason why it is not to be run in src_compile

@idella
Copy link

idella commented May 11, 2016

On checking, running it in src_configure is fine. It generates the makefile rather than running it

@operatornormal
Copy link
Contributor Author

Regarding usage of ${S}: while both USE doc and test are selected, current directory after "cd doc" will be "doc" and at test phase it will attempt to cd to directory test from $S/doc and fail. If "${S}"/test syntax is not used, then the "doc" section needs to be something like "cd doc ; doStuff.. ; cd .."

But I can tidy the commit message and change ||die -calls in case when cd fails.

@idella
Copy link

idella commented May 11, 2016

OH I see; so go
pushd "the dir" || die
the code
popd >> /dev/null || die
this returns you to your starting point each time and ensures being correctly positioned
pushd popd has long been preferred over cd

Based on comments at pull request
 - used pushd/popd instead of cd in ebuild
 - removed IUSE debug that was not referenced anywhere

Package-Manager: portage-2.2.26
@gentoo-repo-qa-bot
Copy link
Collaborator

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

Issues persisted from underlying repository state:
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#app-cdr/cdrtools
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#app-cdr/xfburn
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#app-i18n/man-pages-it
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#app-laptop/laptop-mode-tools
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#app-misc/trash-cli
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#app-portage/pfl
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#media-gfx/pinta
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#media-gfx/splash-themes-livedvd
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#media-tv/gentoo-vdr-scripts
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#net-misc/youtube-viewer
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#net-p2p/classified-ads
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#net-p2p/ncdc
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#sys-boot/yaboot
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#virtual/mda
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#virtual/mta
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#x11-misc/obmenu-generator
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#x11-misc/openbox-menu
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#x11-misc/spacefm
https://qa-reports.gentoo.org/output/gentoo-ci/c995e6d/output.html#x11-plugins/pidgin-opensteamworks

@idella
Copy link

idella commented May 12, 2016

ok this is fine now, (I missed prompting with "> dev/null> for pushd also, I shall add it myself) I am miffed about the commit msgs which I thought you'd be more versed with. These were in fact part of the list of the short list of that bug. The commit msgs don't need such a full running commentary on events leading to the change. They just need the change.
For a single vn. bump you'd normally do it in a single commit, however this has dragged on long enough. Just note that commit msgs are made informative and terse, and generally you can squash them into one. Things like removing old are justified to make a separate commit since you might wish to revert that one single event and not have it tangled with others in one commit performing several events.

I would now be looking at putting fwd one for stabilising (remember deps need a stable candidate) and removing old. I'd also suggest 'backporting' the improvements made in this bump to the ebuilds you select to remain after purging old.

Do that all later in a fresh pull req

gentoo-bot pushed a commit that referenced this pull request May 12, 2016
added locally due to tech difficulties of applying the 3 commits
in the one patch from #1406,
submitted by user maintianer, which reports full history of the
changes and input leading to this vn. bump

- deps upgraded
- testsuite upgraded
- refinements to basic code and to selection of phases to
build and install the package. Closes

Pull request: #1406

Package-Manager: portage-2.2.28
@idella
Copy link

idella commented May 12, 2016

The patch is not applying cleanly for git reasons. I am going to acquire the final ebuild and apply it locally so as to get this added, and close this on addition. Probable cause is the various changes to the Manifest.

See
commit 573e053
commit 2eda90f

@idella idella closed this May 12, 2016

src_install() {
emake install INSTALL_ROOT="${D}" DESTDIR="${D}"
use doc && dodoc -r doc/doxygen.generated/html/
Copy link
Contributor

Choose a reason for hiding this comment

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

Better alternative:

use doc && HTML_DOCS+=( doc/doxygen.generated/html )
einstalldocs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll try to have this documentation installation method in next release. About appending to /dev/null I've noticed that my /dev/null is not full yet but I'm working on that..

Copy link
Contributor

Choose a reason for hiding this comment

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

The best is always to start the new branch right away, but as you're currently busy with /dev/null, just take your time.

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).
Projects
None yet
6 participants