[MacPorts] #67106: git: destroot fails "The domain/default pair of (.../Git Gui.app/Contents/Info, CFBundleExecutable) does not exist"

MacPorts noreply at macports.org
Fri May 3 13:49:21 UTC 2024


#67106: git: destroot fails "The domain/default pair of (.../Git
Gui.app/Contents/Info, CFBundleExecutable) does not exist"
-----------------------------+----------------------
  Reporter:  kurthindenburg  |      Owner:  ci42
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:
      Port:  git             |
-----------------------------+----------------------
Changes (by ryandesign):

 * cc: hostep (added)


Comment:

 Replying to [comment:11 hostep]:
 > I have the same problem here.
 > That file does exist and has "CFBundleExecutable" and its full contents
 is:
 >
 > {{{#!xml
 > $ ls -l "$(port work git)/destroot/opt/local/share/git-gui/lib/Git
 Gui.app/Contents/Info.plist"
 > -rw-r--r--  1 macports  wheel   945B May  3 14:39
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_git/git/work/destroot/opt/local/share
 /git-gui/lib/Git Gui.app/Contents/Info.plist
 >
 > $ cat "$(port work git)/destroot/opt/local/share/git-gui/lib/Git
 Gui.app/Contents/Info.plist"
 > <?xml version="1.0" encoding="UTF-8"?>
 > <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
 "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 > <plist version="1.0">
 > <dict>
 >       <key>CFBundleDevelopmentRegion</key>
 >       <string>English</string>
 >       <key>CFBundleExecutable</key>
 >       <string>Wish</string>
 >       <key>CFBundleGetInfoString</key>
 >       <string>Git Gui 0.21.GITGUI © 2006-2007 Shawn Pearce, et.
 al.</string>
 >       <key>CFBundleIconFile</key>
 >       <string>git-gui.icns</string>
 >       <key>CFBundleIdentifier</key>
 >       <string>cz.or.repo.git-gui</string>
 >       <key>CFBundleInfoDictionaryVersion</key>
 >       <string>6.0</string>
 >       <key>CFBundleName</key>
 >       <string>Git Gui</string>
 >       <key>CFBundlePackageType</key>
 >       <string>APPL</string>
 >       <key>CFBundleShortVersionString</key>
 >       <string>0.21.GITGUI</string>
 >       <key>CFBundleSignature</key>
 >       <string>GITg</string>
 >       <key>CFBundleVersion</key>
 >       <string>0.21.GITGUI</string>
 >       <key>NSHighResolutionCapable</key>
 >       <true/>
 > </dict>
 > </plist>
 > }}}

 Thanks Pieter. That looks ok to me, and if I save that to /tmp/Info.plist,
 I get the correct answer from `defaults`:

 {{{
 % defaults read /tmp/Info CFBundleExecutable
 Wish
 }}}

 > Note that the errors says
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_git/git/work/destroot/opt/local/share
 /git-gui/lib/Git Gui.app/Contents/Info` //without// `.plist` extension,
 not sure if that's relevant?

 That's fine. Per the defaults(1) manpage, "Domains may also be specified
 as a path to an arbitrary file, with or without the '.plist' extension."

 If you run it on the command line, does this work or give an error?

 {{{
 defaults read "$(port work git)/destroot/opt/local/share/git-gui/lib/Git
 Gui.app/Contents/Info" CFBundleExecutable
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67106#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list