[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 04/46] tools/mkrpm: allow custom rpm package name



On Mon, 2014-09-22 at 14:59 +0200, Olaf Hering wrote:
> Even if xen is configured and compiled with different --prefix= so that
> it operates entirely below $prefix, the resulting package from 'make
> rpmball' is always called "xen.rpm".
> 
> Use an environment name to give a different name.
> This can be used like this:
> 
> suffix=-bugN
> prefix=/opx/xen/staging${suffix}
> ./configure --prefix=${prefix}
> make rpmball PKG_SUFFIX=${suffix}
> 
> The result will be "xen-bugN.rpm" instead of "xen.rpm". The benefit is that
> many xen${suffix}.rpm packages can be installed at the same time.
> 
> Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

> ---
>  tools/misc/mkrpm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/misc/mkrpm b/tools/misc/mkrpm
> index a9aa5e2..9b8c6d9 100644
> --- a/tools/misc/mkrpm
> +++ b/tools/misc/mkrpm
> @@ -31,7 +31,7 @@ rm -rf rpm
>  mkdir -p rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
>  cat >rpm/SPECS/xen.spec <<EOF
>  Summary: Xen development build, version $version
> -Name: xen
> +Name: xen$PKG_SUFFIX
>  Version: $version
>  Release: $release
>  License: GPL



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.