Subject: pkg/30020: editors/xemacs-nox11: make package failed.
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 04/21/2005 08:43:00
>Number: 30020
>Category: pkg
>Synopsis: editors/xemacs-nox11: make package failed.
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 21 08:43:00 +0000 2005
>Originator: hiramatu@boreas.dti.ne.jp
>Release: NetBSD 2.0.2_STABLE
>Organization:
>Environment:
System: NetBSD rhine.my.domain 2.0.2_STABLE NetBSD 2.0.2_STABLE (Rhine) #4: Sun Apr 17 14:47:11 JST 2005 hiramatsu@rhine.my.domain:/usr/src/sys/arch/i386/compile/Rhine i386
Architecture: i386
Machine: i386
>Description:
"make package" in editors/xemacs-nox11 failed because mule-x-init.elc is not
installed, while the file is registered in PLIST.
/usr/bin/su ===> Building binary package for xemacs-nox11-21.4.17
Creating package /home/pkgsrc/packages/All/xemacs-nox11-21.4.17.tgz
Using SrcDir value of /usr/pkg
Registering depends: Canna-lib>=3.6pl4 gdbm>=1.8.3nb1.
Registering conflicts: xemacs-[0-9]*.
pkg_create: can't stat `/usr/pkg/lib/xemacs-21.4.17/lisp/mule/mule-x-init.elc'
tar: Unable to access lib/xemacs-21.4.17/lisp/mule/mule-x-init.elc (No such file or directory)
tar: WARNING! These file names were not selected:
lib/xemacs-21.4.17/lisp/mule/mule-x-init.elc
pkg_create: /bin/tar command failed with code 256
(pkg_create: exitcode 2)
*** Error code 1
>How-To-Repeat:
>Fix:
Because xemacs and xemacs-nox11 share pkgsrc files, I have created patches
for both packages.
=== xemacs/Makefile
==================================================================
--- xemacs/Makefile (revision 25)
+++ xemacs/Makefile (local)
@@ -10,6 +10,8 @@
CONFIGURE_ARGS+= --site-libraries=${BUILDLINK_DIR}/lib:${BUILDLINK_X11_DIR}
CONFIGURE_ARGS+= --site-runtime-libraries=${LOCALBASE}/lib:${X11BASE}/lib
+PLIST_SUBST+= X11ONLY=""
+
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
=== xemacs/PLIST
==================================================================
--- xemacs/PLIST (revision 25)
+++ xemacs/PLIST (local)
@@ -1103,7 +1103,7 @@
lib/${DISTNAME}/lisp/mule/mule-tty-init.el${ELSUFX}
lib/${DISTNAME}/lisp/mule/mule-tty-init.elc
lib/${DISTNAME}/lisp/mule/mule-x-init.el${ELSUFX}
-lib/${DISTNAME}/lisp/mule/mule-x-init.elc
+${X11ONLY}lib/${DISTNAME}/lisp/mule/mule-x-init.elc
lib/${DISTNAME}/lisp/mule/thai-xtis-chars.el${ELSUFX}
lib/${DISTNAME}/lisp/mule/thai-xtis-chars.elc
lib/${DISTNAME}/lisp/mule/thai-xtis.el${ELSUFX}
=== xemacs-nox11/Makefile
==================================================================
--- xemacs-nox11/Makefile (revision 25)
+++ xemacs-nox11/Makefile (local)
@@ -21,4 +21,6 @@
CONFIGURE_ARGS+= --site-libraries=${BUILDLINK_DIR}/lib
CONFIGURE_ARGS+= --site-runtime-libraries=${LOCALBASE}/lib
+PLIST_SUBST+= X11ONLY="@comment "
+
.include "../../mk/bsd.pkg.mk"
>Unformatted: