Package Details: emacs-git 30.0.50.169253-1

Git Clone URL: https://aur.archlinux.org/emacs-git.git (read-only, click to copy)
Package Base: emacs-git
Description: GNU Emacs. Development master branch.
Upstream URL: http://www.gnu.org/software/emacs/
Keywords: development editor IDE text
Licenses: GPL3
Conflicts: emacs
Provides: emacs
Submitter: toropisco
Maintainer: toropisco
Last Packager: toropisco
Votes: 107
Popularity: 1.93
First Submitted: 2014-01-05 02:05 (UTC)
Last Updated: 2023-10-14 18:36 (UTC)

Required by (313)

Sources (2)

Pinned Comments

toropisco commented on 2017-06-30 19:14 (UTC) (edited on 2022-05-15 13:26 (UTC) by toropisco)

This PKGBUILD is a work in progress. If you find PACKAGING bugs, please let me know ASAP.

Upstream bugs are to be reported upstream. Check out the emacs-devel archives to confirm if this is an already known bug. In fact... Why are you not subscribed to emacs-devel?. Also check the emacs-bug-tracker archives.

Reporting bugs: Write to the Emacs Bug Tracker and report it there. Or, better yet, use the debbugs client included with the text editor. You will find instructions at https://debbugs.gnu.org/. Good luck!

If you confirm it is a packaging bug, you are welcome to report it here.

Yaourt and other automated tools users BEWARE! This PKGBUILD is written with hand updating in mind and I won't fix bugs arising from such use. Besides, cloning the same repository time and time again from a non-profit such as the GNU Project/FSF gives out a very low image of you.

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 .. 39 Next › Last »

ynakao commented on 2021-12-05 21:53 (UTC)

Sorry, but why was libxpm removed from dependency at the latest change[1]? build() fails again in configure process. Am I missing something?

[1] https://aur.archlinux.org/cgit/aur.git/commit/?h=emacs-git&id=06536033e7d0aeb17ffef5dd5d3d617f6b76dfc3

totsilence commented on 2021-12-05 21:26 (UTC)

Hey, in the latest version i think $SOUND should be $ALSA in line 263. Cheers!

ynakao commented on 2021-12-04 07:06 (UTC) (edited on 2021-12-04 07:07 (UTC) by ynakao)

In chroot environment, build() fails due to missing libxpm[1]. This is caused by removing m17n-lib[2] which depends on libxpm via gd[3]. So, I guess libxpm should be added to depends.

configure: error: The following required libraries were not found:
    libXpm
Maybe some development libraries/packages are missing?
To build anyway, give:
    --with-xpm=ifavailable
as options to configure.
==> ERROR: A failure occurred in build().
    Aborting...

[1] https://archlinux.org/packages/extra/x86_64/libxpm/

[2] https://aur.archlinux.org/cgit/aur.git/commit/?h=emacs-git&id=48b2a70e648ff5cfc4c75636ee1f2338150b7791

[3] https://archlinux.org/packages/extra/x86_64/gd/

pancho commented on 2021-12-03 06:41 (UTC) (edited on 2021-12-03 06:42 (UTC) by pancho)

Well, I'll just say that the emacs package on extra dropped libmagick6 on Aug 2020, as can be seen on the git history¹. No mention of imagemagick or libmagick in the current PKGBUILD ². ;-)

1: https://github.com/archlinux/svntogit-packages/commit/f687dac70acd9a56279fbf0f8b34bf6a9865ba3b#diff-37538beb61ff63edebbf735dfcf39e5d732f49183d6beb097169d971875ca422

2: https://github.com/archlinux/svntogit-packages/blob/packages/emacs/trunk/PKGBUILD

toropisco commented on 2021-12-02 19:51 (UTC)

@zhenya1007 Don't tempt me! I've waited long enough to drop ImageMagick. I'll look at your patches this weekend. Cheers.

zhenya1007 commented on 2021-12-02 19:47 (UTC)

In a (perhaps misguided) effort to reduce the number of libraries needed to compile/install Emacs, I have added two knobs: one for GPM and another one for sound/ALSA. Here is the change for the GPM knob:

diff --git a/PKGBUILD b/PKGBUILD
index fd2a07a..c63d62c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -64,6 +64,7 @@ MAGICK=           # ImageMagick 7 support. Deprecated (read the logs).
                   # -->>If you just *believe* you need ImageMagick, you don't.<<--

 NOGZ="YES"        # Don't compress .el files.
+GPM=              # Support mouse in the Linux console via libgpm.
 ################################################################################

 ################################################################################
@@ -78,7 +79,7 @@ pkgdesc="GNU Emacs. Development master branch."
 arch=('x86_64')
 url="http://www.gnu.org/software/emacs/"
 license=('GPL3')
-depends_nox=('alsa-lib' 'gnutls' 'libxml2' 'jansson' 'gpm')
+depends_nox=('alsa-lib' 'gnutls' 'libxml2' 'jansson')
 depends=("${depends_nox[@]}" 'm17n-lib' 'libotf' 'harfbuzz')
 makedepends=('git')
 provides=('emacs' 'emacs26-git' 'emacs-27-git' 'emacs-seq' 'emacs-nox')
@@ -179,6 +180,14 @@ fi
 if [[ $DOCS_PDF == "YES" ]]; then
   makedepends+=( 'texlive-core' );
 fi
+
+if [[ $GPM == "YES" ]]; then
+  if [[ $CLI == "YES" ]]; then
+    depends_nox+=( 'gpm' );
+  else
+    depends+=( 'gpm' );
+  fi
+fi
 ################################################################################

 ################################################################################
@@ -271,6 +280,11 @@ if [[ $NOGZ == "YES" ]]; then
   _conf+=( '--without-compress-install' );
 fi

+if [[ $GPM == "YES" ]]; then
+    true
+else
+  _conf+=( '--without-gpm' );
+fi
 # ctags/etags may be provided by other packages, e.g, universal-ctags
 _conf+=('--program-transform-name=s/\([ec]tags\)/\1.emacs/')

And here is the ALSA/sound knob:

diff --git a/PKGBUILD b/PKGBUILD
index c63d62c..681b86f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -65,6 +65,8 @@ MAGICK=           # ImageMagick 7 support. Deprecated (read the logs).

 NOGZ="YES"        # Don't compress .el files.
 GPM=              # Support mouse in the Linux console via libgpm.
+SOUND=            # Support for sound.
+                  # The only useful values are "YES" and "alsa". The two are equivalent.
 ################################################################################

 ################################################################################
@@ -79,7 +81,7 @@ pkgdesc="GNU Emacs. Development master branch."
 arch=('x86_64')
 url="http://www.gnu.org/software/emacs/"
 license=('GPL3')
-depends_nox=('alsa-lib' 'gnutls' 'libxml2' 'jansson')
+depends_nox=('gnutls' 'libxml2' 'jansson')
 depends=("${depends_nox[@]}" 'm17n-lib' 'libotf' 'harfbuzz')
 makedepends=('git')
 provides=('emacs' 'emacs26-git' 'emacs-27-git' 'emacs-seq' 'emacs-nox')
@@ -188,6 +190,15 @@ if [[ $GPM == "YES" ]]; then
     depends+=( 'gpm' );
   fi
 fi
+
+if [[ $SOUND == "YES" || $SOUND == [aA][lL][sS][aA] ]]; then
+  if [[ $CLI == "YES" ]]; then
+    depends_nox+=( 'alsa-lib' );
+  else
+    depends+=( 'alsa-lib' );
+  fi
+fi
+
 ################################################################################

 ################################################################################
@@ -224,7 +235,6 @@ build() {
     --localstatedir=/var
     --mandir=/usr/share/man
     --with-gameuser=:games
-    --with-sound=alsa
     --with-modules
 # Beware https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228
 # dconf and gconf break font settings you set in ~/.emacs.
@@ -285,6 +295,13 @@ if [[ $GPM == "YES" ]]; then
 else
   _conf+=( '--without-gpm' );
 fi
+
+if [[ $SOUND == "YES" || $SOUND == [aA][lL][sS][aA] ]]; then
+    _conf+=( '--with-sound=alsa' );
+else
+    _conf+=( '--with-sound=no' );
+fi
+
 # ctags/etags may be provided by other packages, e.g, universal-ctags
 _conf+=('--program-transform-name=s/\([ec]tags\)/\1.emacs/')

If you would like me to provide the patches via some alternate means, please let me know.

zhenya1007 commented on 2021-12-02 19:34 (UTC)

FWIW, I couldn't agree more with the decision to drop GTK+2, libotf and m17n-flt. Now, if we could only get rid of Imagemagick for good... ;-)

zhenya1007 commented on 2021-10-05 23:13 (UTC) (edited on 2021-10-05 23:15 (UTC) by zhenya1007)

If set CLI="YES" (am I the only user of that option?! :P), it sets $pkgname to emacs-git-nox, derives emacs-git-nox.install as the name of the $install file, and fails when it discovers that said $install file doesn't exist.

My suggestion is to hard-code emacs-git.install as the name of the $install file, to wit:

@@ -75,7 +75,7 @@ replaces=('emacs' 'emacs26-git' 'emacs-27-git' 'emacs-seq' 'emacs-nox')
 # If Savannah fails for reasons, use Github's mirror
 source=("emacs-git::git://github.com/emacs-mirror/emacs.git")
 options=(!strip)
-install="$pkgname".install
+install='emacs-git.install'
 b2sums=('SKIP')

pancho commented on 2021-10-01 10:46 (UTC) (edited on 2021-10-01 10:47 (UTC) by pancho)

Hi, folks.

I've forked¹ this repo to track the just-created emacs-28² release branch.

Also, I've enabled JIT and AOT, as well as parallel compilation.

Thanks, and happy hacking!

¹: https://aur.archlinux.org/packages/emacs28-git/

²: https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg02290.html