pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/coreutils coreutils: Backport SunOS "ln <x> ....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d5abb612910e
branches:  trunk
changeset: 439645:d5abb612910e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Sep 23 20:12:50 2020 +0000

description:
coreutils: Backport SunOS "ln <x> ." fix.

Full update to latest release can come after the freeze.  Bump
PKGREVISION.

diffstat:

 sysutils/coreutils/Makefile               |   4 ++--
 sysutils/coreutils/distinfo               |   3 ++-
 sysutils/coreutils/patches/patch-src_ln.c |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 6ea424c6e993 -r d5abb612910e sysutils/coreutils/Makefile
--- a/sysutils/coreutils/Makefile       Wed Sep 23 19:03:20 2020 +0000
+++ b/sysutils/coreutils/Makefile       Wed Sep 23 20:12:50 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.77 2020/08/31 18:11:26 wiz Exp $
+# $NetBSD: Makefile,v 1.78 2020/09/23 20:12:50 jperkin Exp $
 
-PKGREVISION= 1
+PKGREVISION= 2
 .include "../../sysutils/coreutils/Makefile.common"
 
 CONFIGURE_ARGS+=       --without-gmp
diff -r 6ea424c6e993 -r d5abb612910e sysutils/coreutils/distinfo
--- a/sysutils/coreutils/distinfo       Wed Sep 23 19:03:20 2020 +0000
+++ b/sysutils/coreutils/distinfo       Wed Sep 23 20:12:50 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.36 2019/12/15 11:49:28 mef Exp $
+$NetBSD: distinfo,v 1.37 2020/09/23 20:12:50 jperkin Exp $
 
 SHA1 (coreutils-8.31.tar.xz) = c62b5034a5b65daca33c50a60df87ebc44159faf
 RMD160 (coreutils-8.31.tar.xz) = f672a6e3212d906555ba262edefb785c48badc70
@@ -7,3 +7,4 @@
 SHA1 (patch-Makefile.in) = e012814dded9691c2269661e64fc02f8f12d2039
 SHA1 (patch-lib_fflush.c) = 856ad3e8d301d65ca3db23347a88651e5c7a75d7
 SHA1 (patch-lib_string.in.h) = 4fcd9c511eed2bb476db0d7bb8cceba03c1da180
+SHA1 (patch-src_ln.c) = 5f7fd7567de9fe7ec2d212098debde3d1aa90333
diff -r 6ea424c6e993 -r d5abb612910e sysutils/coreutils/patches/patch-src_ln.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/coreutils/patches/patch-src_ln.c Wed Sep 23 20:12:50 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_ln.c,v 1.1 2020/09/23 20:12:50 jperkin Exp $
+
+Backport https://github.com/coreutils/coreutils/commit/3e0dff3925b5e521cae468087950e85b60002d1c
+
+--- src/ln.c.orig      2019-01-05 10:36:22.000000000 +0000
++++ src/ln.c
+@@ -603,7 +603,7 @@ main (int argc, char **argv)
+     {
+       if (n_files == 2 && !target_directory)
+         link_errno = atomic_link (file[0], AT_FDCWD, file[1]);
+-      if (link_errno < 0 || link_errno == EEXIST || link_errno == ENOTDIR)
++      if (link_errno < 0 || link_errno == EEXIST || link_errno == ENOTDIR || link_errno == EINVAL)
+         {
+           char const *d
+             = target_directory ? target_directory : file[n_files - 1];



Home | Main Index | Thread Index | Old Index