summaryrefslogtreecommitdiff
path: root/source/l/shared-mime-info
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2020-05-13 20:01:12 +0000
committerEric Hameleers <alien@slackware.com>2020-05-14 08:59:52 +0200
commit5864796142dd047453e8517d6ff9ce9ad66ebdc4 (patch)
tree8afcc7a2b6313563dcbd1051c8d298e402508346 /source/l/shared-mime-info
parent823b6649c1dd888afcf5d2e599773b3ce4ccd804 (diff)
downloadcurrent-5864796142dd047453e8517d6ff9ce9ad66ebdc4.tar.gz
Wed May 13 20:01:12 UTC 202020200513200112
l/shared-mime-info-2.0-x86_64-2.txz: Rebuilt. Disable fdatasync() usage. n/ethtool-5.6-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/l/shared-mime-info')
-rwxr-xr-xsource/l/shared-mime-info/shared-mime-info.SlackBuild9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/l/shared-mime-info/shared-mime-info.SlackBuild b/source/l/shared-mime-info/shared-mime-info.SlackBuild
index 56377ebf..0366a38d 100755
--- a/source/l/shared-mime-info/shared-mime-info.SlackBuild
+++ b/source/l/shared-mime-info/shared-mime-info.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=shared-mime-info
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -71,10 +71,6 @@ rm -rf ${PKGNAM}-$VERSION
tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z || exit 1
cd ${PKGNAM}-$VERSION || exit 1
-# Don't use fdatasync() unless you want it to take 1000x longer
-# to update the mime database. Seriously.
-export ac_cv_func_fdatasync=no
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -103,6 +99,9 @@ meson setup \
--buildtype=release \
-Dupdate-mimedb=false \
.. || exit 1
+ # Don't use fdatasync() unless you want it to take 1000x longer
+ # to update the mime database. Seriously.
+ sed -e "/HAVE_FDATASYNC/ d" -i src/config.h
"${NINJA:=ninja}" $NUMJOBS || exit 1
DESTDIR=$PKG $NINJA install || exit 1
cd ..