Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs 26 builds fail when build cache exists #22

Open
mineo opened this issue Dec 4, 2018 · 3 comments
Open

Emacs 26 builds fail when build cache exists #22

mineo opened this issue Dec 4, 2018 · 3 comments

Comments

@mineo
Copy link
Contributor

mineo commented Dec 4, 2018

I've created the following repo to show this: https://github.com/mineo/travis-emacstest, the travis page is at https://travis-ci.com/mineo/travis-emacstest. If a build against Emacs 26 with an existing cache is started, it always fails, like https://travis-ci.com/mineo/travis-emacstest/builds/93545069:

 cask install
Importing package-keyring.gpg...
Importing package-keyring.gpg...done
Contacting host: melpa.org:443
Opening TLS connection to ‘melpa.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 melpa.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 melpa.org’...failed
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 melpa.org --protocols ssl3’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 melpa.org --protocols ssl3’...failed
Opening TLS connection to ‘melpa.org’...failed
Failed to download ‘melpa’ archive.
Contacting host: elpa.gnu.org:443
Opening TLS connection to ‘elpa.gnu.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 elpa.gnu.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 elpa.gnu.org’...failed
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 elpa.gnu.org --protocols ssl3’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 elpa.gnu.org --protocols ssl3’...failed
Opening TLS connection to ‘elpa.gnu.org’...failed
Package refresh done
Failed to download ‘gnu’ archive.
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Package ‘s-’ is unavailable
The command "cask install" failed and exited with 255 during .

Clearing the cache, like from https://travis-ci.com/mineo/travis-emacstest/builds/93543125 to https://travis-ci.com/mineo/travis-emacstest/builds/93543935 fixes this.

I suspect the problem is that

install_emacs: configure_emacs
only adds configure_emacs as a dependency of install_emacs if the cache is empty, but that's incorrect, since this also skips install_emacs's dependency on install_gnutls, which has side effects outside of the cache directory.

@cowboyd
Copy link

cowboyd commented May 28, 2019

@mineo Have you found a workaround?

cowboyd added a commit to thefrontside/frontmacs that referenced this issue May 29, 2019
There is an issue with Emacs 26 and Gnu TLS install where the caching
is preventing the proper TLS version from being installed which causes
all Emacs 26.x builds to fail.

This temporarily disables caching until such time as it can be
resolved. Since the emacs_travis.mk file uses a binary build of emacs
where possible, this means that the build only takes a few minutes.

However, a negative consequence is that the snapshot build now takes
over 15 minutes on every commit since it is building from source every
time.

See flycheck/emacs-travis#22 for details.
@mineo
Copy link
Contributor Author

mineo commented Jun 2, 2019

@cowboyd Unfortunately not. I just clear the cache every once in a while (which, for my emacs package, is only once every few months).

@npostavs
Copy link

Wouldn't adding a

install_emacs: install_gnutls

line work?

mineo added a commit to mineo/travis-emacstest that referenced this issue Jun 21, 2019
mineo added a commit to mineo/travis-emacstest that referenced this issue Jun 21, 2019
mineo added a commit to mineo/travis-emacstest that referenced this issue Jun 21, 2019
mineo added a commit to mineo/travis-emacstest that referenced this issue Jun 21, 2019
mineo added a commit to mineo/travis-emacstest that referenced this issue Jun 21, 2019
mineo added a commit to mineo/travis-emacstest that referenced this issue Jun 21, 2019
justbur added a commit to justbur/evil-collection that referenced this issue Sep 30, 2019
joaotavora added a commit to joaotavora/eglot that referenced this issue Oct 5, 2019
Presumably, some Travis caching is preventing the Makefile script from
reaching elpa.gnu.org and downloading the package archive where the
required jsonrpc.el package is located for pre-27 emacs.

The caching thing is discussed briefly in
flycheck/emacs-travis#22.

So just start testing with emacs master, which will become 27
reasonably soon.

* .travis.yml (env): Bump testing emacs version to master
justbur added a commit to justbur/evil-collection that referenced this issue Oct 9, 2019
jojojames pushed a commit to emacs-evil/evil-collection that referenced this issue Oct 10, 2019
mineo added a commit to mineo/yatemplate that referenced this issue Oct 14, 2019
mineo added a commit to mineo/yatemplate that referenced this issue Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants