[MacPorts] #26045: Destroot should ignore white space when comparing configuration files for merge
#26045: Destroot should ignore white space when comparing configuration files for merge -----------------------------------------+---------------------------------- Reporter: mcl_guard-netmail@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.1 Keywords: | Port: any -----------------------------------------+---------------------------------- Target org.macports.destroot fails if files such as curl-config differ between configurations even by white space only. This isn't necessary as white space is unimportant in such files. -- Ticket URL: <http://trac.macports.org/ticket/26045> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26045: muniversal: Destroot should ignore white space when comparing configuration files for merge -----------------------------------------+---------------------------------- Reporter: mcl_guard-netmail@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: muniversal | Port: -----------------------------------------+---------------------------------- Changes (by jmr@…): * cc: mcalhoun@… (added) * keywords: => muniversal * component: base => ports * port: any => -- Ticket URL: <http://trac.macports.org/ticket/26045#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26045: muniversal: Destroot should ignore white space when comparing configuration files for merge -----------------------------------------+---------------------------------- Reporter: mcl_guard-netmail@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: muniversal | Port: -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Why would the whitespace differ? Can you attach your curl-config files that differed only in whitespace? I've not seen that happen before. -- Ticket URL: <http://trac.macports.org/ticket/26045#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26045: muniversal: Destroot should ignore white space when comparing configuration files for merge -----------------------------------------+---------------------------------- Reporter: mcl_guard-netmail@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: muniversal | Port: -----------------------------------------+---------------------------------- Comment(by mcl_guard-netmail@…): Replying to [comment:2 ryandesign@…]:
Why would the whitespace differ? Can you attach your curl-config files that differed only in whitespace? I've not seen that happen before.
Some ports such as curl produce references to "host_alias=" or "host=" in the configuration file for universal builds. If these are removed without removing the leading space it produces the effect otherwise this does not seem to happen. Inserting the following in the post-configure section of the curl port file generates the effect. reinplace -E {s|\'--host=[^\']+\'||g} \ ${dir}/curl-config \ ${dir}/libcurl.pc reinplace -E {s|\'host_alias=[^\']+\'||g} \ ${dir}/curl-config \ ${dir}/libcurl.pc I have since done the obvious and changed the the regex to remove the space before the parameter. Ideally, white space shouldn't be a factor for the comparison it the first place. I've attached a the files responsible for the record. -- Ticket URL: <http://trac.macports.org/ticket/26045#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26045: muniversal: Destroot should ignore white space when comparing configuration files for merge -----------------------------------------+---------------------------------- Reporter: mcl_guard-netmail@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: muniversal | Port: -----------------------------------------+---------------------------------- Comment(by mcl_guard-netmail@…): Try that again without the weird formatting. {{{ #strip --host referances from config record reinplace -E {s|[ \t]*\'--host=[^\']+\'||g} \ ${dir}/curl-config \ ${dir}/libcurl.pc reinplace -E {s|[ \t]*\'host_alias=[^\']+\'||g} \ ${dir}/curl-config \ ${dir}/libcurl.pc }}} -- Ticket URL: <https://trac.macports.org/ticket/26045#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts