Skip to content

Commit ecad7a7

Browse files
committed
Workaround for Emacs 27.2 MS-Windows precompiled binaries issue
Addresses issue with GnuTLS 3.6.12 expired issuer certificates. Fixes #3081. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51038 and https://gitlab.com/gnutls/gnutls/-/issues/1008.
1 parent 823d4d0 commit ecad7a7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.circleci/config.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ jobs:
6565
steps:
6666
- run:
6767
name: Install Emacs latest
68-
command: choco install emacs
68+
command: |
69+
choco install emacs
70+
# temporary workaround for
71+
# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51038
72+
# can be removed in versions newer than 27.2
73+
emacs --batch --eval '(progn (require ''nsm) (make-directory (file-name-directory (directory-file-name nsm-settings-file)) t) (when (file-exists-p nsm-settings-file) (nsm-read-settings)) (setq nsm-permanent-host-settings (append nsm-permanent-host-settings ''( (:id \"sha1:ccfd2cc2a08c89a9b10969be8c1e926954d53e28\" :fingerprints (\"sha1:0c:bd:68:cb:c0:01:e2:ad:93:0d:b9:3b:77:09:2e:47:9c:de:6b:28\") :host \"stable.melpa.org:443\" :conditions (:expired :invalid :verify-cert)) (:id \"sha1:85b31c268009209a8d3c5387033b219264f7e62b\" :fingerprints (\"sha1:0c:bd:68:cb:c0:01:e2:ad:93:0d:b9:3b:77:09:2e:47:9c:de:6b:28\") :host \"melpa.org:443\" :conditions (:expired :invalid :verify-cert)) (:id \"sha1:6d4eb958390599243ba9f5035cb671fa8dd6a93a\" :fingerprints (\"sha1:56:41:11:79:62:b9:85:66:f8:9e:e4:3b:39:2d:5f:a6:a5:c7:e9:2d\") :host \"elpa.gnu.org:443\" :conditions (:expired :invalid :verify-cert))) )) (nsm-write-settings))'
6974
- setup-windows
7075
- test
7176

@@ -81,7 +86,12 @@ jobs:
8186
steps:
8287
- run:
8388
name: Install Emacs latest
84-
command: choco install emacs
89+
command: |
90+
choco install emacs
91+
# temporary workaround for
92+
# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51038
93+
# can be removed in versions newer than 27.2
94+
emacs --batch --eval '(progn (require ''nsm) (make-directory (file-name-directory (directory-file-name nsm-settings-file)) t) (when (file-exists-p nsm-settings-file) (nsm-read-settings)) (setq nsm-permanent-host-settings (append nsm-permanent-host-settings ''( (:id \"sha1:ccfd2cc2a08c89a9b10969be8c1e926954d53e28\" :fingerprints (\"sha1:0c:bd:68:cb:c0:01:e2:ad:93:0d:b9:3b:77:09:2e:47:9c:de:6b:28\") :host \"stable.melpa.org:443\" :conditions (:expired :invalid :verify-cert)) (:id \"sha1:85b31c268009209a8d3c5387033b219264f7e62b\" :fingerprints (\"sha1:0c:bd:68:cb:c0:01:e2:ad:93:0d:b9:3b:77:09:2e:47:9c:de:6b:28\") :host \"melpa.org:443\" :conditions (:expired :invalid :verify-cert)) (:id \"sha1:6d4eb958390599243ba9f5035cb671fa8dd6a93a\" :fingerprints (\"sha1:56:41:11:79:62:b9:85:66:f8:9e:e4:3b:39:2d:5f:a6:a5:c7:e9:2d\") :host \"elpa.gnu.org:443\" :conditions (:expired :invalid :verify-cert))) )) (nsm-write-settings))'
8595
- setup-windows
8696
- lint
8797

0 commit comments

Comments
 (0)