Skip to contentSkip to conversation

travis: Add libefivar support

PATCH New Petr Vorel 2 participants 5 messages Nov 10, 2020 – Feb 6, 2021

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 travis: Add libefivar support

---
Hi,

Travis support for Martin's patchset
https://patchwork.ozlabs.org/project/ltp/list/?series=213179&state=*

Travis CI:
https://travis-ci.org/github/pevik/ltp/builds/742684375

Kind regards,
Petr

 travis/debian.cross-compile.sh | 1 +
 travis/debian.i386.sh          | 1 +
 travis/debian.minimal.sh       | 1 +
 travis/debian.sh               | 1 +
 travis/fedora.sh               | 1 +
 travis/tumbleweed.sh           | 1 +
 6 files changed, 6 insertions(+)
travis/debian.cross-compile.sh +1 -0
index 0a7ef7710..e27c6c9bc 100755
@@ -20,5 +20,6 @@ apt update
 apt install -y --no-install-recommends \
 	gcc-${gcc_arch}-linux-gnu \
 	libc6-dev-${ARCH}-cross \
+	libefivar-dev:$ARCH \
 	libmnl-dev:$ARCH \
 	libtirpc-dev:$ARCH
travis/debian.i386.sh +1 -0
index 707a23ca6..1cf7734dd 100755
@@ -13,6 +13,7 @@ apt install -y --no-install-recommends \
 	libcap2:i386 \
 	libc6-dev-i386 \
 	libc6:i386 \
+	libefivar-dev:i386 \
 	libkeyutils1:i386 \
 	libnuma1:i386 \
 	libssl-dev:i386 \
travis/debian.minimal.sh +1 -0
index 3f1941969..4b6d65727 100755
@@ -8,6 +8,7 @@ apt remove -y \
 	libaio1 \
 	libcap-dev \
 	libcap2 \
+	libefivar-dev \
 	libkeyutils-dev \
 	libkeyutils1 \
 	libmm-dev \
travis/debian.sh +1 -0
index b759a9576..dec18189c 100755
@@ -25,6 +25,7 @@ apt install -y --no-install-recommends \
 	libcap2 \
 	libc6 \
 	libc6-dev \
+	libefivar-dev \
 	libkeyutils-dev \
 	libkeyutils1 \
 	libmm-dev \
travis/fedora.sh +1 -0
index 990a84daf..27b979353 100755
@@ -9,6 +9,7 @@ yum -y install \
 	clang \
 	gcc \
 	findutils \
+	efivar-devel \
 	libtirpc \
 	libtirpc-devel \
 	pkg-config \
travis/tumbleweed.sh +1 -0
index 4d5e9da79..2ce919426 100755
@@ -10,6 +10,7 @@ zypper --non-interactive install --force-resolution --no-recommends \
 	gcc \
 	gzip \
 	make \
+	efivar-devel \
 	kernel-default-devel \
 	keyutils-devel \
 	libacl-devel \
Signature · 1 line
2.29.2
author
#1 lore raw

PATCH 1/1 travis: Add libefivar support

Hi,

Quoted 2 lines

Travis CI:
https://travis-ci.org/github/pevik/ltp/builds/742684375

Looks like Debian does not ship libefivar-dev for ppc64el
https://travis-ci.org/github/pevik/ltp/jobs/742684377

Kind regards,
Petr

Fix:

debian.cross-compile.sh +6 -2
index e27c6c9bc..69ddf225c 100755
@@ -2,6 +2,8 @@
 # Copyright (c) 2018-2020 Petr Vorel <[email protected]>
 set -ex
 
+apt="apt install -y --no-install-recommends"
+
 if [ -z "$ARCH" ]; then
 	echo "missing \$ARCH!" >&2
 	exit 1
@@ -17,9 +19,11 @@ esac
 dpkg --add-architecture $ARCH
 apt update
 
-apt install -y --no-install-recommends \
+$apt \
 	gcc-${gcc_arch}-linux-gnu \
 	libc6-dev-${ARCH}-cross \
-	libefivar-dev:$ARCH \
 	libmnl-dev:$ARCH \
 	libtirpc-dev:$ARCH
+
+# efivar is currently missing on ppc64el
+$apt libefivar-dev:$ARCH || true
#2 lore raw

PATCH 1/1 travis: Add libefivar support

Quoted 7 lines · Petr Vorel

Hi,

Quoted 2 lines

Travis CI:
https://travis-ci.org/github/pevik/ltp/builds/742684375

Looks like Debian does not ship libefivar-dev for ppc64el
https://travis-ci.org/github/pevik/ltp/jobs/742684377

From Travis CI, the CentOS8 reports miss efivar-devel package too.

Maybe fix it by the following?

travis/fedora.sh +2 -2
@@ -9,11 +9,11 @@ yum -y install \
        clang \
        gcc \
        findutils \
-       efivar-devel \
        libtirpc \
        libtirpc-devel \
        pkg-config \
        redhat-lsb-core
 
-# CentOS 8 doesn't have libmnl-devel
+# CentOS 8 doesn't have libmnl-devel and efivar-devel
 yum -y install libmnl-devel || yum -y install libmnl
+yum -y --skip-broken install efivar-devel
Signature · 5 lines
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20201111/0d77aaab/attachment-0001.htm>
author
#3 lore raw

PATCH 1/1 travis: Add libefivar support

Hi Li,

Quoted 21 lines · Petr Vorel
Quoted 8 lines

Hi,

Quoted 2 lines

Travis CI:
https://travis-ci.org/github/pevik/ltp/builds/742684375

Looks like Debian does not ship libefivar-dev for ppc64el
https://travis-ci.org/github/pevik/ltp/jobs/742684377

From Travis CI, the CentOS8 reports miss efivar-devel package too.

Maybe fix it by the following?

travis/fedora.sh +0 -0
@@ -9,11 +9,11 @@ yum -y install \
        clang \
        gcc \
        findutils \

travis/fedora.sh yum -y install \ · line 19

Quoted 10 lines
travis/fedora.sh +2 -2
-       efivar-devel \
        libtirpc \
        libtirpc-devel \
        pkg-config \
        redhat-lsb-core
 
-# CentOS 8 doesn't have libmnl-devel
+# CentOS 8 doesn't have libmnl-devel and efivar-devel
 yum -y install libmnl-devel || yum -y install libmnl
+yum -y --skip-broken install efivar-devel

+1
Thanks!

Kind regards,
Petr

author
#4 lore raw

PATCH 1/1 travis: Add libefivar support

In reply to Li Wang

Hi Li,

Quoted 21 lines · Petr Vorel
Quoted 8 lines

Hi,

Quoted 2 lines

Travis CI:
https://travis-ci.org/github/pevik/ltp/builds/742684375

Looks like Debian does not ship libefivar-dev for ppc64el
https://travis-ci.org/github/pevik/ltp/jobs/742684377

From Travis CI, the CentOS8 reports miss efivar-devel package too.

Maybe fix it by the following?

travis/fedora.sh +0 -0
@@ -9,11 +9,11 @@ yum -y install \
        clang \
        gcc \
        findutils \

travis/fedora.sh yum -y install \ · line 19

Quoted 10 lines
travis/fedora.sh +2 -2
-       efivar-devel \
        libtirpc \
        libtirpc-devel \
        pkg-config \
        redhat-lsb-core
 
-# CentOS 8 doesn't have libmnl-devel
+# CentOS 8 doesn't have libmnl-devel and efivar-devel
 yum -y install libmnl-devel || yum -y install libmnl
+yum -y --skip-broken install efivar-devel

I'm sorry, I completely overlook your comment.
In the end it's not needed as we use our own implementation.

Kind regards,
Petr