Subject: pkg/30224: ...pkgsrc/editors/emacs, broken build.
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rkr@olib.org>
List: pkgsrc-bugs
Date: 05/13/2005 21:08:00
>Number:         30224
>Category:       pkg
>Synopsis:       ...pkgsrc/editors/emacs, broken build.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 13 21:08:00 +0000 2005
>Originator:     Richard Rauch
>Release:        NetBSD/amd64, -current (between 2.0 and 3.0)
>Organization:
n/a
>Environment:
NetBSD socrates 3.99.3 NetBSD 3.99.3 (socrates) #0: Fri Apr  8 16:13:11 CDT 2005  root@socrates:/usr/kernobj/usr/netbsd/current/src/sys/arch/amd64/compile/socrates amd64

>Description:
Because of a security issue with tiff, I updated the tiff library.

That took out emacs.

Emacs did not get re-installed.

$ cd ...pkgsrc/editors/emacs
$ make update
===> Resuming update for emacs-21.4anb1
===> Checking for vulnerabilities in emacs-21.4anb1
===> Creating toolchain wrappers for emacs-21.4anb1
xpm is not installed; can't buildlink files.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/editors/emacs
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/editors/emacs
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/editors/emacs
$


Okay.  Try to force the xpm package to be built:

$ (cd ../../graphics/xpm && make update)
===> xpm is part of your X11 distribution
$


...in other words, emacs wants the *pkgsrc* xpm, but pkgsrc xpm won't
build because I already have a non-pkgsrc xpm.

A workaround is to change /etc/mk.conf to bind PREFER_PKGSRC to "no".
This is really a nasty thing to do, though, since the XFree86 OpenGL
has some serious bugs on the AMD64 (fixed about a year ago in Mesa, but
not imported to the X server yet, I think).

>How-To-Repeat:
Try to build emacs with the "normal" preference of using pkgsrc versions
of libraries.

>Fix:
None.

I don't really know how the dependencies work out in pkgsrc.

Perhaps this is an XPM (...pkgsrc/graphics/xpm) issue for failing to
build XPM even though I have stated that I prefer pkgsrc versions of
libraries?