WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

[Xen-bugs] [Bug 862] New: xen binary packages unpack into "dist" directo

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 862] New: xen binary packages unpack into "dist" directory instead of a directory named with a version string
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Sat, 20 Jan 2007 03:57:51 -0800
Delivery-date: Sat, 20 Jan 2007 03:58:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
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 <=