upg coreutils jobo-setup

This commit is contained in:
joborun linux 2024-08-31 02:53:08 +03:00
parent 25a5dd686a
commit 8a41513cac
8 changed files with 153 additions and 46 deletions

View file

@ -7,28 +7,32 @@
pkgname=coreutils
pkgver=9.5
pkgrel=01
pkgrel=02
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})
makedepends=(git gperf wget gettext) # python enable for upcoming 9.6
#source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
source=(git+https://git.savannah.gnu.org/git/coreutils.git?signed#tag=v${pkgver}
gcc14-gnulib-lto.patch)
prepare() {
cd $pkgname-$pkgver
cd $pkgname
./bootstrap
# apply patch from the source array (should be a pacman feature)
# local src
# for src in "${source[@]}"; do
# src="${src%%::*}"
# src="${src##*/}"
# [[ $src = *.patch ]] || continue
# echo "Applying patch $src..."
# patch -Np1 < "../$src"
# done
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
echo "Applying patch $src..."
patch -Np1 < "../$src"
done
}
build() {
cd $pkgname-$pkgver
cd $pkgname
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
@ -38,12 +42,12 @@ build() {
}
check() {
cd $pkgname-$pkgver
cd $pkgname
make check
}
package() {
cd $pkgname-$pkgver
cd $pkgname
make DESTDIR="$pkgdir" install
}
@ -55,6 +59,15 @@ license=('GPL-3.0-or-later' 'GFDL-1.3-or-later')
validpgpkeys=('6C37DC12121A5006BC1DB804DF6FD971306037D9') # Pádraig Brady
sha256sums=(cd328edeac92f6a665de9f323c93b712af1858bc2e0d88f3f7100469470a1b8a # coreutils-9.5.tar.xz
b2843cd7c5972c7bc4d01fc34eb82e5a3ec84a199363288e3999304e3dddc805) # coreutils-9.5.tar.xz.sig
b2sums=('7b48eaa372037f1162335dacbc6460a1455e7b6c73badefd631b1a47cfab6072db938a25ce9bdba68c2b3ac13e9c64df06fef6f135d2979199cb09f41f83454a'
'1264b815101ebf98ce846ac96a649cc7964624ae0c140f23d41f2d2e8292f67b0c0cad3d66f6329a2d21c530b1cfbff65ef378abd8e49f3a1ac972a1cf88366d')
sha256sums=(6618852cff7443b27c2341e00e4f5ce317080bc33957969276a80fb044005484 # coreutils 9.5
dd4549d0c8a0c59a47b74d7238a715348eb44f194cfd9db5627e4bdf9cc200ae) # gcc14-gnulib-lto.patch
# Pkg from gnu-hell which refuses to respond and verify source, if you can get it to clone to begine with
# then a few tests fail and has to rerun ..... hours and hours ...
## f1c15997f9fb00057683a644e967fcc13e0ea8e0f690a78b5478541155319360 coreutils-9.5-02-x86_64.pkg.tar.lz

View file

@ -6,19 +6,41 @@
pkgname=coreutils
pkgver=9.5
pkgrel=1
pkgrel=2
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')
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})
validpgpkeys=('6C37DC12121A5006BC1DB804DF6FD971306037D9') # Pádraig Brady
sha256sums=('cd328edeac92f6a665de9f323c93b712af1858bc2e0d88f3f7100469470a1b8a'
'SKIP')
depends=(
acl
attr
glibc
gmp
libcap
openssl
)
makedepends=(
git
gperf
# python enable for upcoming 9.6
wget
)
source=(
git+https://git.savannah.gnu.org/git/coreutils.git?signed#tag=v${pkgver}
gcc14-gnulib-lto.patch
)
validpgpkeys=(
6C37DC12121A5006BC1DB804DF6FD971306037D9 # Pádraig Brady
)
b2sums=('7b48eaa372037f1162335dacbc6460a1455e7b6c73badefd631b1a47cfab6072db938a25ce9bdba68c2b3ac13e9c64df06fef6f135d2979199cb09f41f83454a'
'1264b815101ebf98ce846ac96a649cc7964624ae0c140f23d41f2d2e8292f67b0c0cad3d66f6329a2d21c530b1cfbff65ef378abd8e49f3a1ac972a1cf88366d')
prepare() {
cd $pkgname-$pkgver
cd "${pkgname}"
./bootstrap
# apply patch from the source array (should be a pacman feature)
local src
for src in "${source[@]}"; do
@ -31,23 +53,22 @@ prepare() {
}
build() {
cd $pkgname-$pkgver
cd "${pkgname}"
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--with-openssl \
--enable-no-install-program=groups,hostname,kill,uptime
--prefix=/usr \
--libexecdir=/usr/lib \
--with-openssl \
--enable-no-install-program=groups,hostname,kill,uptime
make
}
check() {
cd $pkgname-$pkgver
cd "${pkgname}"
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
cd "${pkgname}"
make DESTDIR="${pkgdir}" install
}
# vim:set ts=2 sw=2 et:

View file

@ -1 +1 @@
rm -rf {pkg,src,*xz*}
rm -rf {pkg,src,*xz*,coreutils,gnulib}

View file

@ -1,4 +1,13 @@
git
automake
autoconf
wget
gperf
gettext
bison

View file

@ -0,0 +1,65 @@
From 4602765093f04e597f87d78cf29d21eea03b6fa4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com>
Date: Wed, 28 Aug 2024 12:10:43 +0100
Subject: avoid GCC -Wmaybe-uninitialized false positives with LTO
Avoids false warnings with GCC 14.2.1 with -flto
* lib/canonicalize.c: Initialize END_IDX.
* lib/getndelim2.c: Initialize C.
---
ChangeLog | 8 ++++++++
lib/canonicalize.c | 9 ++++++++-
lib/getndelim2.c | 8 +++++---
3 files changed, 21 insertions(+), 4 deletions(-)
--- a/gnulib/lib/canonicalize.c
+++ b/gnulib/lib/canonicalize.c
@@ -34,6 +34,13 @@
#include "hash-triple.h"
#include "xalloc.h"
+/* Suppress bogus GCC -Wmaybe-uninitialized warnings. */
+#if defined GCC_LINT || defined lint
+# define IF_LINT(Code) Code
+#else
+# define IF_LINT(Code) /* empty */
+#endif
+
#ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT
# define DOUBLE_SLASH_IS_DISTINCT_ROOT false
#endif
@@ -367,7 +374,7 @@ canonicalize_filename_mode_stk (const char *name, canonicalize_mode_t can_mode,
buf[n] = '\0';
char *extra_buf = bufs->extra.data;
- idx_t end_idx;
+ idx_t end_idx IF_LINT (= 0);
if (end_in_extra_buffer)
end_idx = end - extra_buf;
size_t len = strlen (end);
diff --git a/lib/getndelim2.c b/lib/getndelim2.c
index 89989ae..db61e2a 100644
--- a/gnulib/lib/getndelim2.c
+++ b/gnulib/lib/getndelim2.c
@@ -47,8 +47,10 @@
#include "memchr2.h"
/* Avoid false GCC warning "'c' may be used uninitialized". */
-#if __GNUC__ + (__GNUC_MINOR__ >= 7) > 4
-# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#if defined GCC_LINT || defined lint
+# define IF_LINT(Code) Code
+#else
+# define IF_LINT(Code) /* empty */
#endif
/* The maximum value that getndelim2 can return without suffering from
@@ -102,7 +104,7 @@ getndelim2 {
/* Here always ptr + size == read_pos + nbytes_avail.
Also nbytes_avail > 0 || size < nmax. */
- int c;
+ int c IF_LINT (= EOF);
const char *buffer;
size_t buffer_len;

View file

@ -9,7 +9,7 @@
pkgname=jobo-setup
pkgdesc='Post Install joborun setup script - The script will not alter your system, you will!'
pkgver=0.6
pkgrel=03
pkgrel=04
groups=(base)
source=( 'README.txt'
'66.setup'
@ -61,11 +61,12 @@ sha256sums=(5c57b7e372ce103afa24acfd4479a85c80c6980e06d580d5bee6c6b3f24174ab #
33de4e4329d0e4c8f2a278e2bd726db5ee5fff59e943fb07004278d4a0d1d20a # joborun-setup
a3994c515f0129ed7a6d88e9de01e7fc64dacbc5f7ca2e29e2377f16461a1bee # removeX
e078695327e40790c675d04ed9d8144840ee64a90b8d9d782a7d843109eb9d52 # rm.66
50be5dceaa457ab523ffac933852f5f2e4af9ab8589961e46b2309568c55a0bf # X.list
ebe9b3a2b690aab6633e7cc20a3042e0104b63a1b802c2e0d3505298ea93e145 # X.list
e3ebae67ce2be67beef600532e816078a9ff8c6fc777ca77c6ab728feb08aa9a # install.labwc
088763058d11eaf9c46ab4819ba6ce7cf2585c3190c7a076981ce057b5ebb2c2 # remove.labwc
4835a7bba02c405672aeac6aeed860518bcad9c59f88eea91b9dec7cd6e71b0f # labwc.list
98a622ca31bfb0eab82ef0e8ffaabe9052534bcd70c6be080ee3934bfa1e5fa1 # labwc.list
981716977ddb54d9b5c7e965a555336250bac40dc9816698007ac9407cb49e78) # add-gfx
## d00777b151ab7fa34ccd0ac073fd3f8836c6cfb17a88e2b5fe3918830620ec48 jobo-setup-0.6-03-x86_64.pkg.tar.lz
## 575e923dd5124a3723ad087014dba546012de5a386096b727337db5990244f17 jobo-setup-0.6-04-x86_64.pkg.tar.lz

View file

@ -12,7 +12,7 @@ xf86-video-nouveau
mesa
libtool
arandr
conky11
conky
lxterminal
pcmanfm
elinks
@ -32,5 +32,5 @@ lxappearance
package-query
at-spi2-core
pacman-contrib
startup-notification
volumeicon
alsa-utils
alsa-tools

View file

@ -1,13 +1,10 @@
labwc-git
seatd
swaybg
wapanel
sfwbar
wlr-randr
conky11
conky
foot
lxterminal
sakura
pcmanfm
swayidle
elinks
@ -21,4 +18,5 @@ gmrun
package-query
pacman-contrib
startup-notification
volumeicon
swaylock-effects
geany-gtk2