Thanks for information. Added the remove command to build system, thus
removing it from all future srcpkg distributions.

$ cat patchcmds-busybox
prev_wd=`pwd`

cd "${BUILD_FARM}"/busybox-git
git_desc_version=`git describe --tags 2>/dev/null`
[ -z "${git_desc_version}" ] && git_desc_version=`git describe
--always 2>/dev/null`
git_commit_number=`echo "${git_desc_version}" | cut -d'-' -f2`
git_commit_sha=`echo "${git_desc_version}" | cut -d'-' -f3`
if [ -z ${git_commit_number} ] || [ ${git_commit_number} =
${git_commit_sha} ] ; then
  git_commit_number="0"
fi
git_version_string="${git_commit_number}-${git_commit_sha}"

cd "${BUILD_FARM}/${SRCPKG_DIR}"
sed -i "s/EXTRAVERSION = .git/EXTRAVERSION = -${git_version_string}/" Makefile
sed -i "s/NAME = Unnamed/NAME = Angry Cat/" Makefile
bbox_version=`head -1 ./Makefile | grep "VERSION" | cut -d' ' -f3`
bbox_patchlevel=`head -2 ./Makefile | grep "PATCHLEVEL" | cut -d' ' -f3`
bbox_sublevel=`head -3 ./Makefile | grep "SUBLEVEL" | cut -d' ' -f3`

# replace odd version string from 'git describe' with correct version
from Makefile
NEW_SRCPKG_DIR="busybox-v${bbox_version}.${bbox_patchlevel}.${bbox_sublevel}-${git_version_string}.srcpkg"

# remove this file due to its questionable distribution terms
rm -f ./archival/unzip_doc.txt.bz2

cd "${prev_wd}"

By the way, building busybox (1.18.0-14-ga48a29f) produces warinings
about integer overflow:

In file included from archival/bbunzip.c:8:0:
include/unarchive.h:17:48: warning: integer overflow in expression
  CC      archival/bzip2.o
In file included from archival/bzip2.c:11:0:
include/unarchive.h:17:48: warning: integer overflow in expression
  CC      archival/cpio.o
In file included from archival/cpio.c:15:0:
include/unarchive.h:17:48: warning: integer overflow in expression
  CC      archival/gzip.o
In file included from archival/gzip.c:43:0:
include/unarchive.h:17:48: warning: integer overflow in expression

Is it just a warning and everything is fine? Or is it a signal about
some problem inside?
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to