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

RE: [PATCH 2/2] Inherit versioning info from environment if present


  • To: Nicholas Tsirakis <niko.tsirakis@xxxxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Mon, 9 Nov 2020 08:10:43 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vXAENEO4I6h42DAtyQGEtolx/4kaQTL0yxOOrpo7C28=; b=HxCOPYpwS9mlzw2iDT/M4EQCv3TDKWXEOWKF/H3O38yPk/pP4g1WiEUCwQHL/UgIiucujE3mmwAT38WI4U9G44bOI1tKQMoukOdf2r7Lwq/7ZD5aI4CjU6CHABoI/REz2g0qMv2rx/pRmi1TIEN3QJwyGsCHC9f66QPFBzGMZ4AqqcPzmHbjXhaAgmm+PPfvAKl5grTXnOvtdy9pHEBAx0wm/TD4zth1T4xhWFuKxe2YUFZr+COFbCRtf5VAaodaMF9Ea+VXQCro5bFhbSqumyyVytB7EAw3CTTgM6mYOgZ+xZCHhwCf9k37Dn+z9IQ8/kbPDizOAznBs4anUkyNOw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dkfY8eVcu0ALmLKYOneC+FyZr2HnSK/OCBZHwCVytiR2dRGpWvd2nLyABjykK90A4vEkYGVHLZAytf6o/oYu5dmzcSH6aYF0MBmRPQIJt36Rzvqftqvf09cHM0FBqIVVDoQRiPIe/LQ8pqbQkbZflEbyx9vT7Ut7G2XP07ZBuKglZkjkms3ljAz7BmQtTfxjxnSiowJIVPgKj9aovU5q23k40kBLhDZak4lVKGYrQI1OwL8/Wqhjc3r7rO8zqgadpCCRvVu8jua4SZGGbBDx9hxwjxa7O29k2cANbWCE89EBqGr1kwhEmlVZpnO97kvn71YMR3ntB5jp0Hdw6VR7kw==
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "paul@xxxxxxx" <paul@xxxxxxx>, Ben Chalmers <ben.chalmers@xxxxxxxxxx>, Nicholas Tsirakis <tsirakisn@xxxxxxxxxxxx>
  • Delivery-date: Mon, 09 Nov 2020 08:10:49 +0000
  • Ironport-sdr: tpXXgc9r0YUwf+mygiARgpkfwEI0HdXFGrwUBXRLETfToyJv8hOQBI5ft7SnWkyxgFg2gLlmRq VwihfaLevvITssGY5J8xOY5q0NHRmklEsOrJq2avL1frJBWqrCXSIILz+/bOBOsEB417PzV5Ft YO4fvSBn0L+FSBdQrE4cff3HAaDVogJg0b+SaE2dPo+TAuLatQL/Bjnggz+DDC6in48CCX0V9U w6oqyVYkXoKE9+89+xNGkpOYhjxjxl9XwxUDzASGU1npassW1kuzebrWcA1EgYNO/zDvCnxYTv aRc=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
  • Thread-index: AQHWtH5HfB/jA8n3gEaG/hbqFZSZVam/deQQ
  • Thread-topic: [PATCH 2/2] Inherit versioning info from environment if present

I'm currently looking at carrying the exact same changes in my patch queue, so 
that the patch queue version can be used. In my case, I have no intentions of 
changing the Major or Minor versions (for consistency)

Acked-by: Owen Smith <owen.smith@xxxxxxxxxx>

> -----Original Message-----
> From: Nicholas Tsirakis <niko.tsirakis@xxxxxxxxx>
> Sent: 06 November 2020 20:49
> To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: paul@xxxxxxx; Ben Chalmers <ben.chalmers@xxxxxxxxxx>; Owen Smith
> <owen.smith@xxxxxxxxxx>; Nicholas Tsirakis <tsirakisn@xxxxxxxxxxxx>
> Subject: [PATCH 2/2] Inherit versioning info from environment if present
> 
> [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments
> unless you have verified the sender and know the content is safe.
> 
> As the drivers stabilize and mature, there is an ever-growing chance that 
> other
> opensource virtualization projects will adopt them. Allow external projects to
> inject their own versioning into the drivers instead of hardcoding the latest
> winpv version.
> 
> Signed-off-by: Nicholas Tsirakis <tsirakisn@xxxxxxxxxxxx>
> ---
>  build.ps1 | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 deletions(-)
> 
> diff --git a/build.ps1 b/build.ps1
> index 06626fd..b7b015f 100644
> --- a/build.ps1
> +++ b/build.ps1
> @@ -79,9 +79,17 @@ if ([string]::IsNullOrEmpty($Env:BUILD_NUMBER)) {
>       Set-Item -Path Env:BUILD_NUMBER -Value $BuildNum  }
> 
> -Set-Item -Path Env:MAJOR_VERSION -Value '9'
> -Set-Item -Path Env:MINOR_VERSION -Value '1'
> -Set-Item -Path Env:MICRO_VERSION -Value '0'
> +if ([string]::IsNullOrEmpty($Env:MAJOR_VERSION)) {
> +     Set-Item -Path Env:MAJOR_VERSION -Value '9'
> +}
> +
> +if ([string]::IsNullOrEmpty($Env:MINOR_VERSION)) {
> +     Set-Item -Path Env:MINOR_VERSION -Value '1'
> +}
> +
> +if ([string]::IsNullOrEmpty($Env:MICRO_VERSION)) {
> +     Set-Item -Path Env:MICRO_VERSION -Value '0'
> +}
> 
>  if ($Arch -eq "" -or $Arch -eq "x86" -or $Arch -eq "Win32") {
>       Build "x86" $Type
> --
> 2.25.4
> 




 


Rackspace

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