]> arthur.barton.de Git - bup.git/blobdiff - dev/prep-for-debianish-build
vint: check for bytes after read
[bup.git] / dev / prep-for-debianish-build
index aab8c2d02bf38a1e7e38e9b1dd576d52ee160474..a6bc1259ee2da17c2768af813c1ac97647f3443e 100755 (executable)
@@ -4,29 +4,32 @@ set -exuo pipefail
 
 usage()
 {
-    echo "Usage: prep-for-debianish-build [python2|python3]"
+    echo "Usage: prep-for-debianish-build [python2|python3] [pyxattr|xattr]"
 }
 
 export DEBIAN_FRONTEND=noninteractive
 apt-get update
 
 common_debs='gcc make linux-libc-dev git rsync eatmydata acl attr par2'
-common_debs="$common_debs duplicity rdiff-backup rsnapshot"
+common_debs="$common_debs duplicity rdiff-backup rsnapshot dosfstools kmod"
 
 pyver="${1:-python2}"
+xattr="${2:-pyxattr}"
+
+# dosfstools: for vfat for the (root) tests
 
 case "$pyver" in
     python2)
         apt-get install -y \
                 $common_debs \
                 python2.7-dev python-fuse \
-                python-pyxattr python-pylibacl python-tornado
+                python-"$xattr" python-pylibacl python-tornado
         ;;
     python3)
         apt-get install -y \
                 $common_debs \
                 python3.7-dev python3-distutils python3-fuse \
-                python3-pyxattr python3-pylibacl python3-tornado
+                python3-"$xattr" python3-pylibacl python3-tornado
         ;;
     *)
         usage 1>&2