From 2c4d405446fbf0385303ea9dc5de4331eacea75f Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 12 Apr 2007 17:17:48 +0000 Subject: [PATCH] On AIX, we don't use GNU binutils ar, and the ar out there isn't compatible as well (like odcctools' one), so we have to resort to using deb2targz on that platform. svn path=/main/branches/prefix/; revision=6381 --- bin/ebuild.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 98d337929..0fd83b4c9 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -524,7 +524,19 @@ unpack() { LHa|LHA|lha|lzh) lha xqf "${srcdir}/${x}" || die "$myfail" ;; - a|deb) + deb) + # unpacking .deb archives can only be done with a GNU + # binutils (compatible) ar. So if we don't have that, + # which only is on AIX for the moment, use deb2targz and + # unpack that one + if [[ ${CHOST} == *-aix* ]]; then + deb2targz "${srcdir}/${x}" || die "$myfail" + mv "${srcdir}/${x/.deb/.tar.gz}" data.tar.gz + else + ar x "${srcdir}/${x}" || die "$myfail" + fi + ;; + a) ar x "${srcdir}/${x}" || die "$myfail" ;; *) -- 2.26.2