[PATCH 5 of 6 packaging] packaging: extract packagelib for common code from builddeb and buildrpm

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri May 8 16:29:40 CDT 2015



On 05/08/2015 10:10 AM, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1431008938 14400
> #      Thu May 07 10:28:58 2015 -0400
> # Node ID eb1672b7b846324d4275b49c09d33373e3cb1920
> # Parent  25e90eb8e6dd9a142d52128d13584d2d99147d7f
> packaging: extract packagelib for common code from builddeb and buildrpm

I would have been happy to get the extraction before the debian related 
patch. I got two breackage of my nightly build setup with that one.
1) dash was unhappy about your bash script
2) the machine have no gcc installed and were unable to retrieve version 
number

I applied the patch below to fix theses issue.

diff --git a/contrib/packagelib.sh b/contrib/packagelib.sh
--- a/contrib/packagelib.sh
+++ b/contrib/packagelib.sh
@@ -1,8 +1,8 @@
-function gethgversion() {
+gethgversion() {
      make clean
-    make local
+    make local || make local PURE=--pure
      HG="$PWD/hg"

      $HG version > /dev/null || { echo 'abort: hg version failed!'; 
exit 1 ; }

      hgversion=`$HG version | sed -ne 's/.*(version \(.*\))$/\1/p'`

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list