portage-overlay

personal portage ebuild repository
git clone anongit@rnpnr.xyz:portage-overlay.git
Log | Files | Refs | Feed | README

gnupg-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch (1048B)


      1 From e3bdb7d17264b8d5bd9abab97c96d9c4a50e4f61 Mon Sep 17 00:00:00 2001
      2 From: Kristian Fiskerstrand <kf@sumptuouscapital.com>
      3 Date: Mon, 3 Apr 2017 23:44:56 +0300
      4 Subject: [PATCH] gpgscm: Use shorter socket path lengts to improve test
      5  reliability
      6 
      7 --
      8 As socket lengths are normally restricted to 108 characters
      9 (UNIX_PATH_MAX variable in /usr/include/linux/un.h), using 42 characters
     10 by default easily results in errors.
     11 ---
     12  tests/gpgscm/tests.scm | 4 ++--
     13  1 file changed, 2 insertions(+), 2 deletions(-)
     14 
     15 diff --git a/tests/gpgscm/tests.scm b/tests/gpgscm/tests.scm
     16 index 592b36f..f54a387 100644
     17 --- a/tests/gpgscm/tests.scm
     18 +++ b/tests/gpgscm/tests.scm
     19 @@ -273,9 +273,9 @@
     20    (canonical-path (_mkdtemp (if (null? components)
     21  				(path-join
     22  				 (get-temp-path)
     23 -				 (string-append "gpgscm-" (get-isotime) "-"
     24 +				 (string-append "gscm"
     25  						(basename-suffix *scriptname* ".scm")
     26 -						"-XXXXXX"))
     27 +						"XXXXXX"))
     28  				(apply path-join components)))))
     29  
     30  ;; Make a temporary directory and remove it at interpreter shutdown.
     31 -- 
     32 2.10.2
     33