Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package openafs for openSUSE:Factory checked in at 2021-02-23 20:20:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openafs (Old) and /work/SRC/openSUSE:Factory/.openafs.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openafs" Tue Feb 23 20:20:52 2021 rev:25 rq:874346 version:1.8.7 Changes: -------- --- /work/SRC/openSUSE:Factory/openafs/openafs.changes 2021-02-07 15:23:52.842189695 +0100 +++ /work/SRC/openSUSE:Factory/.openafs.new.2378/openafs.changes 2021-02-23 20:22:35.383771600 +0100 @@ -1,0 +2,8 @@ +Mon Feb 22 11:44:25 UTC 2021 - Matthias Gerstner <[email protected]> + +- kernel-source.build-modules.sh: choose safe CWD while executing the build to + prevent files being created in unsafe locations. Use new SUSE naming + convention and rely on /etc/os-release, since /etc/SuSE-release no longer + exists. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kernel-source.build-modules.sh ++++++ --- /var/tmp/diff_new_pack.GgoCcZ/_old 2021-02-23 20:22:36.947772983 +0100 +++ /var/tmp/diff_new_pack.GgoCcZ/_new 2021-02-23 20:22:36.947772983 +0100 @@ -1,20 +1,29 @@ -#!/bin/sh +#!/bin/bash if [ $# != 1 ]; then echo building a openafs-kernel module for the running kernel - echo Need one of: build build_debug install + echo Need one of: build build_debug install exit 1 fi +rootdir=`cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd` + +if [ -z "$rootdir" ]; then + echo "failed to determine the dirname of this script" + exit 1 +fi + +cd "$rootdir" + LOGFILE=libafs_tree/build.log -kernel_flavour=`uname -r | awk -F- '{print $NF}'` +kernel_flavour=`uname -r | awk -F- '{print $NF}'` kernel_version=`uname -r | sed "s/-$kernel_flavour//"` arch=`uname -m` -suse_flavour=`cat /etc/SuSE-release | head -1 | awk '{print $1}' ` -suse_version=`cat /etc/SuSE-release | grep VERSION | awk '{print $NF}' ` +suse_flavour=`cat /etc/os-release | grep PRETTY_NAME | awk -F '=' '{print $2}'` +suse_version=`cat /etc/os-release | grep VERSION_ID | awk -F '=' '{print $2}'` -echo This SuSE is version \"$suse_version\" of flavour \"$suse_flavour\" +echo This SUSE is version $suse_version of flavour $suse_flavour echo you are running the kernel \"$kernel_version\" of flavour \"$kernel_flavour\" on \"$arch\" echo all output is saved into $LOGFILE @@ -25,14 +34,14 @@ if [ $1 == "build" -o $1 == "build_debug" ]; then cd libafs_tree echo calling configure... - ./configure --with-linux-kernel-headers=/usr/src/linux/ --with-linux-kernel-build=/usr/src/linux-obj/$arch/$kernel_flavour $DEBUG_OPT > build.log 2>&1 - if [ $? != 0 ]; then + ./configure --with-linux-kernel-headers=/usr/src/linux/ --with-linux-kernel-build=/usr/src/linux-obj/$arch/$kernel_flavour $DEBUG_OPT > build.log 2>&1 + if [ $? != 0 ]; then echo configure failed! See $LOGFILE for details exit $? fi echo calling make - make >> build.log 2>&1 - if [ $? != 0 ]; then + make >> build.log 2>&1 + if [ $? != 0 ]; then echo make failed! See $LOGFILE for details exit $? fi @@ -47,9 +56,9 @@ module_files="afspag.ko libafs.ko" build_dir=libafs_tree/src/libafs/MODLOAD-$kernel_version-$kernel_flavour-MP/ install_dir=/lib/modules/$kernel_version-$kernel_flavour - echo installing kernel-modules into + echo installing kernel-modules into for mod in $module_files; do - cp -v $build_dir/$mod $install_dir/$mod + cp -v $build_dir/$mod $install_dir/$mod done /sbin/depmod -a fi
