Re: bsd.emacs.mk does not detect non-GUI, non-X11 options

2014-05-22 Thread Lowell Gilbert
Vick Khera vi...@khera.org writes:

 All of my freebsd boxes are headless, and I build all ports without
 X11. To accomplish this, I specify in make.conf the following:

 WITHOUT_GNOME=yes
 WITHOUT_X11=yes
 OPTIONS_UNSET=X11 GUI

 I have to specify both WITHOUT_X11 and OPTIONS_UNSET since I have
 found some ports to not honor OPTIONS_UNSET yet.

 So now I'm moving from individually building ports on each server to
 using poudriere and pkgng to build packages customized for my
 environment.

 This is where I run into problems...

 One of the packages I need to build is textproc/markdown-mode.el. This
 port specifies USE_EMACS in the Makefile. When I build this port on a
 system which has emacs-nox11 installed, all is fine. WhenI try to
 build this port inside poudriere, it wants to build emacs24 as a
 dependency. Thus, the package for markdown-mode.el will install emacs
 instead of using emacs-nox11.

I'm not sure why that's a problem, because if you build editors/emacs
with the port option for X11 disabled, it should tell configure to use
the --without-x argument.  The results should be identical to
emacs-nox11, except for not having the -nox11 suffix in the package
name.  I don't have any easy way to experiment with this at the moment,
but I can't see any way that configure can pass that argument and have
it go after X anyway. If other dependencies conflicted, I'd expect the
run to end up with an IGNORE line.

Come to think of it, are you sure that X11 is being included? Please
humor me by checking to see whether the poudriere run builds, say,
libX11, and whether the emacs package that gets built actually links to
the X libraries...

...and failing that, the -nox11 port is just a slave port of
editors/emacs anyway, so one of the variables in there has to be the
magic you're looking for.

 Is there some way to convince markdown-mode.el to depend on
 emacs-nox11 instead when building the packages via poudriere? I don't
 even see how to explicitly state the dependency outside of poudriere.

I'm pretty sure that setting EMACS_PORT_NAME will do it in any case.
EMACS_PORT_NAME=emacs-nox11


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: bsd.emacs.mk does not detect non-GUI, non-X11 options

2014-05-22 Thread Vick Khera
On Thu, May 22, 2014 at 4:08 PM, Lowell Gilbert
freebsd-ports-lo...@be-well.ilk.org wrote:
 I'm not sure why that's a problem, because if you build editors/emacs
 with the port option for X11 disabled, it should tell configure to use
 the --without-x argument.  The results should be identical to
 emacs-nox11, except for not having the -nox11 suffix in the package

I think I threw in too many distracting details. What I'm saying here
is that when I specify USE_EMACS in the Makefile for a port, it should
detect if X11 is disabled and select the correct emacs-nox11 port as
the dependency automatically.

One precedent for this is the USE_GHOSTSCRIPT knob. If that is
specified in a port, it automatically chooses the -nox11 slave port
for ghostscript if WITHOUT_X11 is set.

Since emacs has a -nox11 slave port, I believe it should work in the
same way for consistency.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


bsd.emacs.mk does not detect non-GUI, non-X11 options

2014-05-21 Thread Vick Khera
All of my freebsd boxes are headless, and I build all ports without
X11. To accomplish this, I specify in make.conf the following:

WITHOUT_GNOME=yes
WITHOUT_X11=yes
OPTIONS_UNSET=X11 GUI

I have to specify both WITHOUT_X11 and OPTIONS_UNSET since I have
found some ports to not honor OPTIONS_UNSET yet.

So now I'm moving from individually building ports on each server to
using poudriere and pkgng to build packages customized for my
environment.

This is where I run into problems...

One of the packages I need to build is textproc/markdown-mode.el. This
port specifies USE_EMACS in the Makefile. When I build this port on a
system which has emacs-nox11 installed, all is fine. WhenI try to
build this port inside poudriere, it wants to build emacs24 as a
dependency. Thus, the package for markdown-mode.el will install emacs
instead of using emacs-nox11.

Is there some way to convince markdown-mode.el to depend on
emacs-nox11 instead when building the packages via poudriere? I don't
even see how to explicitly state the dependency outside of poudriere.

Thanks!
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org