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

Fix building using "make all" on macOS #24

Closed
kaushalmodi opened this issue Feb 14, 2018 · 12 comments
Closed

Fix building using "make all" on macOS #24

kaushalmodi opened this issue Feb 14, 2018 · 12 comments

Comments

@kaushalmodi
Copy link
Owner

@sshaw

The "eless build requirements" are higher than "eless run requirements".

For future plans like auto-publishing eless documentation site using ox-hugo, the minimum requirement for building eless script and documentation is emacs 24.4.. Couple of reasons:

  • I use Org master (9.2.x), but can make sure that builds work fine on latest Org stable (9.1.x) too.. Minimum requirement for Org 9.1.x is emacs 24.4. So not worth trying to make the build process work on older emacs/Org versions.
  • In the ox-hugo build setup, I use advice-add which got added in emacs 24.4.

From your comment in other thread:

make all EMACS=Emacs

 /tmp/eless >make all EMACS=Emacs
 Emacs binary used: Emacs
 Loading /tmp/eless/build/setup-eless.el (source)...
 Emacs is now refreshing its package database...
 Importing package-keyring.gpg...
 Importing package-keyring.gpg...done
 Contacting host: orgmode.org:443
 Failed to download ‘org’ archive.
 Failed to download ‘melpa’ archive.
 Package refresh done
 Installing ‘org-plus-contrib’ ..
 Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
 Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
 Package ‘org-plus-contrib-’ is unavailable
 make: *** [vcheck] Error 255

What emacs version was that?

The failure seems odd that it failed in the package download step itself.. http/https issues?

Let's first get make vcheck working on your system, emacs 24.4 or newer.

@sshaw
Copy link

sshaw commented Feb 14, 2018

make all EMACS=Emacs

/tmp/eless >Emacs --version
GNU Emacs 25.3.1
Copyright (C) 2017 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
/tmp/eless >make vcheck
Emacs binary used: /Applications/Emacs.app/Contents/MacOS/Emacs
Loading /tmp/eless/build/setup-eless.el (source)...
Emacs is now refreshing its package database...
Importing package-keyring.gpg...
Importing package-keyring.gpg...done
Contacting host: orgmode.org:443
Failed to download ‘org’ archive.
Failed to download ‘melpa’ archive.
Package refresh done
Installing ‘org-plus-contrib’ ..
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Package ‘org-plus-contrib-’ is unavailable
make: *** [vcheck] Error 255

@kaushalmodi
Copy link
Owner Author

Thanks. Do you want to hack build/setup-eless.el locally and see if forcing http instead of https helps?

These lines

@kaushalmodi
Copy link
Owner Author

Or may be launch Emacs -Q and manually eval the sexps in that setup file responsible for downloading those packages? I don't have a clue why the basic package installation would fail.. That package installation happens every time on Netlify each time https://eless.scripter.co/ deploys.

@kaushalmodi
Copy link
Owner Author

.. and here's the package installation on emacs 25.3 on Travis.. so what is so OS specific in that setup file ..

@sshaw
Copy link

sshaw commented Feb 15, 2018

Found the problem: network-security-level was set to medium. This prompts one for confirmation before connections are made.

Setting this to low here fixed it.

Not sure if there are other solutions.

@kaushalmodi
Copy link
Owner Author

Interesting.. so you are prompted each time you install/upgrade a package?

@sshaw
Copy link

sshaw commented Feb 15, 2018

I use Cask so my installing is done outside emacs. In the cases when I do inside installing it's done via Try and yes, I'm prompted.

@sshaw
Copy link

sshaw commented Feb 15, 2018

Well, I'm prompted for the host if I haven't been prompted in sometime. Not sure what that is. Seems to be weeks.

@kaushalmodi
Copy link
Owner Author

Found the problem: network-security-level was set to medium. This prompts one for confirmation before connections are made.

The default value of this variable (which got introduced in emacs 25.1) is 'medium, and it works fine i.e. I don't get any extra prompt on RHEL 6.6 (or any GNU Linux image on Gitlab Pages/Netlify/Travis). So it's likely that there's something special with macOS?

Setting this to low here fixed it.

Let me create a trial branch where I set that var to low only if the OS is macOS.

@kaushalmodi
Copy link
Owner Author

@sshaw
Copy link

sshaw commented Feb 16, 2018

That branch works.

On OS X it may be due to the cert store not containing the CA's cert.

@kaushalmodi
Copy link
Owner Author

This too merged into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants