upg coreutils libpcap
This commit is contained in:
parent
e104eb7800
commit
7325aa422e
7 changed files with 57 additions and 21 deletions
|
@ -7,15 +7,12 @@
|
|||
|
||||
pkgname=coreutils
|
||||
pkgver=9.4
|
||||
pkgrel=02
|
||||
pkgrel=03
|
||||
pkgdesc='The basic file, shell and text manipulation utilities of the GNU operating system'
|
||||
url='https://www.gnu.org/software/coreutils/'
|
||||
depends=('glibc' 'acl' 'attr' 'gmp' 'libcap' 'openssl')
|
||||
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
|
||||
# '01-FS#77969.patch::https://git.savannah.gnu.org/cgit/coreutils.git/patch/?id=76f2fb627118a26c25003dbd98c22c153b7ee1d2'
|
||||
# 'copy-fix-reflink-auto-fallback.patch'
|
||||
# 'gnulib-backupfile-62607.patch'
|
||||
# 'coreutils-backup-62607.patch')
|
||||
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
|
||||
"https://github.com/coreutils/coreutils/commit/c4c5ed8f4e9cd55a12966d4f520e3a13101637d9.patch")
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
@ -60,7 +57,9 @@ license=('GPL-3.0-or-later' 'GFDL-1.3-or-later')
|
|||
validpgpkeys=('6C37DC12121A5006BC1DB804DF6FD971306037D9') # Pádraig Brady
|
||||
|
||||
sha256sums=(ea613a4cf44612326e917201bbbcdfbd301de21ffc3b59b6e5c07e040b275e52 # coreutils-9.4.tar.xz
|
||||
290c9baaf94bdad2f126cb9e7a1a98214afc4e3cbdf6d362b0acb4ffc56f72c7) # coreutils-9.4.tar.xz.sig
|
||||
290c9baaf94bdad2f126cb9e7a1a98214afc4e3cbdf6d362b0acb4ffc56f72c7 # coreutils-9.4.tar.xz.sig
|
||||
92098f2522d93d46a8ddb91f28ba414b2835d32ce87f60a23a7b852228ea89fe) # xxxxx.patch
|
||||
|
||||
## 92a9bff1f2a2f0a91b36295dde220c35fde7c7bf5d020a9532740d4930d82b4a coreutils-9.4-02-x86_64.pkg.tar.lz
|
||||
|
||||
## 4d6e296177a02ed6f81387994adc8ac6635a5750043b1541597dd00ee1f5ce3c coreutils-9.4-03-x86_64.pkg.tar.lz
|
||||
|
||||
|
|
|
@ -6,16 +6,18 @@
|
|||
|
||||
pkgname=coreutils
|
||||
pkgver=9.4
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc='The basic file, shell and text manipulation utilities of the GNU operating system'
|
||||
arch=('x86_64')
|
||||
license=('GPL-3.0-or-later' 'GFDL-1.3-or-later')
|
||||
url='https://www.gnu.org/software/coreutils/'
|
||||
depends=('glibc' 'acl' 'attr' 'gmp' 'libcap' 'openssl')
|
||||
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
|
||||
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
|
||||
"https://github.com/coreutils/coreutils/commit/c4c5ed8f4e9cd55a12966d4f520e3a13101637d9.patch")
|
||||
validpgpkeys=('6C37DC12121A5006BC1DB804DF6FD971306037D9') # Pádraig Brady
|
||||
sha256sums=('ea613a4cf44612326e917201bbbcdfbd301de21ffc3b59b6e5c07e040b275e52'
|
||||
'SKIP')
|
||||
'SKIP'
|
||||
'92098f2522d93d46a8ddb91f28ba414b2835d32ce87f60a23a7b852228ea89fe')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
|
31
coreutils/c4c5ed8f4e9cd55a12966d4f520e3a13101637d9.patch
Normal file
31
coreutils/c4c5ed8f4e9cd55a12966d4f520e3a13101637d9.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
From c4c5ed8f4e9cd55a12966d4f520e3a13101637d9 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Eggert <eggert@cs.ucla.edu>
|
||||
Date: Tue, 16 Jan 2024 13:48:32 -0800
|
||||
Subject: [PATCH] split: do not shrink hold buffer
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
* src/split.c (line_bytes_split): Do not shrink hold buffer.
|
||||
If it’s large for this batch it’s likely to be large for the next
|
||||
batch, and for ‘split’ it’s not worth the complexity/CPU hassle to
|
||||
shrink it. Do not assume hold_size can be bufsize.
|
||||
---
|
||||
src/split.c | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/src/split.c b/src/split.c
|
||||
index 64020c859..037960a59 100644
|
||||
--- a/src/split.c
|
||||
+++ b/src/split.c
|
||||
@@ -809,10 +809,7 @@ line_bytes_split (intmax_t n_bytes, char *buf, idx_t bufsize)
|
||||
{
|
||||
cwrite (n_out == 0, hold, n_hold);
|
||||
n_out += n_hold;
|
||||
- if (n_hold > bufsize)
|
||||
- hold = xirealloc (hold, bufsize);
|
||||
n_hold = 0;
|
||||
- hold_size = bufsize;
|
||||
}
|
||||
|
||||
/* Output to eol if present. */
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
real 2m22.531s
|
||||
user 4m13.144s
|
||||
sys 0m41.350s
|
||||
|
||||
real 2m16.621s
|
||||
user 1m48.366s
|
||||
sys 0m19.795s
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
pkgname=libpcap
|
||||
pkgver=1.10.4
|
||||
pkgrel=01
|
||||
pkgrel=02
|
||||
pkgdesc='A system-independent interface for user-level packet capture - without ipv6 and dbus need'
|
||||
url="https://www.tcpdump.org/"
|
||||
depends=(glibc libnl sh)
|
||||
|
@ -33,7 +33,7 @@ build() {
|
|||
}
|
||||
|
||||
package() {
|
||||
depends+=('libdbus-1.so')
|
||||
# depends+=('libdbus-1.so')
|
||||
cd $pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
|
@ -51,5 +51,5 @@ validpgpkeys=('1F166A5742ABB9E0249A8D30E089DEF1D9C15D0D') # The Tcpdump Group
|
|||
sha256sums=(ed19a0383fad72e3ad435fd239d7cd80d64916b87269550159d20e47160ebe5f # libpcap-1.10.4.tar.gz
|
||||
d3f19087169bc823fad9a8a184372f8977d81b23edcdc6bc9dc9d874c99cab01) # libpcap-1.10.4.tar.gz.sig
|
||||
|
||||
## d225ded625d06fd4214823102896f6e18c2871a53260ec4318608c21d6da56cc libpcap-1.10.4-01-x86_64.pkg.tar.lz
|
||||
## 5d4ce0490b29e1c6e4bff172b9ad0c431685c5d5b94b6902e67834f0521abf12 libpcap-1.10.4-02-x86_64.pkg.tar.lz
|
||||
|
||||
|
|
|
@ -3,4 +3,3 @@ automake
|
|||
autoconf
|
||||
bison
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
real 0m10.844s
|
||||
user 0m14.978s
|
||||
sys 0m1.543s
|
||||
|
||||
|
||||
real 0m16.986s
|
||||
user 0m14.132s
|
||||
sys 0m2.952s
|
||||
|
||||
|
|
Loading…
Reference in a new issue