source: packages/net/xtables-addons/patches/002-fix-kernel-version-detection.patch @ 31282

Last change on this file since 31282 was 31282, checked in by jogo, 5 years ago

packages: xtables-addons: update to 1.42

fixes compilation for 3.3 and 3.4.

File size: 892 bytes
  • configure

    a b regular_CFLAGS="-Wall -Waggregate-return 
    1161711617if test -n "$kbuilddir"; then 
    1161811618        { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel version that we will build against" >&5 
    1161911619$as_echo_n "checking kernel version that we will build against... " >&6; } 
    11620         krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease)"; 
     11620        krel="$(make -sC "$kbuilddir" M=$PWD kernelversion)"; 
    1162111621        kmajor="${krel%%[^0-9]*}"; 
    1162211622        kmajor="$(($kmajor+0))"; 
    1162311623        krel="${krel:${#kmajor}}"; 
  • configure.ac

    a b regular_CFLAGS="-Wall -Waggregate-return 
    4343 
    4444if test -n "$kbuilddir"; then 
    4545        AC_MSG_CHECKING([kernel version that we will build against]) 
    46         krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease)"; 
     46        krel="$(make -sC "$kbuilddir" M=$PWD kernelversion)"; 
    4747        kmajor="${krel%%[[^0-9]]*}"; 
    4848        kmajor="$(($kmajor+0))"; 
    4949        krel="${krel:${#kmajor}}"; 
Note: See TracBrowser for help on using the repository browser.