source: gitlab-build.sh @ 6303155

develop
Last change on this file since 6303155 was 6303155, checked in by Shane Alcock <salcock@…>, 21 months ago

Fix broken dpdk dependencies in packages built by gitlab.

packages.wand.net.nz provides a more recent version of dpdk for
some distros, which will create dependencies with bad package
names (due to dpdk being terrible at maintaining a consistent
package naming scheme). Since we don't want to have to tell
users to add packages.wand.net.nz to their sources list anymore,
we need to make sure it is not used when building the packages.

  • Property mode set to 100755
File size: 777 bytes
Line 
1#!/bin/bash
2
3set -x -e -o pipefail
4
5export DEBEMAIL='packaging@wand.net.nz'
6export DEBFULLNAME='WAND Packaging'
7export DEBIAN_FRONTEND=noninteractive
8
9apt-get update
10apt-get install -y equivs devscripts dpkg-dev quilt curl apt-transport-https \
11    apt-utils ssl-cert ca-certificates gnupg lsb-release debhelper git
12
13echo "deb https://dl.bintray.com/wand/general $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/wand.list
14curl https://packages.wand.net.nz/keyring.gpg -o /etc/apt/trusted.gpg.d/wand.gpg
15
16apt-get update
17apt-get upgrade -y
18
19dpkg-parsechangelog -S version | grep -q ${CI_COMMIT_REF_NAME} || debchange --newversion ${CI_COMMIT_REF_NAME} -b "New upstream release"
20mk-build-deps -i -r -t 'apt-get -f -y --force-yes'
21dpkg-buildpackage -b -us -uc -rfakeroot -j4
Note: See TracBrowser for help on using the repository browser.