Bug 228626

Summary: editors/emacs 26.1 FLAVOR=nox fails to install
Product: Ports & Packages Reporter: Simeon Simeonov <sgs>
Component: Individual Port(s)Assignee: Joseph Mingrone <jrm>
Status: Closed FIXED    
Severity: Affects Many People CC: jrm
Priority: --- Flags: bugzilla: maintainer-feedback? (emacs)
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
full build log
none
pkg info -pq
none
diff to fix plist issue when SOURCES knob is off none

Description Simeon Simeonov 2018-05-31 06:17:46 UTC
cd /usr/ports/editors/emacs && make FLAVOR=nox install clean
produces at the end:


====> Compressing man pages (compress-man)
===>  Installing for emacs-nox-26.1,3
===>  Checking if emacs-nox already installed
===>   Registering installation for emacs-nox-26.1,3
pkg-static: Unable to access file /usr/ports/editors/emacs/work-nox/stage/usr/local/share/emacs/26.1/src/lcms.c:No such file or directory                                                                                             
pkg-static: Unable to access file /usr/ports/editors/emacs/work-nox/stage/usr/local/share/emacs/26.1/src/module-env-25.h:No such file or directory                                                                                    
pkg-static: Unable to access file /usr/ports/editors/emacs/work-nox/stage/usr/local/share/emacs/26.1/src/module-env-26.h:No such file or directory                                                                                    
pkg-static: Unable to access file /usr/ports/editors/emacs/work-nox/stage/usr/local/share/emacs/26.1/src/sheap.h:No such file or directory                                                                                            
pkg-static: Unable to access file /usr/ports/editors/emacs/work-nox/stage/usr/local/share/emacs/26.1/src/systhread.c:No such file or directory                                                                                        
pkg-static: Unable to access file /usr/ports/editors/emacs/work-nox/stage/usr/local/share/emacs/26.1/src/systhread.h:No such file or directory                                                                                        
pkg-static: Unable to access file /usr/ports/editors/emacs/work-nox/stage/usr/local/share/emacs/26.1/src/thread.c:No such file or directory                                                                                           
pkg-static: Unable to access file /usr/ports/editors/emacs/work-nox/stage/usr/local/share/emacs/26.1/src/thread.h:No such file or directory                                                                                           
*** Error code 74

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

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


make FLAVOR=nox showconfig
===> The following configuration options are available for emacs-nox-26.1,3:
     ACL=off: Access control list support
     GNUTLS=off: SSL/TLS support via GnuTLS
     MAILUTILS=off: Mail framework via GNU Mailutils
     MODULES=on: Dynamic modules support
     SOURCES=off: Install sources
     XML=on: XML format or parser support
====> File notification support: you can only select none or one of them
     KQUEUE=on: File notification via kqueue
===> Use 'make config' to modify these settings

uname -a
FreeBSD SagaBOX 11.2-PRERELEASE FreeBSD 11.2-PRERELEASE #0 r333393: Wed May  9 15:14:27 CEST 2018     root@SagaBOX:/usr/obj/usr/src/sys/SagaBOX  amd64
Comment 1 Joseph Mingrone freebsd_committer freebsd_triage 2018-05-31 10:33:08 UTC
Could you provide a full build log and the output of `pkg info -l`?

My best guess is that this is related to something auto-detecting during the configure stage, since it builds successfully in a clean environment.

http://pkg.awarnach.mathstat.dal.ca/data/11amd64-default/2018-05-31_07h28m08s/logs/emacs-nox-26.1,3.log
Comment 2 Joseph Mingrone freebsd_committer freebsd_triage 2018-05-31 11:02:17 UTC
Sorry, `pkg info` without the `-l` to list all installed packages (as we discussed on irc).
Comment 3 Simeon Simeonov 2018-05-31 12:01:09 UTC
Created attachment 193865 [details]
full build log

Build log
Comment 4 Simeon Simeonov 2018-05-31 12:02:15 UTC
Created attachment 193866 [details]
pkg info -pq

The output of pkg info -pq
Comment 5 Simeon Simeonov 2018-05-31 12:25:45 UTC
OK. I think that I narrowed it down.

The port builds and installs with:

===> The following configuration options are available for emacs-nox-26.1,3:
     ACL=off: Access control list support
     GNUTLS=off: SSL/TLS support via GnuTLS
     MAILUTILS=off: Mail framework via GNU Mailutils
     MODULES=on: Dynamic modules support
     SOURCES=on: Install sources
     XML=on: XML format or parser support
====> File notification support: you can only select none or one of them
     KQUEUE=on: File notification via kqueue
===> Use 'make config' to modify these settings

In other words disabling SOURCES breaks the port.
Comment 6 Joseph Mingrone freebsd_committer freebsd_triage 2018-05-31 14:27:37 UTC
Created attachment 193870 [details]
diff to fix plist issue when SOURCES knob is off
Comment 7 Joseph Mingrone freebsd_committer freebsd_triage 2018-05-31 14:28:22 UTC
Great.  Thanks.  The attached diff should fix things.
Comment 8 Simeon Simeonov 2018-05-31 15:33:31 UTC
The patch worked for me. emacs 26.1 FLAVOR=nox is building and installing both with and without SOURCES.
Thanks for your time! :)
Comment 9 commit-hook freebsd_committer freebsd_triage 2018-05-31 15:35:45 UTC
A commit references this bug:

Author: jrm
Date: Thu May 31 15:35:18 UTC 2018
New revision: 471213
URL: https://svnweb.freebsd.org/changeset/ports/471213

Log:
  editors/emacs: Fix plist issue when SOURCES knob is off

  PR:		228626
  Reported by:	Simeon Simeonov <blackmore@pichove.org>

Changes:
  head/editors/emacs/pkg-plist
Comment 10 Joseph Mingrone freebsd_committer freebsd_triage 2018-05-31 16:00:47 UTC
Thanks!