summaryrefslogtreecommitdiff
path: root/server/autobuild
AgeCommit message (Collapse)Author
2026-01-02fix(macos): add poppler and pcre2 to PKG_CONFIG_PATH for Homebrew buildsVedang Manerikar
Some macOS users were experiencing build failures where pkg-config could not find poppler, even with Homebrew's poppler package installed. This occurs when Homebrew doesn't properly link the .pc files to the standard pkg-config search path. Fixes #299
2025-12-30fix(autobuild): add doas as privilege escalation fallbackVedang Manerikar
Alpine Linux deprecated sudo in favor of doas. Add doas support to exec_privileged() so autobuild works on Alpine without requiring users to install and configure sudo. Fixes #323
2025-12-30fix: attempt 1 fixing the appveyor build fileVedang Manerikar
2025-12-29Add support for Android Emacs using TermuxJohan Widén
Notes from the original PR: The dependencies for android in autobuild can not be installed in pdf-tools-install, they have to be installed manually in Termux. But the dependencies are checked when running autobuild. pdf-tools-install successfully installs epdfinfo in Android Emacs. One can then view pdf files. The shebang in autobuild does not work in Termux, I therefore had to create a separate script "autobuild.android" that in turn executes autobuild. The problem with the shebang is that "env" in Termux is not located at "/usr/bin/env". pdf-tools/Makefile does currently not work in Android Emacs, but it is not needed for running pdf-tools-install. Fixing this will have to be done in a separate pull request, if deemed necessary. Reason: There is yet no consensus for how to implement a command line emacs, to be run in batch mode, in Android Emacs. I have successfully run "make test" in Ubuntu, in the repo feature branch. Running "make server-test" in the master branch fails, so I have not tested this in the feature branch. Closes: #230 Author: @johanwiden
2025-12-29feat(server): add Nobara Linux supportGabriel Santos
Add build support for Nobara Linux, a Fedora derivative. - Add os_nobara() detection function (checks /etc/nobara-release) - Uses same packages as Fedora (dnf package manager) - Add to --os argument handling and auto-detection chain Closes: #301 Author: @gs-101
2025-12-28feat(server): add MSYS2 UCRT64 environment supportSundaram Ramaswamy
Support the newer UCRT64 MSYS2 environment (recommended default per msys2.org). - Add UCRT64 detection to server/autobuild - Fix vasprintf implicit declaration error on Windows (synctex_parser.c) - Update configure.ac for Windows compatibility Fixes #282, #286 Supersedes #295 Tested by multiple users on Windows 10/11 with MSYS2. Co-authored-by: legends2k
2024-04-05Fix: Update PKG_CONFIG_PATH to add glib headersVedang Manerikar
Copying my comment from the Github issue: > The problem is that something seems to have changed in the way brew > installs glib, due to which pkg-config does not find the glib headers. > > To fix this, I have updated the autobuild script to manually modify > the PKG_CONFIG_PATH. This should fix the problem. > > I will test the change and close this issue via the commit once I push > it. You will need to update your version of pdf-tools and then restart > Emacs to trigger the re-build again. (It might take a few hours for > Melpa to pick up the latest version of the pdf-tools) > > I will create a linked issue to investigate a better long-term > solution to this problem. Closes: #269
2024-02-26autobuild: Update gentoo packagesThanos Apollo
2023-03-22Add `cairo-devel` to Void Linux package listJoão Paulo da Cruz
In Void Linux most heading/development files are separated from the "main" packages and are stored on `${package-name}-devel`. The autobuild for Void fails because it tries to find `cairo-devel`, which contains `cairo`, respectives headers and other dependencies. This Pull Request adds `cairo-devel` to the `PACKAGES` variable
2022-12-02autobuild: Update script for VoidVedang Manerikar
This commit is a squashed commit of PR #164 by @skyler544 Author: Skyler Mayfield <skyler544@gmail.com> Date: Fri Oct 21 12:00:46 2022 +0200 Closes: #164
2022-11-25autobuild: Recognize NetBSD and install packages via pkginfeature/emacs-26.3Sunil Nimmagadda
Closes: #170
2022-11-25Make sure pkg-config is correctly set in autobuildVedang Manerikar
Also, simplify the config script for finding gnu-sed. Relates to: #160
2022-11-25Add support for Alpine Linux to autobuildVedang Manerikar
This ensures that all operating systems currently mentioned in the README are covered in the autobuild script Relates to: #160
2022-10-03Fix nix-shell pkg-config dependency nameMario Rodas
Recently nixpkgs removed the `pkgconfig` alias[^1], which broke the build with `nix-shell`. [^1]: https://github.com/NixOS/nixpkgs/pull/192681 Closes: #153 Closes: #158
2022-08-22Don't depend on gcc when building with `nix-shell` (#135)Mario Rodas
* Use `--run` flag to execute nix-shell The `--command` flag is only required to spawn a interactive shell. * Do not require gcc to build with nix-shell `nix-shell` already sets CC with a C compiler, for instance Clang on darwin. * Remove outdated require in test-helper `f.el` is not needed anywhere.
2022-07-15Make sure autoconf is install on macOS so autoreconf may runJimmy Yuen Ho Wong
2022-05-21Update the current Dockerfile templatesVedang Manerikar
- Move all package installation to the autobuild file. The Dockerfile should simply start a container and make sure that all the package repositories are updated. - Dockerfiles should spin up containers for the latest (ish) releases of the major Linux operating systems. - Disable Dockerfiles for environments which are not working correctly. List of operating systems where `epdfinfo` server compilation is tested and working correctly: - Debian (9, 10, 11) - Ubuntu (18, 20, 22) - Fedora (34, 35, 36) List of operating systems where `epdfinfo` server compilation is failing inside the containers, for unknown reasons: - Gentoo - Centos - Archlinux List of operating systems that need to be added to containerized testing: - MacOSX - Windows via Msys2 (Mingw32, Mingw64) - OpenBSD - FreeBSD - NixOS - Void - OpenSuse Relates to: #98
2022-05-21Remove usage of all private poppler headers in pdf-toolsPi-Cla
This commit also removes C++ entirely, as it is not needed anymore for correct compilation of `epdfinfo`. The following changes are made: - Remove private headers from all the server code. This involves: - Replace private header functionality with the correct public functions provided by poppler. - Remove unneeded headers around date checks - Delete dead-code (headers, m4 macros) - Remove C++, g++ and similar aliases from all the code. Also: - Remove related information from the README - Remove related information from CI and Dockerfiles Work done by: @Pi-Cla Closes: #105, #103, #109, #114
2022-05-09Add workaround for compilation using C++17 standard libraryVedang Manerikar
As explained in #102 by @Pi-Cla and @uliw, `pdf-tools` relies on private headers provided by `poppler`. In order to compile these correctly, we need the standard library provided by C++17. `pdf-tools` is built and tested against C++11. This workaround provides the correct CXXFLAGS to compile the library and fixes the immediate broken compilation problem. There should be two "correct" fixes to these: 1. Remove dependence on private `poppler` headers. This is being tracked in #103 and #105 2. Upgrade `pdf-tools` to build and run against new C++ versions. This is being tracked in #109. Closes: #70, #76, #102, #108, politza/pdf-tools#706.
2022-04-26Add pkgconf to opensuse buildPi-Cla
Nearly forgot to add pkgconf.
2022-04-26Add support for openSUSE except MicroPi-Cla
I am not qualified to add support for the Micros versions of openSUSE, but this supports the most commonly used versions.
2022-04-26Add to PKG_CONFIG_PATH, instead of replacing it.Vedang Manerikar
This is a better solution as it takes into account paths that have already been set up by users. Potentially fixes: #70
2022-04-25Install automake on Mingw systemsVedang Manerikar
This fixes the `server/autobuild` installation on Windows, as mentioned in #86. Fixes: #86
2022-01-25Fix: build on NixOS without nixpkgs in the Nix pathYevhen Shymotiuk
People who use [Nix Flakes](https://nixos.wiki/wiki/Flakes) do not usually have `nixpkgs` in their `NIX_PATH`, which leads to failed builds, because `nix-shell` relies on it. I suppose some users might not have `nixpkgs` in `NIX_PATH` for other reasons also. I propose to use [NixOS/nixpkgs](https://github.com/NixOS/nixpkgs) in such cases Merges, Closes: #72
2022-01-07Install base-devel, autoconf on AppveyorVedang Manerikar
Since 6th Jan, 2022, builds on Appveyor are failing because they cannot find `autoreconf`[1][2]. This should be implemented from `base-devel`, but even with `base-devel` available the builds are failing. Adding an explicit require on `autoconf` in the hope that this is fixed. 1: https://ci.appveyor.com/project/vedang/pdf-tools/builds/42114287 2: https://ci.appveyor.com/project/vedang/pdf-tools/builds/42101965 Relates to: #68
2022-01-03Add Void Linux OS and package manager to autobuild scriptgoiabae
Very simple addition to the autobuild script to include the xbps package manager and Void Linux. Closes: politza#685
2022-01-03Fix: error when using autobuild on Gentooborgorworgor
This fixes `autobuild` failing on Gentoo if the user hasn't compiled `dev-util/pkgconf`[1]. Autobuild fails due to the removed[2] repository `dev-util/pkgconfig`. The new name is now `dev-util/pkgconf`. 1: https://packages.gentoo.org/packages/dev-util/pkgconf 2: https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg93072.html Closes: politza#695, politza#693
2022-01-03Fix: use correct multiversion package syntax on OpenBSDTimo Myyrä
OpenBSD pkg_add(1) uses `package%version` syntax to specify which version of the package to use when there are multiple versions packaged. Use it for `autoconf` and `automake`. Closes: politza#696
2021-11-10fix: use POSIX standard builtin to search PATHJacob Vallejo
Rather than iterating over paths to find a given executable, use the POSIX standard builtin `command` [1]. [1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html Signed-off-by: Jacob Vallejo <jake@jahkeup.com>
2021-11-10fix: handle alternative paths to shJacob Vallejo
Fixes #8 Signed-off-by: Jacob Vallejo <jake@jahkeup.com>
2021-05-30Clean up the test code to check if poppler is properly installedVedang Manerikar
Create an explicit test file which can be compiled by c++. This commit should have been part of d435a40 and extends the change made there.
2021-05-30Clean existing artifacts when executing `pdf-tools-install`Vedang Manerikar
Ensure that existing .o files are deleted properly. Fixes #16 and politza/pdf-tools#663
2021-05-30Use c++ instead of cc to avoid dependency reinstallVedang Manerikar
The deps have already been installed, but the cc step fails so the script doesn't realize this. Closes #17
2021-02-21Prevent apt-get from requesting confirmationpancho horrillo
Fixes https://github.com/hlissner/doom-emacs/issues/3244 Thanks!
2019-11-26Fix typosDamien Cassou
Typos found with codespell.
2019-04-18autobuild: fix finding libffi; fixes #480Sean Farley
Since Homebrew install libffi as keg-only (meaning it's not linked into /usr/local) we need to manually set the path (which has a convenient command from brew).
2019-03-08Fix return valueAndreas Politz
2019-03-01Support Macports in server/autobuildRobert Irelan
2019-02-20Use function handling --os argument and caseAndreas Politz
2019-02-20Add the ability to specify which installer to useMohammed Yaseen Mowzer
This is useful when you have two installers on the same machine (e.g. pacman and nix-shell) and you want to choose between one of them.
2018-12-23Check whether Homebrew is installedMario Rodas
2018-12-14Move nixos down the list of tested OSAndreas Politz
2018-04-21Fix whitespaceAndreas Politz
2018-04-03Add the missing function callwsg
2018-02-09Enable building in OpenBSDwsg
2017-09-15Add pkgconfig package to gentooAndreas Politz
2017-09-15Adds gentoo supportAndreas Politz
2017-09-14Give a more meaningful messageAndreas Politz
2017-09-14*** empty log message ***Andreas Politz
2017-09-14Fix whitespaceAndreas Politz