- #!/bin/ksh93
 - #
 - # buildlibnfs.ksh - build libnfs for Cygwin 3.6.x
 - #
 - # Written by roland.mainz@nrubsig.org
 - #
 - set -o xtrace
 - set -o errexit
 - #
 - # get sources and patch them
 - #
 - git clone https://github.com/sahlberg/libnfs.git
 - # fix "nfs_v4.c:436:29: error: array subscript has type 'char' [-Werror=char-subscripts]"
 - sed -i -E 's/if \(isdigit\(\*buf\)\) \{/if (isdigit((int)*buf)) {/' libnfs/lib/nfs_v4.c
 - # workaround for ms-nfs41-client
 - git config --global --add safe.directory "$PWD/libnfs"
 - cd libnfs
 - #
 - # configure
 - #
 - autoupdate
 - ln -s /usr/share/libtool/build-aux/ltmain.sh .
 - autoreconf || true
 - automake --add-missing
 - autoreconf
 - ./configure --without-libkrb5 --enable-utils
 - #
 - # build
 - #
 - make -j8 all
 - print '# done.'
 - # EOF.
 
buildlibnfs.ksh - build libnfs for Cygwin 3.6.x
Posted by Anonymous on Fri 22nd Mar 2024 15:05
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
 nrubsig.kpaste.net RSS