Summary: | Mk/Uses/ninja.mk: 'USES=cmake emacs' results in build error with ninja | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Yasuhiro Kimura <yasu> | ||||||||
Component: | Individual Port(s) | Assignee: | Port Management Team <portmgr> | ||||||||
Status: | Open --- | ||||||||||
Severity: | Affects Only Me | CC: | kde, lwhsu, tcberner | ||||||||
Priority: | --- | Flags: | yasu:
exp-run?
|
||||||||
Version: | Latest | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
URL: | https://reviews.freebsd.org/D27494 | ||||||||||
Attachments: |
|
Description
Yasuhiro Kimura
2020-11-16 17:50:17 UTC
Over to maintainer Moin moin You could try cmake:noninja in the meantime. https://svnweb.freebsd.org/ports/head/Mk/Uses/cmake.mk?revision=488341&view=markup#l10 This flag to cmake.mk was added specifically to disable usage of ninja. mfg Tobias The problem is found. If a port uses 'USES=cmake' and also defines do-install target, then `make describe` produces such warning message as below. make: "/usr0/freebsd/ports/head/sysutils/osquery/Makefile" line 78: warning: duplicate script for target "do-install" ignored make: "/usr0/freebsd/ports/head/Mk/Uses/ninja.mk" line 29: warning: using previous script for "do-install" defined here I'll investigate and update patch to fix it. So please suspend exp-run until new patch is unloaded. Created attachment 219766 [details]
Updated patch file
Fix warning messages with following changes.
* In Mk/bsd.port.mk define DO_MAKE_INSTALL and use it in do-install target.
* In Mk/Uses/ninja.mk re-define DO_MAKE_INSTALL so ninja is directly invoked.
So please do exp-run with attached patch instead of original one.
(In reply to Yasuhiro KIMURA from comment #4) Can you open a review on https://reviews.freebsd.org/ ? Created attachment 220329 [details]
Updated patch file
Change custom targets of ports using ninja so they don't use MAKE_{ARGS,CMD,ENV}.
(In reply to Antoine Brodin from comment #5) Sorry for late response. I created following review. https://reviews.freebsd.org/D27494 |