Package Details: emacs-pgtk-git 30.0.50.171650-2

Git Clone URL: https://aur.archlinux.org/emacs-pgtk-git.git (read-only, click to copy)
Package Base: emacs-pgtk-git
Description: GNU Emacs. Development branch, with PGTK enabled.
Upstream URL: http://www.gnu.org/software/emacs/
Licenses: GPL3
Conflicts: emacs
Provides: emacs
Replaces: emacs
Submitter: VitalyR
Maintainer: VitalyR
Last Packager: VitalyR
Votes: 1
Popularity: 0.000000
First Submitted: 2022-04-20 15:42 (UTC)
Last Updated: 2024-09-24 05:09 (UTC)

Required by (315)

Sources (2)

Latest Comments

1 2 Next › Last »

kelvie commented on 2025-02-14 05:50 (UTC)

And here's my PKGBUILD diff:

diff --git a/PKGBUILD b/PKGBUILD
index a36be3e..b39cd6d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -115,8 +115,8 @@ if [[ $CLI == "YES" ]] ; then
 else
 pkgname="emacs-pgtk-git"
 fi
-pkgver=30.0.50.171650
-pkgrel=2
+pkgver=31.0.50.176812
+pkgrel=1
 pkgdesc="GNU Emacs. Development branch, with PGTK enabled."
 arch=('x86_64')
 url="http://www.gnu.org/software/emacs/"
@@ -130,12 +130,13 @@ replaces=('emacs')
 source=("emacs-git::git+https://git.savannah.gnu.org/git/emacs.git"
         json-rpc-lsp-mode.patch)
 # If Savannah fails for reasons, use Github's mirror
-#source=("emacs-git::git+https://github.com/emacs-mirror/emacs.git#commit=3f076a8e44b652691ffd4a2a07b04ab956ed4668")
+source=("emacs-git::git+https://github.com/emacs-mirror/emacs.git"
+        fix-null-devices.patch)

 options=(!strip)
 install=emacs-git.install
-b2sums=("SKIP"
-        "SKIP")
+b2sums=('SKIP'
+        '450016a855241fd2c9dc55ffaccb2ab7297856eefb0d0c3b122df301cf0d5c828debfee93bee7c1d9a0221a8307bd47a1b99f860f5ee2206089d4bb0d8b33271')
 ################################################################################

 ################################################################################
@@ -210,6 +211,9 @@ if [[ $JIT == "YES" ]]; then
   fi
 fi

+export CXXFLAGS+=' -g'
+export CFLAGS+=' -g'
+
 if [[ $CLI == "YES" ]]; then
   depends=("${depends_nox[@]}");
 elif [[ $NOTKIT == "YES" ]]; then
@@ -290,6 +294,11 @@ prepare() {
   # Don't apply this patch for now.
   # It make Emacs consume a lot of resources but not function well.
   # git apply $srcdir/json-rpc-lsp-mode.patch
+  for src in "${source[@]:1}"; do
+    if [[ $src == *.patch ]]; then
+      patch -Np1 -i ../"$src"
+    fi
+  done
   [[ -x configure ]] || ( ./autogen.sh git && ./autogen.sh autoconf )
 }

kelvie commented on 2025-02-14 05:49 (UTC)

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76239

Emacs with pgtk crashes with the latest KDE (6.3), only tested wayland.

diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index d47b1da7262..c9d0bd612dd 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -182,6 +182,9 @@ pgtk_enumerate_devices (struct pgtk_display_info *dpyinfo,

       for (t1 = devices_on_seat; t1; t1 = t1->next)
        {
+         if (t1->data == NULL)
+           continue;
+
          rec = xmalloc (sizeof *rec);
          rec->seat = g_object_ref (seat);
          rec->device = GDK_DEVICE (t1->data);

This patch fixes it (I have no idea of the side effects, or what this uses the seats for)

kelvie commented on 2025-02-10 01:25 (UTC)

Any chance this can be updated to use a faster mirror instead? Savannah takes forever to clone sometimes, otherwise I may make a emacs-pgtk-github-mirror-git or something

pebbles commented on 2024-11-07 18:03 (UTC) (edited on 2024-11-07 18:05 (UTC) by pebbles)

Build failed for current version due to ld.gold not supporting pack-relative-relocs. Looks like typo causing it to use ld.gold even when MOLD="YES", worked after setting

163,164c163,164
<   export CFLAGS+=" -fuse-ld=gold";
<   export CXXFLAGS+=" -fuse-ld=gold";
---
>   export CFLAGS+=" -fuse-ld=mold";
>   export CXXFLAGS+=" -fuse-ld=mold";

toogad commented on 2024-10-01 00:52 (UTC)

I ended up doing what urugang suggested below: setting +MOLD="NO", and then manually do

makepkg -s

then install using yay or pacman -U

toogad commented on 2024-09-28 17:07 (UTC) (edited on 2024-09-28 17:08 (UTC) by toogad)

I encountered the same error. Below is where I think the error was documented in config.log:

configure:9307: $? = 1

configure:9327: checking whether the C compiler works

configure:9349: sccache gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fuse-ld=gold -g -ffile-prefix-map=/home/kai/.cache/yay/emacs-pgtk-git/src=/usr/src/debug/emacs-pgtk-git -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto conftest.c >&5

/usr/bin/ld.gold: pack-relative-relocs: unknown -z option

/usr/bin/ld.gold: use the --help option for usage information

collect2: error: ld returned 1 exit status

configure:9353: $? = 1

configure:9394: result: no

configure: failed program was:

| / confdefs.h /

| #define PACKAGE_NAME "GNU Emacs"

| #define PACKAGE_TARNAME "emacs"

| #define PACKAGE_VERSION "31.0.50"

| #define PACKAGE_STRING "GNU Emacs 31.0.50"

| #define PACKAGE_BUGREPORT "bug-gnu-emacs@gnu.org"

| #define PACKAGE_URL "https://www.gnu.org/software/emacs/"

| #define HAVE_PDUMPER 1

| #define GC_REMEMBER_LAST_MARKED 1

| / end confdefs.h. /

| int

| main (void)

| {

|

| ;

| return 0;

| }

configure:9399: error: in '/home/kai/.cache/yay/emacs-pgtk-git/src/emacs-git':

configure:9401: error: C compiler cannot create executables

See 'config.log' for more details

VitalyR commented on 2024-09-27 15:06 (UTC)

@Naokotani Thank you for the report! Could you please provide the detailed error message? If it's too long, feel free to paste it into a GitHub Gist.

Naokotani commented on 2024-09-27 13:34 (UTC)

When I try to install I get an C compiler cannot create executable error. I tested the compilers and they seem to work on my system.

urugang commented on 2024-06-12 15:06 (UTC)

it seems mold not support -z option. so i do not use mold.

+MOLD="NO"        # Use the mold linker.
sccache gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fuse-ld=gold -fuse-ld=gold -g -ffile-prefix-map=/mnt/data/cache/paru/clone/emacs-pgtk-git/src=/usr/src/debug/emacs-pgtk-git -flto=auto  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto /tmp/a.c
/usr/bin/ld.gold: pack-relative-relocs: unknown -z option

VitalyR commented on 2024-06-04 06:28 (UTC)

@kelvie This shouldn't happen since the makedepends is already set: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=emacs-pgtk-git#n152.