From: Fabian Groffen Date: Thu, 12 Apr 2007 17:17:48 +0000 (-0000) Subject: On AIX, we don't use GNU binutils ar, and the ar out there isn't X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2c4d405446fbf0385303ea9dc5de4331eacea75f;p=portage.git 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 --- 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" ;; *)