diff --git a/maintainer/manage-packages.sh b/maintainer/manage-packages.sh index 08412446..c370719b 100755 --- a/maintainer/manage-packages.sh +++ b/maintainer/manage-packages.sh @@ -91,10 +91,11 @@ CT_LIB_DIR=`pwd` CT_TOP_DIR=`pwd` CT_TARBALLS_DIR=`pwd`/temp.tarballs CT_COMMON_SRC_DIR=`pwd`/temp.src +CT_WORK_DIR=`pwd`/temp.work CT_SRC_DIR=`pwd`/temp.src CT_LOG_LEVEL_MAX=EXTRA CT_TEMP_PATCH_DIR=`pwd`/temp.patches -mkdir -p ${CT_TARBALLS_DIR} +mkdir -p "${CT_TARBALLS_DIR}" "${CT_WORK_DIR}" # Does not matter, just to make the scripts load CT_ARCH=arm @@ -223,6 +224,8 @@ matched=0 run_pkgversion() { + local descr + while [ -n "${1}" ]; do eval "local ${1}" shift @@ -237,8 +240,13 @@ run_pkgversion() ;; esac fi + if [ -n "${ver}" ]; then + descr="${pkg_name}-${ver}" + else + descr="${pkg_name} revision ${repository_cset}" + fi - CT_DoStep INFO "Handling ${pkg_name}-${ver}" + CT_DoStep INFO "Handling ${descr}" matched=$[matched+1] # Create a temporary configuration head file @@ -268,30 +276,53 @@ source "config/global/build-behave.in" source "config/versions/${master}.in" EOF + # Common part of the config file cat >temp.defconfig <>temp.defconfig <>temp.defconfig </dev/null CT_LoadConfig + CT_DoExecLog ALL mkdir -p "${CT_BUILD_DIR}" rm -f .config .config.old temp.defconfig temp.in - if [ -n "${verify_urls}" ]; then - CT_DoLog EXTRA "Verifying URLs for ${pkg_name}-${ver}" - CT_PackageRun "${masterpfx}" check_pkg_urls - fi - if [ -n "${create_digests}" ]; then - CT_DoLog EXTRA "Creating digests for ${pkg_name}-${ver}" - CT_PackageRun "${masterpfx}" create_digests + if [ -n "${ver}" ]; then + if [ -n "${verify_urls}" ]; then + CT_DoLog EXTRA "Verifying URLs for ${descr}" + CT_PackageRun "${masterpfx}" check_pkg_urls + fi + if [ -n "${create_digests}" ]; then + CT_DoLog EXTRA "Creating digests for ${descr}" + CT_PackageRun "${masterpfx}" create_digests + fi + else + CT_DoLog EXTRA "Not verifying URLs or creating digests for ${descr} (devel release)" fi if [ -n "${download_pkgs}" ]; then - CT_DoLog EXTRA "Downloading ${pkg_name}-${ver}" + CT_DoLog EXTRA "Downloading ${descr}" CT_Fetch "${masterpfx}" fi if [ -n "${apply_patches}" ]; then @@ -315,4 +346,4 @@ CT_EndStep CT_DoLog INFO "Handled ${matched} packages/versions" [ -r .config-saved ] && mv .config-saved .config -CT_DoExecLog ALL rm -rf ${CT_TARBALLS_DIR} ${CT_COMMON_SRC_DIR} ${CT_TEMP_PATCH_DIR} +CT_DoExecLog ALL rm -rf "${CT_TARBALLS_DIR}" "${CT_COMMON_SRC_DIR}" "${CT_TEMP_PATCH_DIR}" "${CT_WORK_DIR}" diff --git a/maintainer/package-versions.template b/maintainer/package-versions.template index 61f938f6..ea78417a 100644 --- a/maintainer/package-versions.template +++ b/maintainer/package-versions.template @@ -10,4 +10,17 @@ run_pkgversion \ ver=@@ver@@ \ kcfg=@@ver_sel|@@ #!end-foreach +#!if [ -n "@@repository_cset@@" ] +run_pkgversion \ + master=@@master@@ \ + masterpfx=@@master|@@ \ + originpfx=@@origin|@@ \ + pkg_name=@@pkg_name@@ \ + pfx=@@fork|@@ \ + vcs=@@vcs@@ \ + repository_url=@@repository_url@@ \ + repository_branch=@@repository_branch@@ \ + repository_cset=@@repository_cset@@ \ + repository_subdir=@@repository_subdir@@ +#!end-if #!end-foreach diff --git a/packages/elf2flt/package.desc b/packages/elf2flt/package.desc index 754497ff..d0b5327d 100644 --- a/packages/elf2flt/package.desc +++ b/packages/elf2flt/package.desc @@ -1,2 +1,2 @@ repository='git https://github.com/uclinux-dev/elf2flt.git' -repository_cset='73325b7f209e0f68887333385184af275531427d' +repository_cset='453398f917d167f8c308c8f997270c48ae8f8b12'