e05111d11e
The CI build fails with: ../include/misc.h:76:26: error: unknown type name ‘loff_t’; did you mean ‘off_t’? 76 | int valid_offset(int fd, loff_t offset); | ^~~~~~ | off_t Add the right define that will bring the symbol. Signed-off-by: David Sterba <dsterba@suse.com>
32 lines
753 B
Bash
Executable file
32 lines
753 B
Bash
Executable file
#!/bin/sh
|
|
# download, build and install reiserfs library
|
|
|
|
version=3.6.27
|
|
dir=tmp-cached-reiser
|
|
stamp="$dir/.last-build-reiser"
|
|
here=`pwd`
|
|
|
|
set -e
|
|
|
|
if [ -d "$dir" -a -f "$stamp" ]; then
|
|
echo "Using valid cache for $dir, built" `cat "$stamp"`
|
|
cd "$dir"
|
|
cd reiserfsprogs-${version}
|
|
sudo make install
|
|
exit 0
|
|
fi
|
|
|
|
echo "No or stale cache for $dir, rebuilding"
|
|
rm -rf "$dir"
|
|
mkdir "$dir"
|
|
cd "$dir"
|
|
wget https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v${version}/reiserfsprogs-${version}.tar.xz
|
|
tar xf reiserfsprogs-${version}.tar.xz
|
|
cd reiserfsprogs-${version}
|
|
# Compilation fails as loff_t is not defined without the define
|
|
export CFLAGS
|
|
CFLAGS=-D_GNU_SOURCE
|
|
./configure --prefix=/usr
|
|
make all
|
|
sudo make install
|
|
date > "$here/$stamp"
|