Bug 262512 - editors/emacs-devel with NATIVECOMP option enable
Summary: editors/emacs-devel with NATIVECOMP option enable
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: emacs@FreeBSD.org (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-12 21:21 UTC by carlosalberto_filho
Modified: 2022-03-15 21:56 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (emacs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlosalberto_filho 2022-03-12 21:21:34 UTC
===>  Installing for emacs-devel-29.0.50.20220228,2
===>  Checking if emacs-devel is already installed
===>   Registering installation for emacs-devel-29.0.50.20220228,2
pkg-static: Unable to access file /usr/ports/editors/emacs-devel/work-full/stage/usr/local/share/emacs/29.0.50/etc/org.gnu.emacs.defaults.gschema.valid:No such file or directory
pkg-static: Unable to access file /usr/ports/editors/emacs-devel/work-full/stage/usr/local/share/glib-2.0/schemas/org.gnu.emacs.defaults.gschema.xml:No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/editors/emacs-devel
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/emacs-devel

===>>> Installation of emacs-devel-29.0.50.20220228,2 (editors/emacs-devel) failed
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> editors/emacs-devel
Comment 1 Joseph Mingrone freebsd_committer freebsd_triage 2022-03-12 23:02:36 UTC
Can you share your full build log and the output of `make showconfig`?  I can't reproduce this building with pourdriere.

http://pkg.ftfl.ca/data/14amd64-default/2022-03-12_17h32m22s/logs/emacs-devel-29.0.50.20220228,2.log
Comment 2 carlosalberto_filho 2022-03-14 11:45:58 UTC
comment #1

Dear Joseph, 
First thanks for you help!
Follow the information:

root@aa102-006l /u/p/e/emacs-devel (main)# make showconfig
===> The following configuration options are available for emacs-devel-29.0.50.20220228,2:
     ACL=on: Access control list support
     DBUS=on: D-Bus IPC system support
     GCONF=off: GConf configuration backend support
     GNUTLS=on: SSL/TLS support via GnuTLS
     GSETTINGS=on: GSettings API for application settings
     HARFBUZZ=on: HarfBuzz for text shaping
     JSON=on: JSON file/format/parser support
     LCMS2=on: Little CMS 2.x support
     M17N=off: M17N support for text-shaping [implies XFT]
     MAILUTILS=on: Mail framework via GNU Mailutils
     MODULES=on: Dynamic modules support
     NATIVECOMP=on: Emacs Lisp native compiler support
     OTF=on: Opentype fonts [implies XFT]
     PGTK=off: Pure GTK GUI [implies CAIRO, GTK3]
     SCROLLBARS=on: Toolkit scroll-bars
     SOURCES=on: Install sources
     SQLITE3=on: SQLite 3 database support
     THREADS=on: Threading support
     XFT=off: Xft font library support
     XIM=off: X Input Method
     XML=on: XML format or parser support
     XWIDGETS=off: Experimental GTK widgets [implies GTK3]
====> Graphics support
     CAIRO=on: Cairo graphics library support [implies PNG]
     GIF=on: GIF image format support
     JPEG=on: JPEG image format support
     MAGICK=off: ImageMagick image processing support (deprecated)
     PNG=on: PNG image format support
     SVG=on: Scalable vector graphics support [implies PNG]
     TIFF=on: TIFF image format support
     WEBP=on: WebP image format support
     XPM=off: XPM pixmap image format support
====> File notification support: you can only select none or one of them
     GFILE=off: File notification via gfile
     KQUEUE=on: File notification via kqueue
====> Sound (audio) support: you can only select none or one of them
     ALSA=off: ALSA audio architecture support
     OSS=on: Open Sound System support
====> X11 toolkit: you can only select none or one of them
     GTK2=off: GTK+ 2 GUI toolkit support
     GTK3=on: GTK+ 3 GUI toolkit support
     XAW=off: Athena widgets
     XAW3D=off: Athena3D widgets
===> Use 'make config' to modify these settings
Comment 3 Ashish SHUKLA freebsd_committer freebsd_triage 2022-03-15 19:32:12 UTC
(In reply to carlosalberto_filho from comment #2)

Thanks for providing the configuration OPTIONS. I'm able to reproduce it. It seems like we need two conditionals (PGTK, and GSETTINGS) for in pkg-plist for org.gnu.emacs.defaults.gschema.valid as per following excerpt from Makefile.in:

===============================================================
settings_SCHEMAS = etc/org.gnu.emacs.defaults.gschema.xml

all: ${SUBDIR} info $(gsettings_SCHEMAS:.xml=.valid)

[....]

$(gsettings_SCHEMAS:.xml=.valid): $(srcdir)/$(gsettings_SCHEMAS)
ifeq ($(HAVE_PGTK)$(HAVE_GSETTINGS),yesyes)
        $(GLIB_COMPILE_SCHEMAS) --strict --dry-run --schema-file=$(srcdir)/$(gsettings_SCHEMAS)
        $(MKDIR_P) $(@D)
        touch $@
endif
===============================================================

I'm working on an update, and will include a fix for this.

Thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-03-15 21:51:22 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a628b9f27a3f34756a14d3ad9cce29a1ed93f002

commit a628b9f27a3f34756a14d3ad9cce29a1ed93f002
Author:     Ashish SHUKLA <ashish@FreeBSD.org>
AuthorDate: 2022-03-14 06:16:44 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2022-03-15 21:50:06 +0000

    editors/emacs-devel: Update to git snapshot 1a07854

    Fix pkg-plist for GSettings schema, as it's now also dependent
    on PGTK option, in addition to GSETTINGS option

    PR:             262512

 editors/emacs-devel/Makefile  | 11 ++++++++---
 editors/emacs-devel/distinfo  |  6 +++---
 editors/emacs-devel/pkg-plist |  2 +-
 3 files changed, 12 insertions(+), 7 deletions(-)
Comment 5 Ashish SHUKLA freebsd_committer freebsd_triage 2022-03-15 21:56:32 UTC
We've committed an update, and a fix for the reported problem.

If it's not fixed for you, then please re-open this PR.

Thanks for the report