Bug 245466

Summary: java/java-cup: Update to 11.b.20160615, Remove BROKEN
Product: Ports & Packages Reporter: Jashank Jeremy <freebsd>
Component: Individual Port(s)Assignee: Rene Ladan <rene>
Status: Closed FIXED    
Severity: Affects Many People CC: edmondas, rene
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (edmondas)
koobs: merge-quarterly?
Hardware: Any   
OS: Any   
Attachments:
Description Flags
ports/java/java-cup: 11.a -> 11b.20160615
none
ports/java/java-cup: 11.a -> 11b.20160615 (patch v2)
none
Portlinted version, with LICENSE and fixed startup script
none
ports/java/java-cup: 11.a -> 11b.20160615 (patch v4) none

Description Jashank Jeremy 2020-04-09 02:50:22 UTC
Created attachment 213204 [details]
ports/java/java-cup: 11.a -> 11b.20160615

Hello!

This port was marked broken/unfetchable, but CUP is still alive.
Attached is a patch (Git-flavoured; sorry) that brings this port up-to-date.
Comment 1 Jashank Jeremy 2020-04-09 03:32:53 UTC
Created attachment 213206 [details]
ports/java/java-cup: 11.a -> 11b.20160615 (patch v2)

Reroll the patch with a plist (noted while checking on bug 245447).
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2020-04-09 04:09:41 UTC
Thank you for the patch Jeremy. Does this change just fix fetching the distfile, or does it also specifically address the BROKEN_arm* build failures as well?
Comment 3 Jashank Jeremy 2020-04-09 04:28:53 UTC
Hey Kubilay!  This update fixes up the master site, so it's no longer unfetchable.  As I've opted to cheap out and just grab a pre-built jar from upstream, the build failures should have gone away too :-)

(My guess is that the build issues have gone away with intervening JVM updates --- but I don't have anything in place to test that on FreeBSD/arm.)
Comment 4 Edmondas Girkantas 2020-04-11 12:36:27 UTC
Hi, thank you for submitted patch.
By some reason I was on able to apply it locally.

Few things that I would like to discuss:
1. Now this port just use prebuilt binary, is it good practice? Usually all ports build a software from the source code.

2. Not sure regarding LICENSE, my suggestion would be to use SMLNJ license as in lang/smlnj port.

3. I did check with portlint and changed the order of some lines.

4. CUP_VERSION placeholder in java-cup.sh.in was not replaced after installation to proper value, so maybe we don't need that variable and just use symlinked version ${JAVAJARDIR}/java-cup.jar?

See java-cup.diff for changes.
Comment 5 Edmondas Girkantas 2020-04-11 12:37:13 UTC
Created attachment 213282 [details]
Portlinted version, with LICENSE and fixed startup script
Comment 6 Jashank Jeremy 2020-04-17 04:30:43 UTC
At 2020-04-11 12:36:27 +0000, Edmondas Girkantas wrote:
> By some reason I was on able to apply it locally.

Could you expand on that?

> Now this port just use prebuilt binary, is it good practice? Usually all ports build a software from the source code.

See bug 245447 comment 3 for more explanation.

> my suggestion would be to use SMLNJ license as in lang/smlnj port.

OK.

> CUP_VERSION placeholder in java-cup.sh.in was not replaced after installation to proper value

Whoops!  I'll fix that up and reroll my patch now.
Comment 7 Jashank Jeremy 2020-04-17 04:30:48 UTC
Created attachment 213478 [details]
ports/java/java-cup: 11.a -> 11b.20160615 (patch v4)
Comment 8 commit-hook freebsd_committer freebsd_triage 2020-05-23 11:41:08 UTC
A commit references this bug:

Author: rene
Date: Sat May 23 11:40:32 UTC 2020
New revision: 536291
URL: https://svnweb.freebsd.org/changeset/ports/536291

Log:
  java/java-cup: update to 11.b.20160615 and unexpire

  Further changes:
  - use a prebuilt binary instead of building from source
  - change license to SMLNJ in agreement with maintainer

  PR:		245466
  Submitted by:	Jashank Jeremy
  Approved by:	maintainer
  MFH:		2020Q2

Changes:
  head/java/java-cup/Makefile
  head/java/java-cup/distinfo
  head/java/java-cup/files/
  head/java/java-cup/files/java-cup.sh.in
  head/java/java-cup/pkg-descr
Comment 9 commit-hook freebsd_committer freebsd_triage 2020-05-23 16:15:00 UTC
A commit references this bug:

Author: rene
Date: Sat May 23 16:14:54 UTC 2020
New revision: 536313
URL: https://svnweb.freebsd.org/changeset/ports/536313

Log:
  MFH: r536291

  java/java-cup: update to 11.b.20160615 and unexpire

  Further changes:
  - use a prebuilt binary instead of building from source
  - change license to SMLNJ in agreement with maintainer

  PR:		245466
  Submitted by:	Jashank Jeremy
  Approved by:	maintainer

  Approved by:	ports-secteam (joneum)

Changes:
_U  branches/2020Q2/
  branches/2020Q2/java/java-cup/Makefile
  branches/2020Q2/java/java-cup/distinfo
  branches/2020Q2/java/java-cup/files/
  branches/2020Q2/java/java-cup/pkg-descr