forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Alexpux/MINGW-packages
- Loading branch information
Showing
83 changed files
with
2,252 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Maintainer: Some One <[email protected]> | ||
#This value is here because some python package names have capital letters | ||
#while there is a strong preference for lowercase letters in ArchLinux and | ||
#MSYS packages. | ||
_pyname=SomePackage | ||
_realname=somepackage | ||
pkgbase=mingw-w64-python-${_realname} | ||
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}") | ||
pkgver=1.0.0 | ||
pkgrel=1 | ||
pkgdesc="Some package (mingw-w64)" | ||
arch=('any') | ||
url='https://www.somepackage.org/' | ||
license=('LICENSE') | ||
validpgpkeys=('gpg_KEY') | ||
makedepends=("${MINGW_PACKAGE_PREFIX}-python2" | ||
"${MINGW_PACKAGE_PREFIX}-python3" | ||
"${MINGW_PACKAGE_PREFIX}-python3-setuptools" | ||
"${MINGW_PACKAGE_PREFIX}-python2-setuptools") | ||
options=('staticlibs' 'strip' '!debug') | ||
source=("https://pypi.python.org/packages/source/P/${_realname}/${_realname}-${pkgver}.tar.gz") | ||
"0001-An-important-fix.patch" | ||
"0002-A-less-important-fix.patch") | ||
sha256sums=('SKIP' | ||
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' | ||
'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb') | ||
|
||
prepare() { | ||
cd "$srcdir"/ | ||
patch -p1 -i ${srcdir}/0001-A-really-important-fix.patch | ||
patch -p1 -i ${srcdir}/0002-A-less-important-fix.patch | ||
for builddir in python{2,3}-build; do | ||
rm -rf $builddir | true | ||
cp -r "${_pyname}-${pkgver}" "${builddir}" | ||
done | ||
} | ||
|
||
check() { | ||
for pver in {2,3}; do | ||
msg "Python ${pver} test for ${CARCH}" | ||
cd "${srcdir}/python${pver}-build" | ||
${MINGW_PREFIX}/bin/python${pver} setup.py check | ||
done | ||
} | ||
|
||
# Note that build() is sometimes skipped because it's done in | ||
# the packages setup.py install for simplicity if you can do so. | ||
package_python3-somepackage() { | ||
depends=("${MINGW_PACKAGE_PREFIX}-python3") | ||
|
||
cd "${srcdir}/python3-build" | ||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ | ||
${MINGW_PREFIX}/bin/python3 setup.py install --prefix=${MINGW_PREFIX} \ | ||
--root="${pkgdir}" --optimize=1 | ||
|
||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python3-${_realname}/COPYING" | ||
} | ||
|
||
package_python2-somepackage() { | ||
depends=("${MINGW_PACKAGE_PREFIX}-python2") | ||
|
||
cd "${srcdir}/python2-build" | ||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ | ||
${MINGW_PREFIX}/bin/python2 setup.py install --prefix=${MINGW_PREFIX} \ | ||
--root="${pkgdir}" --optimize=1 | ||
|
||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/COPYING" | ||
} | ||
|
||
package_mingw-w64-i686-python2-somepackage() { | ||
package_python2-somepackage | ||
} | ||
|
||
package_mingw-w64-i686-python3-somepackage() { | ||
package_python3-somepackage | ||
} | ||
|
||
package_mingw-w64-x86_64-python2-somepackage() { | ||
package_python2-somepackage | ||
} | ||
|
||
package_mingw-w64-x86_64-python3-somepackage() { | ||
package_python3-somepackage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,7 @@ | |
# Maintainer (ArchLinux): Andrea Scarpino <[email protected]> | ||
# Maintainer (MSYS2): Ray Donnelly <[email protected]> | ||
|
||
if [ -n ${KF5_VARIANT} ]; then | ||
_variant=-${KF5_VARIANT} | ||
else | ||
_variant=-shared | ||
fi | ||
|
||
_variant=-${KF5_VARIANT:-shared} | ||
source "$(dirname ${BASH_SOURCE[0]})"/../mingw-w64-PKGBUILD-common/kde-frameworks5 | ||
_kde_f5_init_package "${_variant}" "attica" | ||
pkgver=5.12.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
mingw-w64-ccache/Revert-Handle-some-more-stale-NFS-file-handle-cases.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
diff -urN ccache-3.2.5.orig/ccache.c ccache-3.2.5/ccache.c | ||
--- ccache-3.2.5.orig/ccache.c 2016-04-24 14:29:28.686989000 +0200 | ||
+++ ccache-3.2.5/ccache.c 2016-04-24 14:30:57.937014600 +0200 | ||
@@ -851,7 +851,7 @@ | ||
} | ||
|
||
if (ret == -1) { | ||
- if (errno == ENOENT || errno == ESTALE) { | ||
+ if (errno == ENOENT) { | ||
/* Someone removed the file just before we began copying? */ | ||
cc_log("Cache file %s just disappeared from cache", source); | ||
stats_update(STATS_MISSING); | ||
diff -urN ccache-3.2.5.orig/cleanup.c ccache-3.2.5/cleanup.c | ||
--- ccache-3.2.5.orig/cleanup.c 2016-04-17 16:44:45.000000000 +0200 | ||
+++ ccache-3.2.5/cleanup.c 2016-04-24 14:31:26.269916100 +0200 | ||
@@ -108,7 +108,7 @@ | ||
if (x_unlink(path) == 0) { | ||
cache_size -= size; | ||
files_in_cache--; | ||
- } else if (errno != ENOENT && errno != ESTALE) { | ||
+ } else if (errno != ENOENT) { | ||
cc_log("Failed to unlink %s (%s)", path, strerror(errno)); | ||
} | ||
} | ||
@@ -122,7 +122,7 @@ | ||
path = format("%s%s", base, extension); | ||
if (lstat(path, &st) == 0) { | ||
delete_file(path, file_size(&st)); | ||
- } else if (errno != ENOENT && errno != ESTALE) { | ||
+ } else if (errno != ENOENT) { | ||
cc_log("Failed to stat %s: %s", path, strerror(errno)); | ||
} | ||
free(path); | ||
diff -urN ccache-3.2.5.orig/util.c ccache-3.2.5/util.c | ||
--- ccache-3.2.5.orig/util.c 2016-04-17 16:44:45.000000000 +0200 | ||
+++ ccache-3.2.5/util.c 2016-04-24 14:31:45.123663600 +0200 | ||
@@ -881,7 +881,7 @@ | ||
|
||
fname = format("%s/%s", dir, de->d_name); | ||
if (lstat(fname, &st)) { | ||
- if (errno != ENOENT && errno != ESTALE) { | ||
+ if (errno != ENOENT) { | ||
fatal("lstat %s failed: %s", fname, strerror(errno)); | ||
} | ||
free(fname); | ||
@@ -1510,7 +1510,7 @@ | ||
} | ||
if (unlink(tmp_name) == -1) { | ||
/* If it was released in a race, that's OK. */ | ||
- if (errno != ENOENT && errno != ESTALE) { | ||
+ if (errno != ENOENT) { | ||
result = -1; | ||
saved_errno = errno; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
mingw-w64-creduce/0001-Track-member-function-name-capitalization-change.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 0df87ff60d5c5df528feaeae16d5ad9c2741eeb5 Mon Sep 17 00:00:00 2001 | ||
From: Eric Eide <[email protected]> | ||
Date: Mon, 14 Sep 2015 17:35:33 -0600 | ||
Subject: [PATCH] Track member-function-name capitalization change. | ||
|
||
--- | ||
clang_delta/TransformationManager.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/clang_delta/TransformationManager.cpp b/clang_delta/TransformationManager.cpp | ||
index e677930..dceb497 100644 | ||
--- a/clang_delta/TransformationManager.cpp | ||
+++ b/clang_delta/TransformationManager.cpp | ||
@@ -112,7 +112,7 @@ bool TransformationManager::initializeCompilerInstance(std::string &ErrorMsg) | ||
ClangInstance->setASTConsumer( | ||
std::unique_ptr<ASTConsumer>(CurrentTransformationImpl)); | ||
Preprocessor &PP = ClangInstance->getPreprocessor(); | ||
- PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(), | ||
+ PP.getBuiltinInfo().initializeBuiltins(PP.getIdentifierTable(), | ||
PP.getLangOpts()); | ||
|
||
if (!ClangInstance->InitializeSourceManager(FrontendInputFile(SrcFileName, IK))) { | ||
-- | ||
2.8.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.