Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #79 from hahnjo/arch-linux-2020
Browse files Browse the repository at this point in the history
Fixes for Arch Linux, Edition 2020
  • Loading branch information
PhilHolmes committed Jul 30, 2020
2 parents 36474d9 + c0177d5 commit 430097b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gub/specs/fontforge.py
Expand Up @@ -8,4 +8,5 @@ class Fontforge__tools (tools.AutoBuild):
configure_flags = (tools.AutoBuild.configure_flags
+ ' --without-cairo '
+ ' --without-x '
+ ' --enable-python-scripting=3 ')
+ ' --enable-python-scripting=3 '
+ ' PYTHON=%(tools_prefix)s/bin/python3 ')
1 change: 1 addition & 0 deletions gub/specs/lilypond-test.py
Expand Up @@ -7,6 +7,7 @@
class LilyPond_test (lilypond.LilyPond_base):
dependencies = (lilypond.LilyPond_base.dependencies
+ [
'tools::imagemagick',
'tools::netpbm',
'tools::fonts-dejavu',
'tools::fonts-libertine',
Expand Down
1 change: 1 addition & 0 deletions gub/specs/p7zip.py
Expand Up @@ -2,6 +2,7 @@

class P7zip__tools (tools.MakeBuild):
source = 'http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2'
patches = [ 'p7zip-gcc10-conversion.patch' ]
dependencies = [ 'bzip2', 'system::g++' ]
install_flags = ' DEST_HOME=%(install_prefix)s install'
def patch (self):
Expand Down
25 changes: 25 additions & 0 deletions patches/p7zip-gcc10-conversion.patch
@@ -0,0 +1,25 @@
--- p7zip-9.20.1.src.all.orig/CPP/Windows/Error.cpp 2020-07-25 15:25:33.720387509 +0200
+++ p7zip-9.20.1.src.all/CPP/Windows/Error.cpp 2020-07-25 15:26:56.104520466 +0200
@@ -14,14 +14,14 @@
AString msg;

switch(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 ;
- case E_ABORT : txt = "E_ABORT"; break ;
- case E_FAIL : txt = "E_FAIL"; break ;
- case STG_E_INVALIDFUNCTION : txt = "STG_E_INVALIDFUNCTION"; break ;
- case E_OUTOFMEMORY : txt = "E_OUTOFMEMORY"; break ;
- case E_INVALIDARG : txt = "E_INVALIDARG"; break ;
+ case unsigned (ERROR_NO_MORE_FILES) : txt = "No more files"; break ;
+ case unsigned (E_NOTIMPL) : txt = "E_NOTIMPL"; break ;
+ case unsigned (E_NOINTERFACE) : txt = "E_NOINTERFACE"; break ;
+ case unsigned (E_ABORT) : txt = "E_ABORT"; break ;
+ case unsigned (E_FAIL) : txt = "E_FAIL"; break ;
+ case unsigned (STG_E_INVALIDFUNCTION) : txt = "STG_E_INVALIDFUNCTION"; break ;
+ case unsigned (E_OUTOFMEMORY) : txt = "E_OUTOFMEMORY"; break ;
+ case unsigned (E_INVALIDARG) : txt = "E_INVALIDARG"; break ;
default:
txt = strerror(messageID);
}

0 comments on commit 430097b

Please sign in to comment.