Bug 257408 - devel/opengrok: Unknown option: -w
Summary: devel/opengrok: Unknown option: -w
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Don Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-25 11:59 UTC by Yuri
Modified: 2023-03-08 20:53 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (truckman)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri 2021-07-25 11:59:06 UTC
opengrok-1.3.16
openjdk11-11.0.11+9.1

Trying to run opengrok wrapper results:

INFO: Indexer options: [-c, /usr/local/bin/exctags, -w, opengrok, -a, /usr/local/share/opengrok/opengrok.jar, -c, /usr/local/bin/uctags, -s, /data/src, -d, /data/opengrok/data, -H, -P, -S, -G, -W, /data/opengrok/etc/configuration.xml, -U, http://......../opengrok]
** Unknown option: -w

I didn't specify -w and it's rather hardcoded in the wrapper itself.

While here, I didn't specify -c /usr/local/bin/exctags found above as well, and it's rather confusing to have that in wrapper while the port depends on universal-ctags.
Comment 1 Lucas Holt 2021-12-18 23:26:30 UTC
Someone needs to modify the files/opengrok.in file and change extags to uctags and remove the -w opengrok.
Comment 2 Don Lewis freebsd_committer freebsd_triage 2023-03-08 20:51:12 UTC
Still a problem?  I've been using opengrok since:

commit 065c811cfc470bd7495c11f895b7ae0bd2bb8dde
Author: Don Lewis <truckman@FreeBSD.org>
Date:   Tue Apr 26 11:08:39 2022 -0700

    devel/opengrok: Upgrade to version 1.7.31
    
    Upgrade opengrok to the latest upstream version to fix CVE-2021-2322,
    which was actually fixed upstream in 1.6.7.
    
    Convert the wrapper script from /bin/csh to /bin/sh.
    
    Jave 11+ is required.
    
    PR:             260534
    MFH:            2022Q2
    Security:       1135e939-62b4-11ec-b8e2-1c1b0d9ea7e6
Comment 3 Yuri 2023-03-08 20:53:26 UTC
Sorry, forgot about this PR.  No longer an issue, and proper ctags version is used now as well.  Closing.