Bug 248192 - 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
Summary: java/netbeans: Fails to build maven projects as non-root: Cannot run program ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Koop Mast
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2020-07-22 19:40 UTC by akruijff
Modified: 2021-04-08 21:01 UTC (History)
1 user (show)

See Also:
linimon: maintainer-feedback? (kwm)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.