Blame SOURCES/0010-buildlib-Remove-travis-CI.patch

bbe12a
From 6ce72aaa5963b28a2a01b47f332fa20c02eeb0db Mon Sep 17 00:00:00 2001
bbe12a
From: Jason Gunthorpe <jgg@mellanox.com>
bbe12a
Date: Thu, 31 Oct 2019 13:17:11 -0300
bbe12a
Subject: [PATCH rdma-core 10/13] buildlib: Remove travis CI
bbe12a
bbe12a
[ Upstream commit ae029ac74d62b12ea69127c91f83ad5944130764 ]
bbe12a
bbe12a
Azure Pipelines replaces it completely now, remove the word 'travis' from
bbe12a
the source tree.
bbe12a
bbe12a
v26 was supposed to transition to azp for releases and it lacks the
bbe12a
ability for travis to make the offical github tar.gz, so this needs to be
bbe12a
back ported.
bbe12a
bbe12a
Cc: stable@linux-rdma.org #v26
bbe12a
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
bbe12a
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
bbe12a
---
bbe12a
 .travis.yml             |  45 -----------
bbe12a
 CMakeLists.txt          |   2 +-
bbe12a
 Documentation/stable.md |   8 +-
bbe12a
 README.md               |  12 +--
bbe12a
 buildlib/cbuild         | 173 ++--------------------------------------
bbe12a
 buildlib/check-build    |   6 --
bbe12a
 buildlib/travis-build   |  58 --------------
bbe12a
 7 files changed, 17 insertions(+), 287 deletions(-)
bbe12a
 delete mode 100644 .travis.yml
bbe12a
 delete mode 100755 buildlib/travis-build
bbe12a
bbe12a
diff --git a/.travis.yml b/.travis.yml
bbe12a
deleted file mode 100644
bbe12a
index e00b0165..00000000
bbe12a
--- a/.travis.yml
bbe12a
+++ /dev/null
bbe12a
@@ -1,45 +0,0 @@
bbe12a
-language: c
bbe12a
-dist: xenial
bbe12a
-addons:
bbe12a
-  # We run our builds sequentially in one VM rather than try and use the
bbe12a
-  # matrix feature. This is because Travis is unreasonably inefficient
bbe12a
-  # doing this APT setup pass.
bbe12a
-  apt:
bbe12a
-    sources:
bbe12a
-      - ubuntu-toolchain-r-test
bbe12a
-    packages:
bbe12a
-      - debhelper
bbe12a
-      - dh-systemd
bbe12a
-      - fakeroot
bbe12a
-      - gcc-8
bbe12a
-      - git-core
bbe12a
-      - libnl-3-dev
bbe12a
-      - libnl-route-3-dev
bbe12a
-      - libudev-dev
bbe12a
-      - make
bbe12a
-      - ninja-build
bbe12a
-      - pandoc
bbe12a
-      - python-docutils
bbe12a
-      - pkg-config
bbe12a
-      - python
bbe12a
-      - valgrind
bbe12a
-      - sparse
bbe12a
-      - wget
bbe12a
-      - abi-compliance-checker
bbe12a
-      - abi-dumper
bbe12a
-
bbe12a
-      # 32 bit support packages
bbe12a
-      - gcc-multilib
bbe12a
-      # xenial craziness, need to give specific version of multilib,
bbe12a
-      # in addition to general multilib
bbe12a
-      - gcc-8-multilib
bbe12a
-      - lib32gcc-8-dev
bbe12a
-
bbe12a
-      # pyverbs
bbe12a
-      - python3-dev
bbe12a
-      - python3-pip
bbe12a
-
bbe12a
-before_script:
bbe12a
-  - http_proxy= pip3 install cython
bbe12a
-script:
bbe12a
-  - buildlib/travis-build
bbe12a
diff --git a/CMakeLists.txt b/CMakeLists.txt
bbe12a
index 59ffdf83..b5da62b1 100644
bbe12a
--- a/CMakeLists.txt
bbe12a
+++ b/CMakeLists.txt
bbe12a
@@ -44,7 +44,7 @@
bbe12a
 #      prefers python3 if available.
bbe12a
 #   -DNO_PYVERBS=1 (default, build pyverbs)
bbe12a
 #      Invoke cython to build pyverbs. Usually you will run with this option
bbe12a
-#      is set, but it will be disabled for travis runs.
bbe12a
+#      set
bbe12a
 #   -DENABLE_IBDIAGS_COMPAT=True (default False)
bbe12a
 #      Include obsolete scripts. These scripts are replaced by C programs with
bbe12a
 #      a different interface now.
bbe12a
diff --git a/Documentation/stable.md b/Documentation/stable.md
bbe12a
index 76f5cf32..c12b2768 100644
bbe12a
--- a/Documentation/stable.md
bbe12a
+++ b/Documentation/stable.md
bbe12a
@@ -10,7 +10,7 @@ Branched stable releases, off a mainline release, are on as-needed basis and lim
bbe12a
 
bbe12a
 All bug fixes are to be backported from mainline and applied by stable branch maintainer.
bbe12a
 
bbe12a
-Branched stable releases will append an additional release number (e.g. 15.1) and will ensure that Travis CI reports a successful build.
bbe12a
+Branched stable releases will append an additional release number (e.g. 15.1) and will ensure that Azure Pipelines CI reports a successful build.
bbe12a
 
bbe12a
 Regular stable releases will be generated at the same time as mainline releases.
bbe12a
 Additional stable releases can be generated if the need arise (Needed by distributions or OFED).
bbe12a
@@ -73,17 +73,17 @@ so that latters patches/fixes can be checked against this reference.
bbe12a
 
bbe12a
 To do that, the creator of the branch should run
bbe12a
 ```
bbe12a
-./buildlib/cbuild build-images travis
bbe12a
+./buildlib/cbuild build-images azp
bbe12a
 mkdir ABI
bbe12a
 touch ABI/.gitignore
bbe12a
 git add ABI/.gitignore
bbe12a
 git commit -m "ABI Files"
bbe12a
-./buildlib/cbuild pkg travis
bbe12a
+./buildlib/cbuild pkg azp
bbe12a
 git add ABI/*
bbe12a
 git commit --amend
bbe12a
 ```
bbe12a
 
bbe12a
-'cbuild pkg travis' will fail as the ABI verification step files, but it will
bbe12a
+'cbuild pkg azp' will fail as the ABI verification step files, but it will
bbe12a
 produce the ABI reference files.
bbe12a
 
bbe12a
 Note that the ABI directory must NOT be committed at any point in the master branch.
bbe12a
diff --git a/README.md b/README.md
bbe12a
index 451ff7fc..36273ad9 100644
bbe12a
--- a/README.md
bbe12a
+++ b/README.md
bbe12a
@@ -1,4 +1,4 @@
bbe12a
-[![Build Status](https://travis-ci.org/linux-rdma/rdma-core.svg?branch=master)](https://travis-ci.org/linux-rdma/rdma-core)
bbe12a
+[![Build Status](https://dev.azure.com/ucfconsort/rdma-core/_apis/build/status/linux-rdma.rdma-core?branchName=master)](https://dev.azure.com/ucfconsort/rdma-core/_build/latest?definitionId=2&branchName=master)
bbe12a
 
bbe12a
 # RDMA Core Userspace Libraries and Daemons
bbe12a
 
bbe12a
@@ -137,13 +137,13 @@ Make sure that your contribution can be licensed under the same
bbe12a
 license as the original code you are patching, and that you have all
bbe12a
 necessary permissions to release your work.
bbe12a
 
bbe12a
-## TravisCI
bbe12a
+## Azure Pipelines CI
bbe12a
 
bbe12a
-Submitted patches must pass the TravisCI automatic builds without warnings.
bbe12a
-A build similar to TravisCI can be run locally using docker and the
bbe12a
+Submitted patches must pass the Azure Pipelines CI automatic builds without
bbe12a
+warnings.  A build similar to AZP can be run locally using docker and the
bbe12a
 'buildlib/cbuild' script.
bbe12a
 
bbe12a
 ```sh
bbe12a
-$ buildlib/cbuild build-images travis
bbe12a
-$ buildlib/cbuild pkg travis
bbe12a
+$ buildlib/cbuild build-images azp
bbe12a
+$ buildlib/cbuild pkg azp
bbe12a
 ```
bbe12a
diff --git a/buildlib/cbuild b/buildlib/cbuild
bbe12a
index 742a9e22..9825e099 100755
bbe12a
--- a/buildlib/cbuild
bbe12a
+++ b/buildlib/cbuild
bbe12a
@@ -290,100 +290,6 @@ class debian_experimental(APTEnvironment):
bbe12a
             " ".join(sorted(self.pkgs))));
bbe12a
         return res;
bbe12a
 
bbe12a
-class travis(APTEnvironment):
bbe12a
-    """This parses the .travis.yml "apt" add on and converts it to a dockerfile,
bbe12a
-    basically creating a container that is similar to what travis would
bbe12a
-    use. Note this does not use the base travis image, nor does it install the
bbe12a
-    typical travis packages."""
bbe12a
-    docker_parent = "ubuntu:16.04";
bbe12a
-    name = "travis";
bbe12a
-    is_deb = True;
bbe12a
-    _yaml = None;
bbe12a
-
bbe12a
-    def get_yaml(self):
bbe12a
-        if self._yaml:
bbe12a
-            return self._yaml;
bbe12a
-
bbe12a
-        # Load the commands from the travis file
bbe12a
-        with open(".travis.yml") as F:
bbe12a
-            self._yaml = yaml.safe_load(F);
bbe12a
-        return self._yaml;
bbe12a
-    yaml = property(get_yaml);
bbe12a
-
bbe12a
-    def get_repos(self):
bbe12a
-        """Return a list of things to add with apt-add-repository"""
bbe12a
-        Source = collections.namedtuple("Source",["sourceline","key_url"]);
bbe12a
-
bbe12a
-        # See https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
bbe12a
-        pre_defined = {
bbe12a
-            "ubuntu-toolchain-r-test": Source("ppa:ubuntu-toolchain-r/test",None),
bbe12a
-        };
bbe12a
-
bbe12a
-        # Unique the sources
bbe12a
-        res = set();
bbe12a
-        for src in self.yaml["addons"]["apt"]["sources"]:
bbe12a
-            if isinstance(src,dict):
bbe12a
-                res.add(Source(sourceline=src["sourceline"],
bbe12a
-                               key_url=src.get("key_url",None)));
bbe12a
-            else:
bbe12a
-                res.add(pre_defined[src]);
bbe12a
-
bbe12a
-        # Add the sources
bbe12a
-        scmds = [];
bbe12a
-        scmds.extend("apt-key add /etc/apt/trusted.gpg.d/%s"%(os.path.basename(I.key_url))
bbe12a
-                    for I in res if I.key_url is not None);
bbe12a
-        scmds.extend("http_proxy= apt-add-repository -y %s"%(pipes.quote(I.sourceline))
bbe12a
-                    for I in res);
bbe12a
-
bbe12a
-        # Download the keys
bbe12a
-        cmds = ["ADD %s /etc/apt/trusted.gpg.d/"%(I.key_url)
bbe12a
-                for I in res if I.key_url is not None];
bbe12a
-
bbe12a
-        cmds.append("RUN " + " && ".join(scmds));
bbe12a
-        return cmds;
bbe12a
-
bbe12a
-    def get_before_script(self):
bbe12a
-        """Return a list of commands to run from before_script"""
bbe12a
-        cmds = ["RUN useradd -ms /bin/bash travis && \\"
bbe12a
-                "su -l -c %s"%(pipes.quote(" && ".join(self.yaml["before_script"]))) + " travis"];
bbe12a
-        return cmds
bbe12a
-
bbe12a
-    def get_clang(self):
bbe12a
-        """We are using the clang that comes in travis, which is not part of our base
bbe12a
-        docker container, install something similar by hand."""
bbe12a
-        llvm_tar = "clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz"
bbe12a
-        cmds = [
bbe12a
-            """RUN wget -q http://releases.llvm.org/7.0.0/{0} -O /tmp/{0} && \\
bbe12a
-            tar xf /tmp/{0} -C /usr/local/ && \\
bbe12a
-            rm /tmp/{0} && \\
bbe12a
-            (cd /usr/local/bin/ && ln -sf ../clang*/bin/clang-7 .)""".format(llvm_tar)];
bbe12a
-        return cmds;
bbe12a
-
bbe12a
-    def get_cython(self):
bbe12a
-        return ["""RUN pip3 install cython"""]
bbe12a
-
bbe12a
-    def get_docker_file(self,tmpdir):
bbe12a
-        # First this to get apt-add-repository
bbe12a
-        self.pkgs = {"software-properties-common"}
bbe12a
-        res = APTEnvironment.get_docker_file(self,tmpdir);
bbe12a
-
bbe12a
-        # Sources list from the travis.yml
bbe12a
-        res.lines.extend(self.get_repos());
bbe12a
-
bbe12a
-        # Package list from the travis.yml
bbe12a
-        # Travis uses the new cmake built into the image, we need to get an
bbe12a
-        # older version from ubuntu.
bbe12a
-        res.lines.append("RUN apt-get update && apt-get install -y --no-install-recommends %s"%(
bbe12a
-            " ".join(sorted(["cmake"] + self.yaml["addons"]["apt"]["packages"]))));
bbe12a
-
bbe12a
-        # Adding before_script commands
bbe12a
-        res.lines.extend(self.get_before_script())
bbe12a
-
bbe12a
-        res.lines.extend(self.get_clang())
bbe12a
-        res.lines.extend(self.get_cython())
bbe12a
-
bbe12a
-        return res;
bbe12a
-
bbe12a
 # -------------------------------------------------------------------------
bbe12a
 
bbe12a
 class ZypperEnvironment(Environment):
bbe12a
@@ -521,7 +427,6 @@ deb [arch=arm64,ppc64el] http://ports.ubuntu.com/ bionic-updates main universe""
bbe12a
 environments = [centos6(),
bbe12a
                 centos7(),
bbe12a
                 centos7_epel(),
bbe12a
-                travis(),
bbe12a
                 xenial(),
bbe12a
                 bionic(),
bbe12a
                 jessie(),
bbe12a
@@ -572,7 +477,7 @@ def env_choices_pkg():
bbe12a
     """All the names that can be used with ToEnvAction"""
bbe12a
     envs = set(("all",));
bbe12a
     for I in environments:
bbe12a
-        if I.name == "travis" or getattr(I,"is_deb",False) or getattr(I,"is_rpm",False):
bbe12a
+        if getattr(I,"is_deb",False) or getattr(I,"is_rpm",False):
bbe12a
                 envs.add(I.name);
bbe12a
                 envs.update(I.aliases);
bbe12a
     return envs;
bbe12a
@@ -660,12 +565,12 @@ def get_tar_file(args,tarfn,pandoc_prebuilt=False):
bbe12a
         return;
bbe12a
 
bbe12a
     # When the OS does not support pandoc we got through the extra step to
bbe12a
-    # build pandoc output in the travis container and include it in the
bbe12a
+    # build pandoc output in the azp container and include it in the
bbe12a
     # tar.
bbe12a
     if not args.use_prebuilt_pandoc:
bbe12a
-        subprocess.check_call(["buildlib/cbuild","make","travis","docs"]);
bbe12a
+        subprocess.check_call(["buildlib/cbuild","make","azure_pipelines","docs"]);
bbe12a
 
bbe12a
-    cmd_make_dist_tar(argparse.Namespace(BUILD="build-travis",tarfn=tarfn,
bbe12a
+    cmd_make_dist_tar(argparse.Namespace(BUILD="build-azure_pipelines",tarfn=tarfn,
bbe12a
                                          script_pwd="",tag=None));
bbe12a
 
bbe12a
 def run_rpm_build(args,spec_file,env):
bbe12a
@@ -839,70 +744,6 @@ def copy_abi_files(src):
bbe12a
             print("Changed ABI File: ", ref_fn);
bbe12a
             shutil.copy(cur_fn, ref_fn);
bbe12a
 
bbe12a
-def run_travis_build(args,env):
bbe12a
-    with private_tmp(args) as tmpdir:
bbe12a
-        os.mkdir(os.path.join(tmpdir,"src"));
bbe12a
-        os.mkdir(os.path.join(tmpdir,"tmp"));
bbe12a
-
bbe12a
-        opwd = os.getcwd();
bbe12a
-        with inDirectory(os.path.join(tmpdir,"src")):
bbe12a
-            subprocess.check_call(["git",
bbe12a
-                                   "--git-dir",os.path.join(opwd,".git"),
bbe12a
-                                   "reset","--hard","HEAD"]);
bbe12a
-            subprocess.check_call(["git",
bbe12a
-                                   "--git-dir",os.path.join(opwd,".git"),
bbe12a
-                                   "fetch",
bbe12a
-                                   "--no-tags",
bbe12a
-                                   "https://github.com/linux-rdma/rdma-core.git","HEAD",
bbe12a
-                                   "master"]);
bbe12a
-            base = subprocess.check_output(["git",
bbe12a
-                                            "--git-dir",os.path.join(opwd,".git"),
bbe12a
-                                            "merge-base",
bbe12a
-                                            "HEAD","FETCH_HEAD"]).decode().strip();
bbe12a
-
bbe12a
-        home = os.path.join(os.path.sep,"home","travis");
bbe12a
-        home_build = os.path.join(os.path.sep,home,"build");
bbe12a
-
bbe12a
-        opts = [
bbe12a
-            "run",
bbe12a
-            "--read-only",
bbe12a
-            "--rm=true",
bbe12a
-            "-v","%s:%s"%(tmpdir, home_build),
bbe12a
-            "-w",os.path.join(home_build,"src"),
bbe12a
-            "-u",str(os.getuid()),
bbe12a
-            "-e","TRAVIS_COMMIT_RANGE=%s..HEAD"%(base),
bbe12a
-            "-e","TRAVIS_BRANCH=%s"%(base),
bbe12a
-            "-e","TRAVIS_EVENT_TYPE=pull_request",
bbe12a
-            "-e","HOME=%s"%(home),
bbe12a
-            "-e","TMPDIR=%s"%(os.path.join(home_build,"tmp")),
bbe12a
-        ] + map_git_args(opwd,os.path.join(home_build,"src"));
bbe12a
-
bbe12a
-        # Load the commands from the travis file
bbe12a
-        with open(os.path.join(opwd,".travis.yml")) as F:
bbe12a
-            cmds = yaml.safe_load(F)["script"];
bbe12a
-
bbe12a
-        with open(os.path.join(tmpdir,"go.sh"),"w") as F:
bbe12a
-            print("#!/bin/bash", file=F);
bbe12a
-            print("set -e", file=F);
bbe12a
-            for I in cmds:
bbe12a
-                print(I, file=F);
bbe12a
-
bbe12a
-        if args.run_shell:
bbe12a
-            opts.append("-ti");
bbe12a
-        opts.append(env.image_name());
bbe12a
-
bbe12a
-        if args.run_shell:
bbe12a
-            opts.append("/bin/bash");
bbe12a
-        else:
bbe12a
-            opts.extend(["/bin/bash",os.path.join(home_build,"go.sh")]);
bbe12a
-
bbe12a
-        try:
bbe12a
-            docker_cmd(args,*opts);
bbe12a
-        except subprocess.CalledProcessError as e:
bbe12a
-            copy_abi_files(os.path.join(tmpdir, "src/ABI"));
bbe12a
-            raise;
bbe12a
-        copy_abi_files(os.path.join(tmpdir, "src/ABI"));
bbe12a
-
bbe12a
 def run_azp_build(args,env):
bbe12a
     # Load the commands from the pipelines file
bbe12a
     with open("buildlib/azure-pipelines.yml") as F:
bbe12a
@@ -995,7 +836,7 @@ def args_pkg(parser):
bbe12a
     parser.add_argument("--run-shell",default=False,action="store_true",
bbe12a
                         help="Instead of running the build, enter a shell");
bbe12a
     parser.add_argument("--use-prebuilt-pandoc",default=False,action="store_true",
bbe12a
-                        help="Do not rebuild the pandoc cache in build-travis/pandoc-prebuilt/");
bbe12a
+                        help="Do not rebuild the pandoc cache in build-azure_pipelines/pandoc-prebuilt/");
bbe12a
     parser.add_argument("--with", default=[],action="append", dest="with_flags",
bbe12a
                         help="Enable specified feature in RPM builds");
bbe12a
     parser.add_argument("--without", default=[],action="append", dest="without_flags",
bbe12a
@@ -1003,9 +844,7 @@ def args_pkg(parser):
bbe12a
 def cmd_pkg(args):
bbe12a
     """Build a package in the given environment."""
bbe12a
     for env in args.ENV:
bbe12a
-        if env.name == "travis":
bbe12a
-            run_travis_build(args,env);
bbe12a
-        elif env.name == "azure_pipelines":
bbe12a
+        if env.name == "azure_pipelines":
bbe12a
             run_azp_build(args,env);
bbe12a
         elif getattr(env,"is_deb",False):
bbe12a
             run_deb_build(args,env);
bbe12a
diff --git a/buildlib/check-build b/buildlib/check-build
bbe12a
index 46053527..ab8524e5 100755
bbe12a
--- a/buildlib/check-build
bbe12a
+++ b/buildlib/check-build
bbe12a
@@ -364,12 +364,6 @@ def get_cc_args_from_pkgconfig(args, name, static):
bbe12a
     if not static:
bbe12a
         return opts
bbe12a
 
bbe12a
-    # The old pkg-config that travis uses incorrectly removes duplicated
bbe12a
-    # flags, which breaks linking.
bbe12a
-    if (name == "ibverbs" and
bbe12a
-        subprocess.check_output(["pkg-config", "--version"]).decode().strip() == "0.26"):
bbe12a
-        opts.insert(0, "-libverbs")
bbe12a
-
bbe12a
     # Only static link the pkg-config stuff, otherwise we get warnings about
bbe12a
     # static linking portions of glibc that need NSS.
bbe12a
     opts.insert(0, "-Wl,-Bstatic")
bbe12a
diff --git a/buildlib/travis-build b/buildlib/travis-build
bbe12a
deleted file mode 100755
bbe12a
index 48c1c8f6..00000000
bbe12a
--- a/buildlib/travis-build
bbe12a
+++ /dev/null
bbe12a
@@ -1,58 +0,0 @@
bbe12a
-#!/bin/bash
bbe12a
-
bbe12a
-PATH=/home/`whoami`/.local/bin:$PATH
bbe12a
-
bbe12a
-# Stop on error
bbe12a
-set -e
bbe12a
-# Echo all commands to Travis log
bbe12a
-set -x
bbe12a
-
bbe12a
-mkdir build-travis build32 build-sparse
bbe12a
-
bbe12a
-# Build with latest clang first
bbe12a
-cd build-travis
bbe12a
-CC=clang-7 CFLAGS=-Werror cmake -GNinja .. -DIOCTL_MODE=both -DENABLE_STATIC=1
bbe12a
-ninja
bbe12a
-../buildlib/check-build --src .. --cc clang-7
bbe12a
-
bbe12a
-# 32 bit build to check format strings/etc
bbe12a
-cd ../build32
bbe12a
-# travis is not configured in a way that enables all 32 bit
bbe12a
-# packages. We could fix this with some sudo stuff.. For now turn off libnl
bbe12a
-CC=gcc-8 CFLAGS="-Werror -m32 -msse3" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0 -DIOCTL_MODE=both -DNO_PYVERBS=1
bbe12a
-ninja
bbe12a
-
bbe12a
-# Run sparse on the subdirectories which are sparse clean
bbe12a
-cd ../build-sparse
bbe12a
-mv ../CMakeLists.txt ../CMakeLists-orig.txt
bbe12a
-grep -v "# NO SPARSE" ../CMakeLists-orig.txt > ../CMakeLists.txt
bbe12a
-CC=cgcc CFLAGS="-Werror" cmake -GNinja .. -DIOCTL_MODE=both -DNO_PYVERBS=1
bbe12a
-ninja | grep -v '^\[' | tee out
bbe12a
-# sparse does not fail gcc on messages
bbe12a
-if [ -s out ]; then
bbe12a
-   false
bbe12a
-fi
bbe12a
-mv ../CMakeLists-orig.txt ../CMakeLists.txt
bbe12a
-
bbe12a
-# Test with coherent DMA mode disabled (ie as would be on ARM32, etc)
bbe12a
-cd ../build-travis
bbe12a
-cp ../util/udma_barrier.h ../util/udma_barrier.h.old
bbe12a
-echo "#error Fail" >> ../util/udma_barrier.h
bbe12a
-rm CMakeCache.txt
bbe12a
-CC=clang-7 CFLAGS=-Werror cmake -GNinja .. -DIOCTL_MODE=both
bbe12a
-ninja
bbe12a
-cp ../util/udma_barrier.h.old ../util/udma_barrier.h
bbe12a
-
bbe12a
-# Finally run through gcc-8 64 bit through the debian packaging This gives a
bbe12a
-# good clue if patches are changing packaging related things, the RPM stuff
bbe12a
-# will have to be audited by hand.
bbe12a
-
bbe12a
-# When running cmake through debian/rules it is hard to set -Werror,
bbe12a
-# instead force it on by changing the CMakeLists.txt
bbe12a
-cd ..
bbe12a
-echo 'set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")' >> buildlib/RDMA_EnableCStd.cmake
bbe12a
-sed -i -e 's/-DCMAKE_BUILD_TYPE=Release/-DCMAKE_BUILD_TYPE=Debug/g' debian/rules
bbe12a
-sed -i -e 's/ninja \(.*\)-v/ninja \1/g' debian/rules
bbe12a
-
bbe12a
-CC=gcc-8 debian/rules build
bbe12a
-fakeroot debian/rules binary
bbe12a
-- 
bbe12a
2.20.1
bbe12a