Skip to content

Commit b3f9212

Browse files
authored
Merge pull request #2623 from pqarmitage/updates
snap: attempt 6 to fix close_range() snap build with Linux 5.8
2 parents 048d12a + 7503633 commit b3f9212

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

snap/snapcraft.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,13 @@ parts:
257257
cat /usr/include/linux/version.h
258258
ls -lR /usr/include/linux
259259
rm -rf ${CRAFT_STAGE}/keepalived-linux-libc-dev
260-
echo CFLAGS=${CFLAGS:-}
261260
echo "Finding close_range.h"
262261
find /usr/include -name "close_range.h"
263-
cat /usr/include/linux/close_range.h || true
262+
if [ -f /usr/include/linux/close_range.h ]; then
263+
cat /usr/include/linux/close_range.h
264+
else
265+
echo /usr/inclde/linux/close_range.h not found
266+
fi
264267
echo -n "Build kernel:"
265268
printf " %d.%d.%d\n" $(printf "%6.6x" $(grep LINUX_VERSION_CODE /usr/include/linux/version.h | sed -e "s/.*CODE //") | sed -e "s/\(..\)\(..\)/0x\1 0x\2 0x/")
266269
stage:

0 commit comments

Comments
 (0)