[MacPorts] #37455: fdupes build broken
#37455: fdupes build broken --------------------+-------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: fdupes --------------------+-------------------------------- see attached log file {{{ cube:~ dave% sudo port install fdupes---> Building fdupes Error: org.macports.build for port fdupes returned: command execution failed Please see the log file for port fdupes for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_fdupes/fdupes/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port fdupes failed }}} -- Ticket URL: <https://trac.macports.org/ticket/37455> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37455: fdupes is not UsingTheRightCompiler ---------------------+-------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: fdupes | ---------------------+-------------------------------- Changes (by ryandesign@…): * cc: nomaintainer@… (removed) Comment: The log says: {{{ :info:build gcc: Error: You should be using ${configure.cc} :info:build See https://trac.macports.org/wiki/UsingTheRightCompiler :info:build To suppress this error for the purposes of getting things done, :info:build edit the binpath variable in /opt/local/etc/macports/macports.conf. }}} -- Ticket URL: <https://trac.macports.org/ticket/37455#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37455: fdupes is not UsingTheRightCompiler ---------------------+-------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: fdupes | ---------------------+-------------------------------- Comment (by dave@…): It took me a while to realize that you were only quoting the log in order to justify your change to the Summary. To make it work you can add this to the {{{post-patch}}} block: {{{ reinplace "s|gcc|${configure.cc}|g" ${worksrcpath}/Makefile }}} -- Ticket URL: <https://trac.macports.org/ticket/37455#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37455: fdupes is not UsingTheRightCompiler ---------------------+-------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: fdupes | ---------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * keywords: => haspatch Comment: Replying to [comment:2 dave@…]:
It took me a while to realize that you were only quoting the log in order to justify your change to the Summary.
Yes; the summary should describe the actual problem; "build broken" is very generic and not descriptive. I also wanted to point out that the error message was self-imposed; you have evidently followed the steps in UsingTheRightCompiler, which are designed to provoke this error message; users who have not done so would not have been affected.
To make it work you can add this to the {{{post-patch}}} block:
{{{ reinplace "s|gcc|${configure.cc}|g" ${worksrcpath}/Makefile }}}
Thanks, I'll look into it. -- Ticket URL: <https://trac.macports.org/ticket/37455#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37455: fdupes is not UsingTheRightCompiler ---------------------+-------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: fdupes | ---------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Such a reinplace would use the right compiler, but would not fix the other problem that ports that aren't using the right compiler usually suffer from as well, which is using the right -arch flags. The problem is the Makefile is poorly-written and does not expose the usual variables one uses to influence these things. Fortunately a newer development version is available, and its Makefile is a bit improved, so I back-ported some of those changes in r100902. -- Ticket URL: <https://trac.macports.org/ticket/37455#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts