Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890497 - games-strategy/freecol-1.0.0 version bump
Summary: games-strategy/freecol-1.0.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-01-11 17:48 UTC by tkzv
Modified: 2023-03-11 17:15 UTC (History)
1 user (show)

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


Attachments
the ebuild (freecol-1.0.0.ebuild,1.12 KB, text/plain)
2023-01-11 17:48 UTC, tkzv
Details
to replace freecol-0.11.6-gentoo.patch (freecol-1.0.0-gentoo.patch,922 bytes, text/plain)
2023-01-11 17:48 UTC, tkzv
Details
proposed changes (changes_proposal.diff,1.32 KB, text/plain)
2023-01-21 09:42 UTC, Volkmar W. Pogatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tkzv 2023-01-11 17:48:03 UTC
Created attachment 848233 [details]
the ebuild

The ebuild from games-strategy/freecol-0.11.6-r1 with small changes:

1. Different memory size for java-pkg_dolauncher
2. commons-cli-1.3.patch no longer needed.
3. Different line numbers in "${FILESDIR}"/${P}-gentoo.patch
Comment 1 tkzv 2023-01-11 17:48:57 UTC
Created attachment 848235 [details]
to replace freecol-0.11.6-gentoo.patch
Comment 2 Volkmar W. Pogatzki 2023-01-21 09:42:43 UTC
Created attachment 848907 [details]
proposed changes

(In reply to tkzv from comment #0)
> Created attachment 848233 [details]
> the ebuild
> [...]

- EAPI=8
- HTTPS for HOMEPAGE
- avoid redirect of SRC_URI
- needs findbugs-annotations
- source 11
- java-pkg_clean instead of "rm -v jars/* || die"
Comment 3 tkzv 2023-01-24 05:32:40 UTC
(In reply to Volkmar W. Pogatzki from comment #2)
> Created attachment 848907 [details]
> proposed changes
> 
> (In reply to tkzv from comment #0)
> > Created attachment 848233 [details]
> > the ebuild
> > [...]
> 
> - EAPI=8
> - HTTPS for HOMEPAGE
> - avoid redirect of SRC_URI
> - needs findbugs-annotations
> - source 11
> - java-pkg_clean instead of "rm -v jars/* || die"

What is the purpose of findbugs-annotations? Works for me without it.

Changing Java version to 11 is definitely needed.
Comment 4 Volkmar W. Pogatzki 2023-01-24 07:02:09 UTC
(In reply to tkzv from comment #3)
> (In reply to Volkmar W. Pogatzki from comment #2)
> [...]
> 
> What is the purpose of findbugs-annotations? Works for me without it.
> 
> [...]

Without findbugs-annotations I am getting compile errors:

warning: [options] system modules path not set in conjunction with -source 11
src/net/sf/freecol/FreeCol.java:65: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/common/model/Specification.java:54: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/common/util/Utils.java:59: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/server/ai/mission/TransportMission.java:58: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/common/model/Stance.java:25: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/server/model/ServerPlayer.java:113: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/server/control/InGameController.java:144: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/common/option/AudioMixerOption.java:36: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/common/util/CachingFunction.java:26: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/common/option/LanguageOption.java:40: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/client/gui/mapviewer/MapViewer.java:52: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
src/net/sf/freecol/client/gui/ModifierFormat.java:40: error: package edu.umd.cs.findbugs.annotations does not exist
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
                                      ^
Comment 5 tkzv 2023-01-25 04:43:16 UTC
(In reply to Volkmar W. Pogatzki from comment #4)
> (In reply to tkzv from comment #3)
> > (In reply to Volkmar W. Pogatzki from comment #2)
> > [...]
> > 
> > What is the purpose of findbugs-annotations? Works for me without it.
> > 
> > [...]
> 
> Without findbugs-annotations I am getting compile errors:
> 

Ah, I see. The files are no longer deleted by rm -v jars/*
Comment 6 Volkmar W. Pogatzki 2023-01-25 10:07:51 UTC
(In reply to tkzv from comment #5)
> [...]> Ah, I see. The files are no longer deleted by rm -v jars/*

And tests in the PR now simplified with
JAVA_TEST_RUN_ONLY="net.sf.freecol.AllTests"
Comment 7 Larry the Git Cow gentoo-dev 2023-03-11 17:15:35 UTC
The bug has been closed via the following commit(s):

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

commit 7a77562191c39c59311648690f33f285694a6551
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2023-01-21 09:06:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-11 17:15:07 +0000

    games-strategy/freecol: add 1.0.0
    
    Thanks to tkzv (vopros4@inbox.ru) for the excellent ebuild attached to
    https://bugs.gentoo.org/890497.
    
    Some improvements applied here:
    - EAPI=8
    - HTTPS for HOMEPAGE
    - avoid redirect of SRC_URI
    - adds findbugs-annotations to CP_DEPEND
    - switches to source 11
    - java-pkg_clean instead of "rm -v jars/* || die"
    - adds JAVA_PKG_IUSE="doc source test"
    - switches to java-pkg-simple.eclass for easier handling of tests and
      javadoc
    - adds DOCS array
    - enables tests
    
    Closes: https://bugs.gentoo.org/890497
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 games-strategy/freecol/Manifest             |  1 +
 games-strategy/freecol/freecol-1.0.0.ebuild | 76 +++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)