Kf5: the sed for kcodecs must

be done after changing to $packagedir

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21387 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2019-03-24 21:36:02 +00:00
parent f50f3f37ad
commit 400a529a91

View File

@ -310,15 +310,14 @@ ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share</userinput></screen>
pkg=$(echo $file|sed 's|^.*/||') # Remove directory
packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
# Fix a security issue in kcodecs
name=$(echo $pkg|sed 's|-5.*$||') # Isolate package name
if [ "$name" == "kcodecs" ]; then
sed -i '/int ISO2022JPChar/s/}/, 0, 0}/' src/probers/nsEscSM.cpp
fi
tar -xf $file
pushd $packagedir
# Fix a security issue in kcodecs
if [ "$name" == "kcodecs" ]; then
sed -i '/int ISO2022JPChar/s/}/, 0, 0}/' src/probers/nsEscSM.cpp
fi
mkdir build
cd build