[MacPorts] #65569: emacs and macports-legacy-support

MacPorts noreply at macports.org
Fri Jul 29 14:56:34 UTC 2022


#65569: emacs and macports-legacy-support
----------------------+--------------------
 Reporter:  lemzwerg  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:
----------------------+--------------------
 In https://lists.macports.org/pipermail/macports-
 users/2022-July/051283.html I wrote:

 > The 'emacs-devel' package of MacPorts is currently based on commit
 > 4650ea9c25514831d925e5006ea0c3679344333b (from 2022-Jul-12).
 >
 > On Mac OS X 10.7.5 (Lion), emacs 27.2 builds fine.  However, the above
 > commit fails with
 >
 > {{{
 > ./temacs --batch  -l loadup --temacs=pbootstrap \
 >          --bin-dest /opt/local/bin/ \
 >          --eln-dest /opt/local/lib/emacs/29.0.50/
 > Warning: arch-independent data dir
 >   '/opt/local/share/emacs/29.0.50/etc/': Invalid argument
 > Warning: Lisp directory
 >
 '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_editors_emacs
 /emacs-devel/work/emacs-20220712/lisp':
 >   Invalid argument
 > Error: /opt/local/share/emacs/29.0.50/etc/charsets: Invalid argument
 > Emacs will not function correctly without the character map files.
 > }}}

 I think I found the problem: I took the Portfile for emacs 27.2 (which
 compiles successfully in MacPorts) and applied emacs commit

 {{{
 From b3ad638a60845f17938ff812efcf2b2edfbd8c57 Mon Sep 17 00:00:00 2001
 From: Paul Eggert <eggert at cs.ucla.edu>
 Date: Mon, 20 Jan 2020 01:08:42 -0800
 Subject: [PATCH] Work better if stat etc. are interrupted
 }}}

 to it (see attached `Portfile` together with the patch file `patch-
 fstat.diff`) – et voilà, `port destroot emacs` fails in the same way as
 described above.

 My guess is that there is a problem with the implementation of `openat` in
 the 'macports-legacy-support' library from Snow Leopard to Mavericks,
 since building emacs 28.2 fails exactly the same way on those platforms.

-- 
Ticket URL: <https://trac.macports.org/ticket/65569>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list