mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
system/p7zip: Patch for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
614b013914
commit
c348332143
2 changed files with 27 additions and 3 deletions
22
system/p7zip/gcc10.patch
Normal file
22
system/p7zip/gcc10.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
https://sourceforge.net/p/p7zip/bugs/226/
|
||||
|
||||
--- a/CPP/Windows/ErrorMsg.cpp 2020-05-28 00:35:02.729896917 +0200
|
||||
+++ b/CPP/Windows/ErrorMsg.cpp 2020-05-28 00:40:01.676442629 +0200
|
||||
@@ -13,7 +13,7 @@
|
||||
const char * txt = 0;
|
||||
AString msg;
|
||||
|
||||
- switch(errorCode) {
|
||||
+ switch(HRESULT(errorCode)) {
|
||||
case ERROR_NO_MORE_FILES : txt = "No more files"; break ;
|
||||
case E_NOTIMPL : txt = "E_NOTIMPL"; break ;
|
||||
case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ;
|
||||
@@ -43,7 +43,7 @@
|
||||
const char * txt = 0;
|
||||
AString msg;
|
||||
|
||||
- switch(messageID) {
|
||||
+ switch(HRESULT(messageID)) {
|
||||
case ERROR_NO_MORE_FILES : txt = "No more files"; break ;
|
||||
case E_NOTIMPL : txt = "E_NOTIMPL"; break ;
|
||||
case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ;
|
|
@ -29,7 +29,7 @@ TAG=${TAG:-_SBo}
|
|||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
|
@ -72,6 +72,8 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/gcc10.patch
|
||||
|
||||
make all3 \
|
||||
OPTFLAGS="$SLKCFLAGS" \
|
||||
DEST_HOME=/usr \
|
||||
|
|
Loading…
Reference in a new issue