Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572486 - dev-java/piccolo2d-3.0 version bump
Summary: dev-java/piccolo2d-3.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks: 572492
  Show dependency tree
 
Reported: 2016-01-21 08:00 UTC by Olivier Diotte
Modified: 2016-01-24 22:22 UTC (History)
0 users

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


Attachments
1.2.1-r2 -> 3.0 patch (0003-piccolo2d-3.0-r1-New-release.patch,5.93 KB, patch)
2016-01-21 08:00 UTC, Olivier Diotte
Details | Diff
Patch 3.0-r1 (try 2) (0001-piccolo2d-3.0-r1-New-release.patch,5.60 KB, patch)
2016-01-23 18:38 UTC, Olivier Diotte
Details | Diff
Patch 3.0-r1 (try 2) (0001-piccolo2d-3.0-r1-New-release.patch,2.40 KB, patch)
2016-01-23 18:46 UTC, Olivier Diotte
Details | Diff
Patch 3.0-r1 (try 3) (0001-piccolo2d-3.0-r1-New-release.patch,2.40 KB, patch)
2016-01-23 18:48 UTC, Olivier Diotte
Details | Diff
Patch 3.0-r1 (try 3) (0001-piccolo2d-3.0-r1-New-release.patch,2.40 KB, patch)
2016-01-23 18:49 UTC, Olivier Diotte
Details | Diff
piccolo-3.0.ebuild (piccolo-3.0.ebuild,1.05 KB, text/plain)
2016-01-23 19:21 UTC, Patrice Clement
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Diotte 2016-01-21 08:00:48 UTC
Created attachment 423462 [details, diff]
1.2.1-r2 -> 3.0 patch

Here is a new version of piccolo2d, this is needed to make ScrollViewer work in tesseract (bug to be filed and linked here soon).

I used piccolo2d-1.2.1-r2.ebuild as a base so the patch should apply cleanly if that file is copied over to piccolo2d-3.0-r1.ebuild and then applied to that.
Comment 1 Olivier Diotte 2016-01-21 08:01:26 UTC
Related to/supersedes #308237
Comment 2 James Le Cuirot gentoo-dev 2016-01-22 12:11:56 UTC
Many thanks for the patch. It's good to know that it can be built directly with javac despite them using Maven now but using ejavac directly is discouraged. Please use the java-pkg-simple eclass as described in this link and contact us in #gentoo-java if you need help.

https://wiki.gentoo.org/wiki/Java_Developer_Guide#java-pkg-simple
Comment 3 Olivier Diotte 2016-01-23 18:37:48 UTC
New patch using java-pkg-simple

I also fixed the 'examples' and 'source' USE flags (meaning they now work) but removed the 'doc' flag because there doesn't seem to be javadoc at all (at least I couldn't find it).
Comment 4 Olivier Diotte 2016-01-23 18:38:28 UTC
Created attachment 423712 [details, diff]
Patch 3.0-r1 (try 2)
Comment 5 Olivier Diotte 2016-01-23 18:46:32 UTC
Created attachment 423714 [details, diff]
Patch 3.0-r1 (try 2)
Comment 6 Olivier Diotte 2016-01-23 18:48:54 UTC
Created attachment 423716 [details, diff]
Patch 3.0-r1 (try 3)

Ok, so my second patch actually still contained a diff of the Manifest so I removed it in this one.

(As for the second "try 2", it is the same thing as this, except I mistakenly submitted the thing too fast)
Comment 7 Olivier Diotte 2016-01-23 18:49:44 UTC
Created attachment 423718 [details, diff]
Patch 3.0-r1 (try 3)

Obsoleting old patches
Comment 8 Patrice Clement gentoo-dev 2016-01-23 19:16:49 UTC
Sorry but your patch is messed up and I can't apply it cleanly against the repo. The first line of your patch starts with:

diff --git a/dev-java/piccolo2d/piccolo2d-3.0-r1.ebuild b/dev-java/piccolo2d/piccolo2d-3.0-r1.ebuild

You're diffing from piccolo-3.0-r1.ebuild but this file does not exist in reality. I take it you created a copy of piccolo2d-1.2.1-r2.ebuild and then diff'd from it. piccolo-3.0 being the first revision, there's no need to add the prefix -r1 to the end: the name "piccolo-3.0.ebuild" suffices. 

BTW, if you can, send us a PR over on Github. It is MUCH easier to review changes from there than looking at diffs and patches on Bugzilla.
Comment 9 Patrice Clement gentoo-dev 2016-01-23 19:17:50 UTC
A mirror of the Gentoo repository is located here: https://github.com/gentoo/gentoo
Comment 10 Patrice Clement gentoo-dev 2016-01-23 19:21:07 UTC
Created attachment 423720 [details]
piccolo-3.0.ebuild

This is how I'd go about bumping piccolo.
Comment 11 Olivier Diotte 2016-01-24 15:17:31 UTC
(In reply to Patrice Clement from comment #8)
> Sorry but your patch is messed up and I can't apply it cleanly against the
> repo. The first line of your patch starts with:
> 
> diff --git a/dev-java/piccolo2d/piccolo2d-3.0-r1.ebuild
> b/dev-java/piccolo2d/piccolo2d-3.0-r1.ebuild
> 
> You're diffing from piccolo-3.0-r1.ebuild but this file does not exist in
> reality. I take it you created a copy of piccolo2d-1.2.1-r2.ebuild and then
> diff'd from it. piccolo-3.0 being the first revision, there's no need to add
> the prefix -r1 to the end: the name "piccolo-3.0.ebuild" suffices. 
> 
> BTW, if you can, send us a PR over on Github. It is MUCH easier to review
> changes from there than looking at diffs and patches on Bugzilla.

Yes, I have a previous patch that git mv 1.2.1 -> 3.0 which I mistakenly thought I shouldn't send (not that a mv was a good idea to begin with).

Noted for revisions and PRs on Github.

Now that you have fixed the patch, I suppose things are all done on my end, right?
Comment 12 Olivier Diotte 2016-01-24 15:46:18 UTC
Small nitpick: the package is dev-java/piccolo2d, not dev-java/piccolo, so I think the attachment is misnamed.
Comment 13 Patrice Clement gentoo-dev 2016-01-24 15:51:19 UTC
We don't want to take credit for it ;) How about sending us a PR to get familiar with contributing to the repo?
Comment 14 Olivier Diotte 2016-01-24 19:53:30 UTC
(In reply to Patrice Clement from comment #13)
> We don't want to take credit for it ;) How about sending us a PR to get
> familiar with contributing to the repo?

Done, here is the link: https://github.com/gentoo/gentoo/pull/717
Comment 15 Patrice Clement gentoo-dev 2016-01-24 22:16:16 UTC
commit 9967127 (HEAD, master)
Merge: 60ce8b9 7dffe7a
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Sun Jan 24 22:11:50 2016 +0000

    Merge remote-tracking branch 'github/pr/717'. Fixes bug 572486.
    
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Comment 16 Patrice Clement gentoo-dev 2016-01-24 22:22:29 UTC
Please make sure you also generate the Manifest file and commit it along with your ebuild. 

$ repoman manifest

and Bob's your uncle.