summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2021-09-26 12:55:00 +0200
committerJuergen Daubert <jue@jue.li>2021-09-26 12:57:09 +0200
commitd4df2838719b2ae030ba96a2153ee35d4c80c5aa (patch)
treed6b8daa185022c292f5fc06e355c08acb5596ede /coreutils
parent81f3b344d0b21b2084a81f208d8fa946c78a9ee0 (diff)
downloadcore-d4df2838719b2ae030ba96a2153ee35d4c80c5aa.tar.gz
core-d4df2838719b2ae030ba96a2153ee35d4c80c5aa.tar.xz
coreutils: update to 9.0
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/.signature7
-rw-r--r--coreutils/Pkgfile45
-rw-r--r--coreutils/chmod.c.patch25
3 files changed, 54 insertions, 23 deletions
diff --git a/coreutils/.signature b/coreutils/.signature
index b1994079..d850fe3a 100644
--- a/coreutils/.signature
+++ b/coreutils/.signature
@@ -1,6 +1,7 @@
untrusted comment: verify with /etc/ports/core.pub
-RWRJc1FUaeVeqkoO5iThfKlgTvzKBscIo7iqDnEusWaOiKMpTtImKjTja+9L3nCYz9ukcnpR56YKQX9dpMZhasZJTe1IeXhuNQY=
-SHA256 (Pkgfile) = 7ab3227a14025a70a5a24e61f426b5368e3b2841d2adf781ba8448788cc559e8
+RWRJc1FUaeVeqos33FXS192P29ki3nqRetEBqbwtxszjHRjavXGyiUD5sXhMRBrXQN7tY/KToEzMt61c5M6qfWu3oRaT3WXfBw8=
+SHA256 (Pkgfile) = da6676ddf3de9a8ae63422facac997634c11fd21cd10d5a07469e6b37809fe81
SHA256 (.footprint) = 45c2d1805ada036f538df41d4f15b3148670d9247839effbc39276b9d0c37819
-SHA256 (coreutils-8.32.tar.xz) = 4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa
+SHA256 (coreutils-9.0.tar.xz) = ce30acdf4a41bc5bb30dd955e9eaa75fa216b4e3deb08889ed32433c7b3b97ce
SHA256 (coreutils-uname.patch) = 164ad5976c67dd49f1d28d3124a6cb5395d52a23d9a3112a10a795af6069d97d
+SHA256 (chmod.c.patch) = 3c5084f36a543902ee57c477318c0cec97d845c4784b8314c55e00ac86a29091
diff --git a/coreutils/Pkgfile b/coreutils/Pkgfile
index 812a2381..dc7c9bea 100644
--- a/coreutils/Pkgfile
+++ b/coreutils/Pkgfile
@@ -1,30 +1,35 @@
# Description: A collection of core GNU utilities
-# URL: http://www.gnu.org/software/coreutils/
-# Maintainer: CRUX System Team, core-ports at crux dot nu
-# Depends on: libgmp acl libcap
+# URL: http://www.gnu.org/software/coreutils/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+# Depends on: libgmp acl libcap
name=coreutils
-version=8.32
+version=9.0
release=1
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz
- coreutils-uname.patch)
+ coreutils-uname.patch
+ chmod.c.patch)
build() {
- cd $name-$version
+ cd $name-$version
- patch -p1 -i $SRC/coreutils-uname.patch
- export FORCE_UNSAFE_CONFIGURE=1
-
- ./configure --prefix=/usr \
- --libexecdir=/usr/lib \
- --disable-nls \
- --disable-assert \
- --enable-no-install-program=uptime,kill,chcon,runcon,groups
- make
- make DESTDIR=$PKG install
+ # https://bugs.gnu.org/50784
+ patch -p1 -i $SRC/chmod.c.patch
- install -d $PKG/bin
- mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
- mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
- rm -r $PKG/usr/share/info
+ patch -p1 -i $SRC/coreutils-uname.patch
+ export FORCE_UNSAFE_CONFIGURE=1
+
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --disable-nls \
+ --disable-assert \
+ --enable-no-install-program=uptime,kill,chcon,runcon,groups
+ make
+ make DESTDIR=$PKG install
+
+ install -d $PKG/bin
+ mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
+ mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
+ rm -r $PKG/usr/share/info
}
diff --git a/coreutils/chmod.c.patch b/coreutils/chmod.c.patch
new file mode 100644
index 00000000..4e9ed631
--- /dev/null
+++ b/coreutils/chmod.c.patch
@@ -0,0 +1,25 @@
+X-Git-Url: https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blobdiff_plain;f=src%2Fchmod.c;h=57ac47f33a8c8643f8b22f29d81b8303db06b93b;hp=37b04f5006bbcd049b2ae1be1b2e0f73730e2dd5;hb=e8b56ebd536e82b15542a00c888109471936bfda;hpb=6f38c4b27921a57a2bb5d999549411c2abe2fae6
+
+diff --git a/src/chmod.c b/src/chmod.c
+index 37b04f5..57ac47f 100644
+--- a/src/chmod.c
++++ b/src/chmod.c
+@@ -44,8 +44,8 @@ struct change_status
+ enum
+ {
+ CH_NO_STAT,
+- CH_NOT_APPLIED,
+ CH_FAILED,
++ CH_NOT_APPLIED,
+ CH_NO_CHANGE_REQUESTED,
+ CH_SUCCEEDED
+ }
+@@ -322,7 +322,7 @@ process_file (FTS *fts, FTSENT *ent)
+ if ( ! recurse)
+ fts_set (fts, ent, FTS_SKIP);
+
+- return CH_NO_CHANGE_REQUESTED <= ch.status;
++ return CH_NOT_APPLIED <= ch.status;
+ }
+
+ /* Recursively change the modes of the specified FILES (the last entry

Generated by cgit