Bug 248192

Summary: java/netbeans: Fails to build maven projects as non-root: Cannot run program "/usr/local/netbeans-11.3/java/maven/bin/mvn" (project) : error=13, Permission denied
Product: Ports & Packages Reporter: akruijff
Component: Individual Port(s)Assignee: Koop Mast <kwm>
Status: Closed FIXED    
Severity: Affects Some People CC: kwm
Priority: --- Keywords: needs-patch, needs-qa
Version: LatestFlags: linimon: maintainer-feedback? (kwm)
koobs: merge-quarterly?
Hardware: Any   
OS: Any   

Description akruijff 2020-07-22 19:40:24 UTC
Hi,

When I compile any given maven project as non root then the following message is shown:
Cannot run program "/usr/local/netbeans-11.3/java/maven/bin/mvn" (in directory "/home/akruijff/NetBeansProjects/mavenproject2"): error=13, Permission denied

ll /usr/local/netbeans-11.3/java/maven/bin/mvn gives:
-rw-r--r--  1 root  wheel  7383 Nov 10  2015 /usr/local/netbeans-11.3/java/maven/bin/mvn

It seems that the permissions are set wrong by the port. It should be -rxxr-xxr-x
Comment 1 commit-hook freebsd_committer 2021-04-08 21:00:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=acc1dff37c16eb482b718780aa9577f674ab5fe7

commit acc1dff37c16eb482b718780aa9577f674ab5fe7
Author:     Koop Mast <kwm@FreeBSD.org>
AuthorDate: 2021-04-08 20:45:13 +0000
Commit:     Koop Mast <kwm@FreeBSD.org>
CommitDate: 2021-04-08 20:59:07 +0000

    java/netbeans: update to 12.3.

    Set execute bit on maven binary so netbeans can run it. [1]

    PR:             248192 [1]
    Submitted by:   akruijff@dds.nl

 java/netbeans/Makefile                        |   4 +-
 java/netbeans/distinfo                        |   6 +-
 java/netbeans/files/patch-bin_netbeans (gone) |  10 -
 java/netbeans/pkg-plist                       | 559 ++++++++++++++------------
 4 files changed, 296 insertions(+), 283 deletions(-)
Comment 2 Koop Mast freebsd_committer 2021-04-08 21:01:49 UTC
Committed.