[MacPorts] #50974: configure.compiler-append has no effect on the command line. No warnings generated.
#50974: configure.compiler-append has no effect on the command line. No warnings generated. --------------------------------+-------------------------------- Reporter: fmw@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.4 Keywords: configure.compiler | Port: ngspice --------------------------------+-------------------------------- When trying to install ngspice, -universal on 10.5.8, failure log suggested '-read_only_relocs suppress' was required. To test, I tried to add this on the command line. {{{ % sudo port clean ngspice % sudo port install ngspice -universal configure.cflags- append='-read_only_relocs suppress' }}} This had no effect. Inspecting main.log, before and after this test showed no change to the line:- {{{ CFLAGS='-Os -arch i386' }}} There was no warning message suggesting "configure.cflags-append" was not being recognised.[[BR]] The workaround was to NOT use -append but include the normal default flags (-Os) [except -arch i386, which gets added regardless], in a full replacement configure.cflags. {{{ % sudo port clean ngspice % sudo port install ngspice -universal configure.cflags='-Os -read_only_relocs suppress' }}} The same behaviour occurs for configure.ldflags[[BR]] Perhaps this is related to defects like #41418 -- Ticket URL: <https://trac.macports.org/ticket/50974> MacPorts <https://www.macports.org/> Ports system for OS X
#50974: configure.compiler-append has no effect on the command line. No warnings generated. ----------------------+-------------------------------- Reporter: fmw@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.4 Resolution: | Keywords: configure.compiler Port: ngspice | ----------------------+-------------------------------- Comment (by ryandesign@…): It was probably never intended for users to use ''var'', ''var''-append, ''var''-prepend, ''var''-replace, ''var''-strsed, or ''var''-delete on the command line. -- Ticket URL: <https://trac.macports.org/ticket/50974#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50974: configure.compiler-append has no effect on the command line. No warnings generated. ---------------------+-------------------------------- Reporter: fmw@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.4 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Changes (by ryandesign@…): * keywords: configure.compiler => * port: ngspice => -- Ticket URL: <https://trac.macports.org/ticket/50974#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50974: configure.compiler-append has no effect on the command line. No warnings generated. ---------------------+-------------------------------- Reporter: fmw@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.4 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by fmw@…): Replying to [comment:2 ryandesign@…]: Sorry, I meant the keyword to say configure.cflags[[BR]] If the command line supports the ''configure.cflags'', one would expect an error message if it is used incorrectly by adding the ''-append'' which is then not actioned.[[BR]] -- Ticket URL: <https://trac.macports.org/ticket/50974#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50974: configure.compiler-append has no effect on the command line. No warnings generated. ---------------------+-------------------------------- Reporter: fmw@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.4 Resolution: | Keywords: Port: | ---------------------+-------------------------------- Comment (by ryandesign@…): Most variables, like configure.cflags, are intended to be used in a portfile or portgroup, not at the command line. And I don't think we've every claimed that modifiers like -append, -prepend, -replace, -strsed or -delete work on the command line, so I'm not surprised that they don't. -- Ticket URL: <https://trac.macports.org/ticket/50974#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts