|
|
|
|
|
|
|
|
|
|
xen-bugs
[Xen-bugs] [Bug 862] New: xen binary packages unpack into "dist" directo
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=862
Summary: xen binary packages unpack into "dist" directory instead
of a directory named with a version string
Product: Xen
Version: unstable
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Unspecified
AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
ReportedBy: henning_sprang@xxxxxx
I understand this is the most simple way to pack it after compile, but it's not
nice, for example for people that unpack all new versions in /usr/loca/src/,
or when unpacking two versions to diff them
For my own packaging needs I wrote a script that does what I think how packages
should look like.
Another solution would be to just go one level up after compiling and tar the
directory xen-version/dist/
My script, that is a bit more complex, therefore eliminates the additional dist
level(the hostname and additional info portion of the package name should be
remove for offical xen packages):
#! /bin/sh
# script to build a xen tarball with uninstall make target
# Henning Sprang
# make this generically working for all xen versions...
if [ -z $1 ]; then
echo "please give the xen version number as argument - required for the
package name"
exit 1
else
VERSION=$1
fi
# TODO: this is optional!
#make distclean && make kclean && make dist
# make world
# TODO: only package when make world returns with no error!
TMPDIR=`mktemp -d`
PACKAGE_ID=${VERSION}_henning_`date +%Y-%m-%d_%s`
TARGET_DIR=${TMPDIR}/${PACKAGE_ID}
mkdir $TARGET_DIR
echo "build on `hostname` with ` gcc --version`" >
$TARGET_DIR/BUILDSTAMP-HENNING
# TODO: built on distribution ...
cp -a dist/ Makefile Config.mk buildconfigs/ config/ install.sh $TARGET_DIR
cd dist/install/boot/
KERNELVERSION=`find . -name "vmlinuz*-xen*" -type f | cut -d - -f 2-`
echo "#!/bin/sh" >$TARGET_DIR/build-initrd.sh
echo "depmod -a $KERNELVERSION" >>$TARGET_DIR/build-initrd.sh
echo "mkinitramfs -k -o /boot/initrd.img-$KERNELVERSION $KERNELVERSION"
>>$TARGET_DIR/build-initrd.sh
cd -
cd $TMPDIR
tar cvfz $PACKAGE_ID.tar.gz $PACKAGE_ID/
cd -
mv $TMPDIR/$PACKAGE_ID.tar.gz ..
rm -rf $TMPDIR
--
Configure bugmail:
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-bugs] [Bug 862] New: xen binary packages unpack into "dist" directory instead of a directory named with a version string,
bugzilla-daemon <=
|
|
|
|
|