upg python libarchive libcap-ng

add mpdecimal
This commit is contained in:
joborun linux 2024-04-25 22:51:56 +03:00
parent 40ae193b51
commit 944a965e51
15 changed files with 166 additions and 52 deletions

View File

@ -7,18 +7,18 @@
pkgname=libarchive
pkgver=3.7.3
pkgrel=01
pkgrel=02
pkgdesc='Multi-format archive and compression library'
url='https://libarchive.org/'
depends=('acl' 'libacl.so' 'bzip2' 'expat' 'lz4' 'openssl' 'xz' 'zlib' 'zstd' 'libcrypto.so')
provides=('libarchive.so')
#options=('debug')
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
# libarchive-tar-make-error-reporting-more-robust.patch::https://github.com/libarchive/libarchive/commit/6110e9c82d8ba830c3440f36b990483ceaaea52c.patch)
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
'libarchive-fix-OOB-in-rar-e8-filter-2135.patch::https://github.com/libarchive/libarchive/commit/eb7939b24a681a04648a59cdebd386b1e9dc9237.patch')
prepare() {
cd "${pkgname}-${pkgver}"
# patch -Np1 < ../libarchive-tar-make-error-reporting-more-robust.patch
patch -Np1 < ../libarchive-fix-OOB-in-rar-e8-filter-2135.patch
}
build() {
@ -55,7 +55,9 @@ validpgpkeys=(A5A45B12AD92D964B89EEE2DEC560C81CEC2276E # Martin Matuska <mm@Fre
DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B) # Martin Matuska <martin@matuska.org>
sha256sums=(63e7a7174638fc7d6b79b4c8b0ad954e0f4f45abe7239c1ecb200232aa9a43d2 # libarchive-3.7.3.tar.xz
f421af9d30a31b1a0741846df7961da2e59d45bbf566090993c3994a07ff0ac9) # libarchive-3.7.3.tar.xz.asc
f421af9d30a31b1a0741846df7961da2e59d45bbf566090993c3994a07ff0ac9 # libarchive-3.7.3.tar.xz.asc
78b62ba75f4f6254ae6a80528ecfc429eb2d9ce01924c4ef5ee7a91fd284bea8) # libarchive-tar-make-error-reporting-more-robust.patch
## 83a1a45aa444011fbd5991e4727fc2f52611f68e353a11c83c17695c05ca24a3 libarchive-3.7.3-01-x86_64.pkg.tar.lz
## a6cb7c4abe7cb0c305a7b5f0ea1ec0a878e9a2b198e5ecd9b34401bde25014e8 libarchive-3.7.3-02-x86_64.pkg.tar.lz

View File

@ -3,7 +3,7 @@
pkgname=libarchive
pkgver=3.7.3
pkgrel=1
pkgrel=2
pkgdesc='Multi-format archive and compression library'
arch=('x86_64')
url='https://libarchive.org/'
@ -13,9 +13,16 @@ depends=('acl' 'libacl.so' 'bzip2' 'expat' 'lz4' 'openssl' 'libcrypto.so' 'xz'
provides=('libarchive.so')
validpgpkeys=('A5A45B12AD92D964B89EEE2DEC560C81CEC2276E' # Martin Matuska <mm@FreeBSD.org>
'DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B') # Martin Matuska <martin@matuska.org>
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
'libarchive-fix-OOB-in-rar-e8-filter-2135.patch::https://github.com/libarchive/libarchive/commit/eb7939b24a681a04648a59cdebd386b1e9dc9237.patch')
sha256sums=('63e7a7174638fc7d6b79b4c8b0ad954e0f4f45abe7239c1ecb200232aa9a43d2'
'SKIP')
'SKIP'
'78b62ba75f4f6254ae6a80528ecfc429eb2d9ce01924c4ef5ee7a91fd284bea8')
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 < ../libarchive-fix-OOB-in-rar-e8-filter-2135.patch
}
build() {
cd "${pkgname}-${pkgver}"

View File

@ -1,3 +1,2 @@

View File

@ -0,0 +1,23 @@
From eb7939b24a681a04648a59cdebd386b1e9dc9237 Mon Sep 17 00:00:00 2001
From: Wei-Cheng Pan <legnaleurc@gmail.com>
Date: Mon, 22 Apr 2024 01:55:41 +0900
Subject: [PATCH] fix: OOB in rar e8 filter (#2135)
This patch fixes an out-of-bound error in rar e8 filter.
---
libarchive/archive_read_support_format_rar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libarchive/archive_read_support_format_rar.c b/libarchive/archive_read_support_format_rar.c
index 99a11d170..266d0ee99 100644
--- a/libarchive/archive_read_support_format_rar.c
+++ b/libarchive/archive_read_support_format_rar.c
@@ -3615,7 +3615,7 @@ execute_filter_e8(struct rar_filter *filter, struct rar_virtual_machine *vm, siz
uint32_t filesize = 0x1000000;
uint32_t i;
- if (length > PROGRAM_WORK_SIZE || length < 4)
+ if (length > PROGRAM_WORK_SIZE || length <= 4)
return 0;
for (i = 0; i <= length - 5; i++)

View File

@ -7,15 +7,14 @@
pkgbase=libcap-ng
pkgname=(libcap-ng python-capng)
pkgver=0.8.4
pkgrel=03
pkgver=0.8.5
pkgrel=02
pkgdesc='A library for Linux that makes using posix capabilities easy'
url='https://people.redhat.com/sgrubb/libcap-ng/'
depends=(glibc)
makedepends=(python swig)
#options=(debug) # uncomment if you want libcap-ng-debug package made
source=(https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
$pkgname-0.8.4-remove_exception_handler.patch::https://github.com/stevegrubb/libcap-ng/commit/30453b6553948cd05c438f9f509013e3bb84f25b.patch)
source=(https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
_pick() {
local p="$1" f d; shift
@ -29,7 +28,6 @@ _pick() {
prepare() {
# backport patch for removed swig functionality: https://github.com/stevegrubb/libcap-ng/issues/48
patch -Np1 -d $pkgbase-$pkgver -i ../$pkgname-0.8.4-remove_exception_handler.patch
cd $pkgbase-$pkgver
# make stupid autotools happy -_-
touch NEWS
@ -75,9 +73,10 @@ arch=(x86_64)
license=(GPL-2.0-or-later LGPL-2.1-or-later)
sha256sums=(5615c76a61039e283a6bd107c4faf345ae5ad4dcd45907defe5e474d8fdb6fd2 # libcap-ng-0.8.4.tar.gz
9893217e21f1dfd817ef1e25b458a1a5e315b370c1808b435598d48b65b9124d) # libcap-ng-0.8.4-remove_exception_handler.patch
## d730c04789ec4e83f486c25af2fb82ce4ab95737c410907722270edc493a3fcf libcap-ng-0.8.4-03-x86_64.pkg.tar.lz
## b5987842c8c31eff678181164ca1389eaaf595b26df642e939666c379f424f7b python-capng-0.8.4-03-x86_64.pkg.tar.lz
sha512sums=('3bd868c7f263b77edd2feda831470b407f1086b434618e54336fb78bbf8bf3bad53f4c006a2118fb594b16554f8f7ec2acb76e08be5586d0261684e9ba139231')
b2sums=('70d70da50aff6423cf98cc87512d691308ec73e4143b4deb4bbc32e764db856af60d2aab2fed6ead2c5662adccb1ebf3a72bc1a8990261e104b28d2b9225cf92')
sha256sums=(e4be07fdd234f10b866433f224d183626003c65634ed0552b02e654a380244c2) # libcap-ng-0.8.5.tar.gz
## 3bfcf3121d35c803dad172aa5c4dc2fb3650efc041008dd08ea818953f32b9a2 libcap-ng-0.8.5-02-x86_64.pkg.tar.lz
## ea11a8edd507b3cadd69eb36eaf39f3f738822d19e5a5412f50d88d76baae179 python-capng-0.8.5-02-x86_64.pkg.tar.lz

View File

@ -8,8 +8,8 @@ pkgname=(
libcap-ng
python-capng
)
pkgver=0.8.4
pkgrel=3
pkgver=0.8.5
pkgrel=2
pkgdesc='A library for Linux that makes using posix capabilities easy'
arch=(x86_64)
url='https://people.redhat.com/sgrubb/libcap-ng/'
@ -24,12 +24,9 @@ makedepends=(
)
source=(
https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
$pkgname-0.8.4-remove_exception_handler.patch::https://github.com/stevegrubb/libcap-ng/commit/30453b6553948cd05c438f9f509013e3bb84f25b.patch
)
sha512sums=('3e640ba4bfa2d5b5d0eb463abca3b2c745b10e929571c0ec32eb068bdc41fd95e19f7131893a22ceebb4d1f1083d3d87d9a32f0808442d594ac5940791152acf'
'74de0b06ca948d217fba18dece9072684267bc3f60d53f6c3c164af8f57c48d69d5d17df4a35fee98fdc5919146864168249a690153a95dcda97712efb3e1f7a')
b2sums=('f4ea9780b87cdd4f9fa85d4ad3960afe654bc8aa6f5aa298ec87b7d90c87dd981f81577e5113ed76d83aa39c959160bf4deee57be9b458a98f8715e6f7b8dd33'
'd5a2f35354efb9adb9c45a2173a97358de2fa79fcd6ea5af8987f85a743fc3eb4a2f7f20741538c5487087db9b6f5143041ad7a85d6943b2175ec2c20dac7eb7')
sha512sums=('3bd868c7f263b77edd2feda831470b407f1086b434618e54336fb78bbf8bf3bad53f4c006a2118fb594b16554f8f7ec2acb76e08be5586d0261684e9ba139231')
b2sums=('70d70da50aff6423cf98cc87512d691308ec73e4143b4deb4bbc32e764db856af60d2aab2fed6ead2c5662adccb1ebf3a72bc1a8990261e104b28d2b9225cf92')
_pick() {
local p="$1" f d; shift
@ -42,9 +39,6 @@ _pick() {
}
prepare() {
# backport patch for removed swig functionality: https://github.com/stevegrubb/libcap-ng/issues/48
patch -Np1 -d $pkgbase-$pkgver -i ../$pkgname-0.8.4-remove_exception_handler.patch
cd $pkgbase-$pkgver
# make stupid autotools happy -_-
touch NEWS

View File

@ -4,3 +4,4 @@ autoconf
automake

39
mpdecimal/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=mpdecimal
pkgver=4.0.0
pkgrel=02
pkgdesc="Package for correctly-rounded arbitrary precision decimal floating point arithmetic"
url="https://www.bytereef.org/mpdecimal/index.html"
depends=('glibc' 'gcc-libs')
source=("https://www.bytereef.org/software/$pkgname/releases/$pkgname-$pkgver.tar.gz")
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
LDXXFLAGS="$LDFLAGS" make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYRIGHT.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD')
sha256sums=(942445c3245b22730fd41a67a7c5c231d11cb1b9936b9c0f76334fb7d0b4468c) # mpdecimal-4.0.0.tar.gz
## 767fbf0803e7c14137a40ce53247ddcf1972556e464511891816e37e89cb38c9 mpdecimal-4.0.0-02-x86_64.pkg.tar.lz

27
mpdecimal/PKGBUILD-arch Normal file
View File

@ -0,0 +1,27 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=mpdecimal
pkgver=4.0.0
pkgrel=2
pkgdesc="Package for correctly-rounded arbitrary precision decimal floating point arithmetic"
arch=('x86_64')
url="https://www.bytereef.org/mpdecimal/index.html"
license=('BSD')
depends=('glibc' 'gcc-libs')
source=("https://www.bytereef.org/software/$pkgname/releases/$pkgname-$pkgver.tar.gz")
sha512sums=('7610ac53ac79f7a8a33fa7a3e61515810444ec73ebca859df7a9ddc18e96b990c99323172810c9cc7f6d6e1502c0be308cd443d6c2d5d0c871648e4842e05d59')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
LDXXFLAGS="$LDFLAGS" make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYRIGHT.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}
##

1
mpdecimal/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,mpdecimal*.tar.gz}

2
mpdecimal/deps Normal file
View File

@ -0,0 +1,2 @@

6
mpdecimal/time Normal file
View File

@ -0,0 +1,6 @@
real 0m15.167s
user 0m17.139s
sys 0m1.367s

View File

@ -8,23 +8,21 @@
shopt -s extglob
pkgbase=python
pkgname=(python python-tests)
pkgver=3.12.2
pkgver=3.12.3
pkgrel=01
_pybasever=${pkgver%.*}
pkgdesc="The Python programming language - ipv6 disabled "
url="https://www.python.org/"
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'tzdata')
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'mpdecimal' 'openssl' 'zlib' 'tzdata')
makedepends=('tk' 'sqlite' 'bluez-libs' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
#options=('debug') ## uncomment this to have the debug pkg produced
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
python-expat-2.6.patch::https://github.com/python/cpython/pull/115289.patch
EXTERNALLY-MANAGED)
# https://github.com/python/cpython/commit/178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch)
prepare() {
cd Python-${pkgver}
patch -Np1 -i ../python-expat-2.6.patch
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
@ -89,7 +87,6 @@ package_python() {
'python-pip'
'python-pipx: for installing Python software not packaged on Arch Linux'
'sqlite: for a default database integration'
'mpdecimal: for decimal'
'xz: for lzma'
'tk: for tkinter')
provides=('python3' 'python-externally-managed')
@ -149,13 +146,10 @@ validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python re
'A035C8C19219BA821ECEA86B64E628F8D684696D' # Pablo Galindo Salgado <pablogsal@gmail.com>
'7169605F62C751356D054A26A821E680E5FA6305') # Thomas Wouters <thomas@xs4all.nl>
sha512sums=('2ccfae7b9f95d8e15ea85d3f66eea5f6a8fdcaffc0b405095fecb33efc0df50b831c1215542910ced948b54e6de1f7242b0b8b9afc5f89079451c552430d7d9f'
'SKIP'
'0868854a6b2647706a3c98443fbacf275fe31f85c7cb78301db46e395c17cac9a02512cf0db40b981eae9ffe9d9d5fc8e0a83635adb0e2545ca134d9830cd1e0'
'62a6fbfbaeaa3ba7c54e109d9c3b7f67e73bb21986da4c1fcc5d28cca83d71e0fcae28e1fc70ee8ddce7dea8cd0b64e18d1031dae3a2eae5eaa379c53efd53a0')
sha256sums=(be28112dac813d2053545c14bf13a16401a21877f1a69eb6ea5d84c4a0f3d870 # Python-3.12.2.tar.xz
3d80381995eabd74a9e100de6e8263227f22b408c15300c2a619fc8ebcfc115b # Python-3.12.2.tar.xz.asc
e2f9a36df0442f34b838db4f261c8be9daf18f81679f800282bf5a5f0d8a9eb7 # python-expat-2.6.patch
sha256sums=(56bfef1fdfc1221ce6720e43a661e3eb41785dd914ce99698d8c7896af4bdaa1 # Python-3.12.3.tar.xz
45cd37115adfab87341018fc7c8835da23d06925330a4c5f2dcf4876c484acaa # Python-3.12.3.tar.xz.asc
c07b94bf7dcbe7be5ba0cee29971a005a5be65002cbfb59c5a8f661fa92aa82f) # EXTERNALLY-MANAGED
## b91860d994044659370c22709c71656e8e9609b7679b0f9bfbe072aa007b659e python-3.12.3-01-x86_64.pkg.tar.lz
## 7cff905a68337dcc2712f2300b3dffcc56c89b01c187b0a12b9d9c523139919e python-tests-3.12.3-01-x86_64.pkg.tar.lz

View File

@ -9,21 +9,19 @@ shopt -s extglob
pkgbase=python
pkgname=(python python-tests)
pkgver=3.12.2
pkgver=3.12.3
pkgrel=1
_pybasever=${pkgver%.*}
pkgdesc="The Python programming language"
arch=('x86_64')
license=('PSF-2.0')
url="https://www.python.org/"
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'tzdata')
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'tzdata' 'mpdecimal')
makedepends=('tk' 'sqlite' 'bluez-libs' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
python-expat-2.6.patch::https://github.com/python/cpython/pull/115289.patch
EXTERNALLY-MANAGED)
sha512sums=('2ccfae7b9f95d8e15ea85d3f66eea5f6a8fdcaffc0b405095fecb33efc0df50b831c1215542910ced948b54e6de1f7242b0b8b9afc5f89079451c552430d7d9f'
sha512sums=('4a2213b108e7f1f1525baa8348e68b2a2336d925e60d0a59f0225fc470768a2c8031edafc0b8243f94dbae18afda335ee5adf2785328c2218fd64cbb439f13a4'
'SKIP'
'0868854a6b2647706a3c98443fbacf275fe31f85c7cb78301db46e395c17cac9a02512cf0db40b981eae9ffe9d9d5fc8e0a83635adb0e2545ca134d9830cd1e0'
'62a6fbfbaeaa3ba7c54e109d9c3b7f67e73bb21986da4c1fcc5d28cca83d71e0fcae28e1fc70ee8ddce7dea8cd0b64e18d1031dae3a2eae5eaa379c53efd53a0')
validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python release signing key) <nad@python.org>
'E3FF2839C048B25C084DEBE9B26995E310250568' # Łukasz Langa (GPG langa.pl) <lukasz@langa.pl>
@ -32,7 +30,6 @@ validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python re
prepare() {
cd Python-${pkgver}
patch -Np1 -i ../python-expat-2.6.patch
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
@ -96,7 +93,6 @@ package_python() {
'python-pip: for installing Python packages using tooling that is usually bundled with Python'
'python-pipx: for installing Python software not packaged on Arch Linux'
'sqlite: for a default database integration'
'mpdecimal: for decimal'
'xz: for lzma'
'tk: for tkinter')
provides=('python3' 'python-externally-managed')

View File

@ -0,0 +1,24 @@
----------------------------------------------------------------------
Ran 187 tests in 0.274s
OK (skipped=26)
== Tests result: FAILURE ==
16 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace
test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full
test.test_gdb.test_misc test.test_gdb.test_pretty_print
test_devpoll test_kqueue test_launcher test_msilib test_startfile
test_winconsoleio test_winreg test_winsound test_wmi
1 test skipped (resource denied):
test_zipfile64
1 test failed:
test_signal
465 tests OK.
Total duration: 23 min 4 sec