[MacPorts] #39977: expat: extract failure
MacPorts
noreply at macports.org
Wed Oct 23 11:39:39 PDT 2013
#39977: expat: extract failure
-----------------------------------+--------------------------------
Reporter: tristanshakespeare@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Resolution: worksforme | Keywords: mavericks
Port: |
-----------------------------------+--------------------------------
Comment (by sierkb@…):
Replying to [comment:17 ryandesign@…]:
> Or, if Apple has not removed `gnutar` but has just moved it somewhere
else, you could try to find it with:
> {{{
> find / -type f -name gnutar 2>/dev/null
> }}}
> Then copy or symlink it from wherever it is into /usr/bin.
[[br]]
Looking at http://www.opensource.apple.com/release/os-x-109/, GNU tar in
fact IS part of OSX 10.9, but under a new location.
GNU tar on OSX 10.8.5 (gnutar-451):
http://www.opensource.apple.com/source/gnutar/gnutar-451/
GNU tar on OSX 10.9.0 (gnutar-452):
http://www.opensource.apple.com/source/gnutar/gnutar-452/
Makefile GNU tar on OSX 10.8.5 (gnutar-451):
http://www.opensource.apple.com/source/gnutar/gnutar-451/Makefile
Makefile GNU tar on OSX 10.9.0 (gnutar-452):
http://www.opensource.apple.com/source/gnutar/gnutar-452/Makefile
Look at both Makefiles to which destination Apple has put it on OSX le
10.8.5 and OSX 10.9.0 and see the differences (make a diff):
{{{
$ GNUtarML=`curl
http://www.opensource.apple.com/source/gnutar/gnutar-451/Makefile?txt -s
-o ${TMPDIR}Makefile_GNUtar_MountainLion`; GNUtarMav=`curl
http://www.opensource.apple.com/source/gnutar/gnutar-452/Makefile?txt -s
-o ${TMPDIR}Makefile_GNUtar_Mavericks`; diff -u
"${TMPDIR}Makefile_GNUtar_MountainLion"
"${TMPDIR}Makefile_GNUtar_Mavericks"
}}}
leads to:
{{{
---
/var/folders/p7/3h2r_j7x6j58crp3zy7lm80m0000gp/T/Makefile_GNUTar_MountainLion
2013-10-23 20:20:37.000000000 +0200
+++
/var/folders/p7/3h2r_j7x6j58crp3zy7lm80m0000gp/T/Makefile_GNUTar_Mavericks
2013-10-23 20:20:38.000000000 +0200
@@ -8,7 +8,10 @@
ToolType = Commands
Extra_Configure_Flags = --program-prefix=gnu
--includedir=/usr/local/include
Extra_CC_Flags = -mdynamic-no-pic
-GnuAfterInstall = remove-dir install-man install-plist
+GnuAfterInstall = remove-junk install-symlink install-plist
+
+Install_Prefix = /usr/local
+Install_Info = /usr/local/share/info
# It's a GNU Source project
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make
@@ -42,15 +45,15 @@
done
endif
-remove-dir:
- $(RM) $(DSTROOT)/usr/share/info/dir
- $(RM) $(DSTROOT)/usr/lib/charset.alias
-
-install-man:
- $(MKDIR) $(DSTROOT)$(MANDIR)/man1/
- $(INSTALL_FILE) $(SRCROOT)/gnutar.1
$(DSTROOT)$(MANDIR)/man1/gnutar.1
- $(MKDIR) $(DSTROOT)$(MANDIR)/man8/
- $(INSTALL_FILE) $(SRCROOT)/gnurmt.8
$(DSTROOT)$(MANDIR)/man8/gnurmt.8
+remove-junk:
+ $(RMDIR) $(DSTROOT)$(Install_Prefix)/lib/
+ $(RMDIR) $(DSTROOT)$(Install_Prefix)/libexec/
+ $(RMDIR) $(DSTROOT)$(Install_Prefix)/sbin/
+ $(RMDIR) $(DSTROOT)$(Install_Prefix)/share/
+
+install-symlink:
+ $(MKDIR) $(DSTROOT)/usr/bin/
+ $(LN) -fs $(Install_Prefix)/bin/gnutar $(DSTROOT)/usr/bin/gnutar
OSV = $(DSTROOT)/usr/local/OpenSourceVersions
OSL = $(DSTROOT)/usr/local/OpenSourceLicenses
}}}
[[br]]
[[br]]
So, the new install_Prefix of GNU tar is /usr/local, the binary is
/usr/local/bin/gnutar, the libs in /usr/local/lib and so on...
[[br]]
AND there is a Symlink from /usr/local/bin/gnutar -> /usr/bin/gnutar
--
Ticket URL: <https://trac.macports.org/ticket/39977#comment:24>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list