Subject: pkg/37146: emacs-w3m cannot be built with EMACS_TYPE=emacs22
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <cheusov@tut.by>
List: pkgsrc-bugs
Date: 10/18/2007 09:40:00
>Number:         37146
>Category:       pkg
>Synopsis:       emacs-w3m cannot be built with EMACS_TYPE=emacs22
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 18 09:40:00 +0000 2007
>Originator:     Aleksey Cheusov
>Release:        Linux
>Organization:
home
>Environment:
linux
>Description:
www/emacs-w3m with EMACS_TYPE set to emacs22 fails like this

pkgsrc@beaver:/home/cheusov/pkgsrc/www/emacs-w3m$ bmake clean
===> Cleaning for emacs-w3m-1.4.4nb1
pkgsrc@beaver:/home/cheusov/pkgsrc/www/emacs-w3m$ bmake update
=> Bootstrap dependency digest>=20010302: digest-20070803 found
=> Bootstrap dependency checkperms>=1.1: checkperms-1.9 found
=> Checksum SHA1 OK for emacs-w3m-1.4.4.tar.gz
=> Checksum RMD160 OK for emacs-w3m-1.4.4.tar.gz
===> Installing dependencies for emacs-w3m-1.4.4nb1
==========================================================================
The following variables will affect the build process of this package,
emacs-w3m-1.4.4nb1.  Their current value is shown below:

        * EMACS_TYPE = emacs22

Based on these variables, the following variables have been set:

        * EMACS_BIN = /home/pkgsrc/pkg/bin/emacs
        * EMACS_ETCPREFIX = /home/pkgsrc/pkg/share
        * EMACS_FLAVOR = emacs
        * EMACS_INFOPREFIX = /home/pkgsrc/pkg/info
        * EMACS_LISPPREFIX = /home/pkgsrc/pkg/share/emacs/site-lisp
        * EMACS_PKGNAME_PREFIX (defined, but empty)
        * EMACS_VERSION_MAJOR (defined, but empty)
        * EMACS_VERSION_MINOR (defined, but empty)

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/home/pkgsrc/pkg/bin/bmake clean' after
the changes.
==========================================================================
=> Build dependency Mule-UCS>=0.84: NOT found
=> Verifying update for ../../editors/mule-ucs
=> Bootstrap dependency digest>=20010302: digest-20070803 found
=> Bootstrap dependency checkperms>=1.1: checkperms-1.9 found
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Accepted versions are: emacs21 emacs21nox emacs20
ERROR: No valid Emacs version installed found
*** Error code 1

Stop.
bmake: stopped in /home/cheusov/pkgsrc/editors/mule-ucs
*** Error code 1

Stop.
bmake: stopped in /home/cheusov/pkgsrc/editors/mule-ucs
*** Error code 1

Stop.
bmake: stopped in /home/cheusov/pkgsrc/www/emacs-w3m
*** Error code 1

Stop.
bmake: stopped in /home/cheusov/pkgsrc/www/emacs-w3m
pkgsrc@beaver:/home/cheusov/pkgsrc/www/emacs-w3m$
>How-To-Repeat:

>Fix:
Index: www/emacs-w3m/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/emacs-w3m/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- www/emacs-w3m/Makefile      30 Jun 2007 13:21:13 -0000      1.20
+++ www/emacs-w3m/Makefile      17 Oct 2007 16:35:03 -0000
@@ -21,7 +21,7 @@
 DEPENDS+=      ${EMACS_PKGNAME_PREFIX}apel>=10.3:../../devel/apel
 .endif
 
-.if ${EMACS_TYPE} == "emacs21" || ${EMACS_TYPE} == "emacs22"
+.if ${EMACS_TYPE} == "emacs21"
 BUILD_DEPENDS+=        ${EMACS_PKGNAME_PREFIX}Mule-UCS>=0.84:../../editors/mule-ucs
 .endif
 
Index: www/emacs-w3m/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/www/emacs-w3m/PLIST,v
retrieving revision 1.9
diff -u -r1.9 PLIST
--- www/emacs-w3m/PLIST 19 Feb 2007 09:22:30 -0000      1.9
+++ www/emacs-w3m/PLIST 17 Oct 2007 16:35:03 -0000
@@ -51,7 +51,7 @@
 ${EMACS_LISPPREFIX}/w3m/w3m-tabmenu.elc
 ${EMACS_LISPPREFIX}/w3m/w3m-ucs.el
 ${FOR_emacs21}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
-${FOR_emacs22}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
 ${FOR_xemacs214}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
 ${FOR_xemacs215}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
 ${EMACS_LISPPREFIX}/w3m/w3m-util.el