Modify the workaround committed in 4ae8ff941b by only adding
-Wl,--allow-multiple-definition to the two link command lines that
require it, instead of adding it to hints/freebsd.sh
Otherwise, that linker flag is emitted into perl's global configuration
(/usr/local/lib/perl5/5.xx/mach/Config_heavy.pl), and might be used by
other ports which link in libperl, such as www/mod_perl2, which cannot
correctly handle any unexpected linker flags, leading to errors.
PR: 265516
Reported by: lev
Approved by: maintainer timeout (1 month)
Fixes: 4ae8ff941b
MFH: 2022Q3
PORTREVISON was set directly with 1. Before that the line did not exist. This leads to a "Ports with version numbers going backwards" warning.
PORTREVISION now set one higher than the master port NGINX.
Discussed with: tcberner
Sponsored by: Netzkommune GmbH
FAILED: opencl_clang_options.inc ../.build/opencl_clang_options.inc
cd ../.build && /usr/bin/llvm-tblgen -gen-opt-parser-defs -I /usr/local/llvm15/include -I . opencl_clang_options.td --write-if-changed -o opencl_clang_options.inc -d opencl_clang_options.inc.d
Included from opencl_clang_options.td:8:
/usr/local/llvm15/include/llvm/Option/OptParser.td:16:66: error: Variable not defined: 'false'
class OptionKind<string name, int precedence = 0, bit sentinel = false> {
^
Included from opencl_clang_options.td:8:
/usr/local/llvm15/include/llvm/Option/OptParser.td:25:18: error: Value not specified for template argument #2 (OptionKind:sentinel) of subclass 'OptionKind'!
def KIND_GROUP : OptionKind<"Group">;
^
The WWW macro was supposewd to hold only one URL pointing to the most
useful starting point for a user searching for additional information,
configuration examples, etc.
Some port maintainers have set the WWW macro to a list of URLs,
breaking assumptions by scripts and tools in the ports system and of
external users of the ports system.
This change allows WWW to hold a list of URLs by only considering the
first list element in places where only a single URL is supported.
This mirrors the previous behavior of only using the first line tagged
with "WWW: " in the pkg-descr file.
Approved by: portmgr (tcberner)
Differential Revision: https://reviews.freebsd.org/D36558
This change has been accepted as part of review D36558. A follow-up
commit will apply the reminder of the patches in that review.
A separate commit is used since providing default values for certain
ports is logically different than support for multiple URLs in WWW.
This commit adds default WWW values if the following conditions are
met:
1) no value assigned to the WWW macro by the port
2) at least one of USE_GITHUB, USE_GITLAB, or USES=pear is used in
the port
Further defaults for USES cases could be added at a later time.
The following values are used as default URLs:
USES=pear: https://pear.php.net/package/${PORTNAME}/
USE_GITHUB: https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/
USE_GITLAB: https://gitlab.com/${GL_ACCOUNT}/${GL_PROJECT}/
If both a USES case and USE_GITHUB or USE_GITLAB apply, the default
URL of the USES case takes precedence.
Approved by: portmgr (tcberner)