Commit a6318727 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

GNU: gdb-7.9; BUILDSYSTEM: unpack xz archives

git-svn-id: https://svn.radix.pro/svn/toolchains/trunk@96 0df74aab-45ad-4799-93a1-122938110d35
parent dcdb3975
......@@ -397,7 +397,9 @@ UNPACK_SRC_ARCHIVE = \
cd $(SRC_DIR_BASE) && rpm2cpio $(SRC_ARCHIVE) | cpio -id --quiet, \
$(if $(findstring .zip,$(SRC_ARCHIVE)), \
unzip -q -d $(SRC_DIR_BASE) $(SRC_ARCHIVE), \
tar $(if $(findstring .bz2,$(SRC_ARCHIVE)),-xjf,-xzf) \
tar $(if $(findstring .bz2,$(SRC_ARCHIVE)),-xjf, \
$(if $(findstring .xz,$(SRC_ARCHIVE)),-xJf, \
$(if $(findstring .txz,$(SRC_ARCHIVE)),-xJf,-xzf))) \
$(SRC_ARCHIVE) -C $(SRC_DIR_BASE))); \
chmod -R u+w $(SRC_DIR)
......
......@@ -7,13 +7,13 @@ include ../../../build-system/config.mk
SOURCE_REQUIRES = $(SRC_PACKAGE_DIR)/GNU/gdb
tar_bz2_archive = $(SRC_PACKAGE_DIR)/GNU/gdb/gdb-6.4.tar.bz2
tar_gz_archive = $(SRC_PACKAGE_DIR)/GNU/gdb/gdb-6.4.tar.gz
src_dir = gdb-6.4
build_dir = $(TARGET_BUILD_DIR)/build
src_done = $(SRC_DIR)/.source-done
SRC_DIR = $(TARGET_BUILD_DIR)/gdb-6.4
SRC_ARCHIVE = $(tar_bz2_archive)
SRC_ARCHIVE = $(tar_gz_archive)
build_target = $(TARGET_BUILD_DIR)/.built
......
......@@ -9,7 +9,7 @@ include ../../../build-system/config.mk
SOURCE_REQUIRES = $(SRC_PACKAGE_DIR)/GNU/gdb
tar_bz2_archive = $(SRC_PACKAGE_DIR)/GNU/gdb/gdb-7.2a.tar.bz2
tar_gz_archive = $(SRC_PACKAGE_DIR)/GNU/gdb/gdb-7.2a.tar.gz
src_dir = gdb-7.2
build_dir = $(TARGET_BUILD_DIR)/build
......@@ -17,7 +17,7 @@ sysroot_dir = $(TOOLCHAIN_PATH)/$(TARGET)/sys-root
src_done = $(SRC_DIR)/.source-done
SRC_DIR = $(TARGET_BUILD_DIR)/gdb-7.2
SRC_ARCHIVE = $(tar_bz2_archive)
SRC_ARCHIVE = $(tar_gz_archive)
PATCHES = PATCHES
......
......@@ -13,7 +13,7 @@ include ../../../build-system/config.mk
SOURCE_REQUIRES = $(SRC_PACKAGE_DIR)/GNU/gdb
tar_bz2_archive = $(SRC_PACKAGE_DIR)/GNU/gdb/gdb-7.5.tar.bz2
tar_gz_archive = $(SRC_PACKAGE_DIR)/GNU/gdb/gdb-7.5.tar.gz
src_dir = gdb-7.5
build_dir = $(TARGET_BUILD_DIR)/build
......@@ -21,7 +21,7 @@ sysroot_dir = $(TOOLCHAIN_PATH)/$(TARGET)/sys-root
src_done = $(SRC_DIR)/.source-done
SRC_DIR = $(TARGET_BUILD_DIR)/gdb-7.5
SRC_ARCHIVE = $(tar_bz2_archive)
SRC_ARCHIVE = $(tar_gz_archive)
build_target = $(TARGET_BUILD_DIR)/.built
......
......@@ -15,9 +15,9 @@ include ../../../build-system/config.mk
url = $(DOWNLOAD_SERVER)/sources/GNU/gdb
versions = 6.4a 6.5a 7.0a 7.2a 7.5
versions = 6.4a 6.5a 7.0a 7.2a 7.5 7.9
tarballs = $(addsuffix .tar.bz2, $(addprefix gdb-, $(versions)))
tarballs = $(addsuffix .tar.gz, $(addprefix gdb-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
......@@ -37,7 +37,7 @@ $(tarballs):
done
@( cd create-patch-7.2-bfdio && ./create.patch.sh )
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
$(sha1s): %.tar.gz.sha1sum : %.tar.gz
@for sha in $@ ; do \
echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
wget $(WGET_OPTIONS) -N $(url)/$$sha ; \
......
......@@ -2,7 +2,7 @@
VERSION=7.2
tar --files-from=file.list -xjvf ../gdb-${VERSION}a.tar.bz2
tar --files-from=file.list -xzvf ../gdb-${VERSION}a.tar.gz
mv gdb-$VERSION gdb-$VERSION-orig
cp -rf ./gdb-$VERSION-new ./gdb-$VERSION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment