[Asterisk-code-review] pjproject bundled: Remove usage of tar's --strip-components... (asterisk[13])

George Joseph asteriskteam at digium.com
Wed Oct 26 18:53:28 CDT 2016


George Joseph has uploaded a new change for review. ( https://gerrit.asterisk.org/4199 )

Change subject: pjproject_bundled:  Remove usage of tar's --strip-components option
......................................................................

pjproject_bundled:  Remove usage of tar's --strip-components option

Older versions of tar don't support the --strip-components option so
instead of doing 'tar --strip-components=1 -C source', we now just
untar to the tarball's root directory (pjproject-<version>) and
rename that directory to 'source'

Change-Id: I9ec92952507a91ff4e4d01e0149e09fd8e8f32b0
---
M third-party/pjproject/Makefile
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/99/4199/1

diff --git a/third-party/pjproject/Makefile b/third-party/pjproject/Makefile
index aaf69bf..c8ad0cb 100644
--- a/third-party/pjproject/Makefile
+++ b/third-party/pjproject/Makefile
@@ -85,9 +85,9 @@
 
 source/.unpacked: $(DOWNLOAD_DIR)/pjproject-$(PJPROJECT_VERSION).tar.bz2
 	$(ECHO_PREFIX) Unpacking $<
-	- at rm -rf source >/dev/null 2>&1
-	- at mkdir source >/dev/null 2>&1
-	$(CMD_PREFIX) $(TAR) --strip-components=1 -C source -xjf $<
+	- at rm -rf source pjproject-* >/dev/null 2>&1
+	$(CMD_PREFIX) $(TAR) -xjf $<
+	@mv pjproject-$(PJPROJECT_VERSION) source
 	$(ECHO_PREFIX) Applying patches
 	$(CMD_PREFIX) ./apply_patches $(QUIET_CONFIGURE) patches source
 	- at touch source/.unpacked

-- 
To view, visit https://gerrit.asterisk.org/4199
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ec92952507a91ff4e4d01e0149e09fd8e8f32b0
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: George Joseph <gjoseph at digium.com>



More information about the asterisk-code-review mailing list