[MacPorts] #47095: GQRX mdmg build fails
#47095: GQRX mdmg build fails ------------------------+-------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: gqrx mdmg | Port: gqrx ------------------------+-------------------------------- I'm trying to build an mdmg package of GQRX to install on a different OSX box. Everything seems to build ok, but the issue is in constructing the final package. It seems a file is missing. The command I give is : {{{ sudo port mdmg gqrx +xquartz }}} It fails after a while with this in the error log: {{{ :info:pkg cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gqrx/gqrx/work/gqrx-20150307-component.pkg: No such file or directory :info:pkg Command failed: cp -PR /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gqrx/gqrx/work/gqrx-20150307-component.pkg /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gqrx/gqrx/work/mpkg_packages :info:pkg Exit code: 1 :error:pkg org.macports.mpkg for port gqrx returned: command execution failed :debug:pkg Error code: CHILDSTATUS 66797 1 :debug:pkg Backtrace: command execution failed while executing "system "cp -PR ${pkgpath} ${packages_path}"" (procedure "package_mpkg" line 55) invoked from within "package_mpkg $subport $epoch $version $revision" (procedure "portmpkg::mpkg_main" line 9) invoked from within "portmpkg::mpkg_main org.macports.mpkg" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:pkg Warning: targets not executed for gqrx: org.macports.mdmg org.macports.mpkg :notice:pkg Please see the log file for port gqrx for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gqrx/gqrx/main.log }}} The file gqrx-20150307-component.pkg isn't created anywhere. Copying gqrx-20150307.pkg to gqrx-20150307-component.pkg fails with an error relating to bundles, so I'm guessing it's not the right answer. I've cleaned GQRX prior to building, I've gone in and wiped out the build directory too, but I still eventually get the same error. Any ideas? David -- Ticket URL: <https://trac.macports.org/ticket/47095> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Changes (by mf2k@…): * owner: macports-tickets@… => michaelld@… * keywords: gqrx mdmg => Comment: In the future, please use Cc the port maintainers ({{{port info --maintainers gqrx}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by macports@…): Replying to [comment:1 mf2k@…]:
In the future, please use Cc the port maintainers ({{{port info --maintainers gqrx}}}), if any.
My apologies. David -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by michaelld@…): Can you attach the fail log? That might help. -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by macports@…): Replying to [comment:3 michaelld@…]:
Can you attach the fail log? That might help. Is the attached log the one you wanted?
David -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by michaelld@…): Yes, that's the log. I haven't had time to try out this command yet. Have you tried creating an mdmg of any other port(s)? Do they work, or do they fail similarly? -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by macports@…): Replying to [comment:5 michaelld@…]:
Yes, that's the log. I haven't had time to try out this command yet. Have you tried creating an mdmg of any other port(s)? Do they work, or do they fail similarly?
I've been able to build disk images for gpredict and for rtl-sdr with no problems - just tested that. I did manage to find a copy of packaagemanager.app which has stopped the warnings in the log, but the error still persists. -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by michaelld@…): Hmm .. yes, I see what you mean. I get the same error when trying even "sudo port mdmg rtl-sdr". I'm guessing this is a MacPorts bug. I'll ping some MP devs to look further into this. -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by michaelld@…): OK; a little more progress. You have to have PackageMaker.app installed either into a place where MacPorts expects it, or you need to set "packagemaker_path" to be the full path to and including "PackageMaker.app", e.g., "/Applications/Utilities/PackageMaker.app" (but without the """s). According to "/opt/local/etc/macports/macports.conf", {{{ # Path to PackageMaker.app # It may be necessary to set this with Xcode >= 4.3, as that version # requires PackageMaker to be installed manually from the Auxiliary Tools for # Xcode disk image. The default is /Applications/PackageMaker.app with Xcode # 4.3 and ${developer_dir}/Applications/Utilities/PackageMaker.app with older # versions. }}} So, what I did was comment in the line starting with "packagemaker_path", and set it to the correct path. This did the trick for me; hopefully it will for you too. -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by macports@…): Replying to [comment:8 michaelld@…]:
OK; a little more progress. You have to have PackageMaker.app installed either into a place where MacPorts expects it, or you need to set "packagemaker_path" to be the full path to and including "PackageMaker.app", e.g., "/Applications/Utilities/PackageMaker.app" (but without the """s). According to "/opt/local/etc/macports/macports.conf", {{{ # Path to PackageMaker.app # It may be necessary to set this with Xcode >= 4.3, as that version # requires PackageMaker to be installed manually from the Auxiliary Tools for # Xcode disk image. The default is /Applications/PackageMaker.app with Xcode # 4.3 and ${developer_dir}/Applications/Utilities/PackageMaker.app with older # versions. }}} So, what I did was comment in the line starting with "packagemaker_path", and set it to the correct path. This did the trick for me; hopefully it will for you too.
Installing packagemaker.app does get rid of the warning s about not being able to find it, but still doesn;t let the gqrx mdmg be built. The failure is still : {{{ :info:pkg cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gqrx/gqrx/work/gqrx-20150307-component.pkg: No such file or directory :info:pkg Command failed: cp -PR /opt/local/var/macports/build }}} I've had a look, but I can't see where gqrx-20150307-component.pkg is suposed to be built, just looks like it's trying to copy a file that is never made. I've attached the full build log again, now that the packagemaker warnings/errors are gone. -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by michaelld@…): There should be calls to PackageMaker.app interspersed throughout the log. So, I don't think the "packagemaker_path" setting is correct. Where is PackageMaker.app located on your install? Have you edited "/opt/local/etc/macports/macports.conf" to reflect this location in the "packagemaker_path" variable? If not, please do the edit, then "clean gqrx" and try again. -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gqrx | -------------------------+------------------------- Comment (by macports@…): Replying to [comment:10 michaelld@…]:
There should be calls to PackageMaker.app interspersed throughout the log. So, I don't think the "packagemaker_path" setting is correct. Where is PackageMaker.app located on your install? Have you edited "/opt/local/etc/macports/macports.conf" to reflect this location in the "packagemaker_path" variable? If not, please do the edit, then "clean gqrx" and try again.
That got it! Looks like it built correctly, I'll test the resulting image this eve on the target computer. Many thanks. David -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#47095: GQRX mdmg build fails -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: gqrx | -------------------------+------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => fixed Comment: Excellent! YW. -- Ticket URL: <https://trac.macports.org/ticket/47095#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts