summaryrefslogtreecommitdiff
path: root/server/autobuild
diff options
context:
space:
mode:
authorVedang Manerikar <ved.manerikar@gmail.com>2022-11-29 11:43:45 +0530
committerVedang Manerikar <ved.manerikar@gmail.com>2022-11-29 11:43:45 +0530
commit1885cefc24883c220cdd4acafdf1d14f290a6979 (patch)
tree676d9983dccdd29c4f012e3da5aaf74a38c095fa /server/autobuild
parentd6980bc3273e1cf1a73feee6bb523d1568405685 (diff)
parent997467ad3bcd23de22624c538d14863479b27cba (diff)
Merge branch 'feature/emacs-26.3'v1.0.0
Creating a merge commit in order to create a 1.0.0 tag. Note that this merge has breaking changes, as described in the NEWS section. * feature/emacs-26.3: autobuild: Recognize NetBSD and install packages via pkgin Bump the minimum Emacs version to 26.3! 🎉🤞 Extend docker testing framework to test against Emacs versions Update and cleanup the Install section Make sure pkg-config is correctly set in autobuild Add support for Alpine Linux to autobuild Render crisp images for HiDPI screens by default Remove Emacs 24.4 guards for cua-mode Remove compatibility function for image-mode-winprops Remove pdf-util-window-pixel-width, fallback to window-body-width Remove macro / function re-definitions Remove bugfix for imenu in Emacs 24.3 and below Remove guards in `pdf-virtual` tests and code. Explicitly declare documentation files as Org files Add a byteclean target in the Makefile
Diffstat (limited to 'server/autobuild')
-rwxr-xr-xserver/autobuild42
1 files changed, 40 insertions, 2 deletions
diff --git a/server/autobuild b/server/autobuild
index d9f7975..517a30c 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -239,6 +239,17 @@ os_freebsd() {
return 0
}
+# NetBSD
+os_netbsd() {
+ if ! which uname >/dev/null 2>&1 || [ "$(uname -s)" != "NetBSD" ]; then
+ return 1
+ fi
+ PKGCMD=pkgin
+ PKGARGS=install
+ PACKAGES="autoconf automake poppler-glib png pkgconf"
+ return 0
+}
+
# OpenBSD
os_openbsd() {
if ! which uname >/dev/null 2>&1 || [ "$(uname -s)" != "OpenBSD" ]; then
@@ -353,7 +364,7 @@ os_macos() {
PKG_INSTALL_AS_ROOT=
# brew installs libffi as keg-only, meaning we need to set
# PKG_CONFIG_PATH manually so configure can find it
- export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$(brew --prefix libffi)/lib/pkgconfig/"
+ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$(brew --prefix libffi)/lib/pkgconfig/:$(brew --prefix zlib)/lib/pkgconfig/"
elif which port >/dev/null 2>&1; then
PKGCMD=port
PKGARGS=install
@@ -455,6 +466,28 @@ os_opensuse() {
return 0
}
+# Alpine Linux
+os_alpine() {
+ if [ -f "/etc/os-release" ]; then
+ . /etc/os-release
+ if [ "$ID" != "alpine" ]; then
+ return 1
+ fi
+ else
+ return 1
+ fi
+ PACKAGES="autoconf
+ automake
+ libpng-dev
+ poppler-dev
+ glib-dev
+ gcc
+ build-base"
+ PKGCMD=apk
+ PKGARGS="add"
+ return 0
+}
+
# By Parameter --os
os_argument() {
[ -z "$OS" ] && return 1
@@ -463,6 +496,7 @@ os_argument() {
freebsd) os_freebsd "$@";;
arch) os_arch "$@";;
centos) os_centos "$@";;
+ netbsd) os_netbsd "$@";;
openbsd) os_openbsd "$@";;
fedora) os_fedora "$@";;
debian) os_debian "$@";;
@@ -471,6 +505,7 @@ os_argument() {
nixos) os_nixos "$@";;
void) os_void "$@";;
opensuse) os_opensuse "$@";;
+ alpine) os_alpine "$@";;
*) echo "Invalid --os argument: $OS"
exit 1
esac || {
@@ -480,7 +515,8 @@ os_argument() {
}
## +-----------------------------------------------------------+
-## * Figure out were we are, install deps and build the program
+## * Figure out where we are
+## ** install deps and build the program
## +-----------------------------------------------------------+
handle_options "$@"
@@ -490,6 +526,7 @@ os_macos "$@" || \
os_freebsd "$@" || \
os_arch "$@" || \
os_centos "$@" || \
+os_netbsd "$@" || \
os_openbsd "$@" || \
os_fedora "$@" || \
os_debian "$@" || \
@@ -498,6 +535,7 @@ os_msys2 "$@" || \
os_nixos "$@" || \
os_void "$@" || \
os_opensuse "$@" || \
+os_alpine "$@" || \
{
OS_IS_HANDLED=
if [ -z "$DRY_RUN" ]; then