Opened 11 years ago
Closed 14 months ago
#41828 closed defect (fixed)
port 2.2.1 mpkg build fails after package has been created
Reported by: | macports.org.ninja@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 2.4.0 |
Component: | base | Version: | 2.2.1 |
Keywords: | Cc: | blair (Blair Zajac), ctreleaven (Craig Treleaven), alcarola (Mikael Kurula), Feuermurmel (Michael Schwarz) | |
Port: |
Description
Trying to build using port mpkg $anypackage
fails; e.g. below output from port mpkg bzip2
.
It 'seems to me' to be an improperly named variable, as it is trying to copy $package-$version-component.pkg
which 'does not' exists, whereas $package-$version.png
'does'.
Most relevant log output:
:info:mpkg cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6-component.pkg: No such file or directory :info:mpkg Command failed: cp -PR /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6-component.pkg /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/mpkg_packages :info:mpkg Exit code: 1 :error:mpkg org.macports.mpkg for port bzip2 returned: command execution failed :debug:mpkg Error code: CHILDSTATUS 82280 1 :debug:mpkg 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 "$procedure $targetname"
Actual files and directories:
$ tree /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/
├── Distribution
├── bzip2-1.0.6.pkg
│ └── Contents
│ ├── Archive.bom
│ ├── Archive.pax.gz
│ ├── Info.plist
│ ├── PkgInfo
│ └── Resources
│ ├── Archive.sizes
│ ├── Description.plist
│ └── English.lproj
│ ├── Welcome.html
│ └── background.tiff
├── destroot
│ └── opt
│ └── local
│ ├── bin
│ │ ├── bunzip2
│ │ ├── bzcat
│ │ ├── bzcmp -> bzdiff
│ │ ├── bzdiff
│ │ ├── bzegrep -> bzgrep
│ │ ├── bzfgrep -> bzgrep
│ │ ├── bzgrep
│ │ ├── bzip2
│ │ ├── bzip2recover
│ │ ├── bzless -> bzmore
│ │ └── bzmore
│ ├── include
│ │ └── bzlib.h
│ ├── lib
│ │ ├── libbz2.1.0.6.dylib
│ │ ├── libbz2.1.0.dylib -> libbz2.1.0.6.dylib
│ │ ├── libbz2.1.dylib -> libbz2.1.0.6.dylib
│ │ ├── libbz2.a
│ │ └── libbz2.dylib -> libbz2.1.0.6.dylib
│ └── share
│ └── man
│ └── man1
│ ├── bzcmp.1.gz -> bzdiff.1.gz
│ ├── bzdiff.1.gz
│ ├── bzegrep.1.gz -> bzgrep.1.gz
│ ├── bzfgrep.1.gz -> bzgrep.1.gz
│ ├── bzgrep.1.gz
│ ├── bzip2.1.gz
│ ├── bzless.1.gz -> bzmore.1.gz
│ └── bzmore.1.gz
├── mpkg_packages
├── mpkg_resources
├── pkg_resources
│ └── English.lproj
│ ├── Welcome.html
│ └── background.tiff
└── pkg_scripts
18 directories, 36 files
Full log output will be attached.
Attachments (1)
Change History (11)
Changed 11 years ago by macports.org.ninja@…
comment:1 Changed 11 years ago by macports.org.ninja@…
Please move this ticket if I put it in the wrong queue.
comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | blair@… added |
---|---|
Keywords: | mpkg cp removed |
Port: | * removed |
Priority: | Not set → Normal |
Confirmed with trunk. Blair, I think you made the most changes to this file recently; maybe they're related to this problem?
comment:3 Changed 11 years ago by jmroot (Joshua Root)
You're on Mavericks but for some reason a bundle package has been built instead of a flat one. Do you have PackageMaker installed?
comment:4 Changed 11 years ago by macports.org.ninja@…
I tried severals tacks before reporting a bug and honestly can't remember right now whether I cleaned between attempts, so that might be cruft from other attempts. Want me to fire it up again with the directories cleaned? (I am not often at my Mac these days, so it might be a few days).
Correct, am on Mavericks and have installed PackageMaker.
comment:5 Changed 10 years ago by alcarola (Mikael Kurula)
Does somebody have a solution to this problem? I'm on Yosemite, having the same problem trying to mdmg Octave. I also have PackageManager installed and Xcode version 6.1.
Edit: In case it matters, I have installed MacPorts 2.3.99 (as of yesterday, only the "base" version) in /opt/octave, following the instructions in https://guide.macports.org/chunked/using.binaries.html and https://guide.macports.org/chunked/installing.macports.html#installing.macports.source.multiple
I have no other macports installation on the system.
comment:8 Changed 9 years ago by jwrn3@…
Still seeing this with ports v.2.3.3, XCode 6.3 and Yosemite 10.10.3. For example:
sudo port mpkg py-matplotlib
Fails with:
:info:pkg cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-matplotlib/py-matplotlib/work/py-matplotlib-1.4.3-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_ports_python_py-matplotlib/py-matplotlib/work/py-matplotlib-1.4.3-component.pkg /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-matplotlib/py-matplotlib/work/mpkg_packages :info:pkg Exit code: 1 :error:pkg org.macports.mpkg for port py-matplotlib returned: command execution failed :debug:pkg Error code: CHILDSTATUS 7342 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 py-matplotlib: org.macports.mpkg :notice:pkg Please see the log file for port py-matplotlib for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-matplotlib/py-matplotlib/main.log
comment:9 Changed 8 years ago by Feuermurmel (Michael Schwarz)
Cc: | Feuermurmel added |
---|
comment:10 Changed 14 months ago by jmroot (Joshua Root)
Milestone: | → MacPorts 2.4.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This appears to be fixed, most likely by [62d7125bae35cf251a5571eb26bedacfce1aa4e6/macports-base] and following.
Log output