Subject: pkg/13223: mail/sylpheed forces install into X11BASE, even with xpkgwedge
To: None <gnats-bugs@gnats.netbsd.org>
From: None <John.P.Darrow@wheaton.edu>
List: netbsd-bugs
Date: 06/15/2001 20:28:46
>Number:         13223
>Category:       pkg
>Synopsis:       mail/sylpheed forces install into X11BASE, even with xpkgwedge
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 15 18:27:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     John Darrow
>Release:        NetBSD/i386 1.5.1_BETA2 20010602; pkgsrc 20010607
>Organization:
Computing Services, Wheaton College, Wheaton, IL
>Environment:
NetBSD rebekah.wheaton.edu 1.5.1_BETA2 NetBSD 1.5.1_BETA2 (REBEKAH) #0: Thu Jun  7 06:19:18 CDT 2001     jdarrow@michal.wheaton.edu:/var/src/sys/arch/i386/compile/REBEKAH i386


>Description:
Package mail/sylpheed tries to force itself to install in X11BASE, even if 
xpkgwedge is installed.  Package creation then fails because it looks in
LOCALBASE for the files.

From bulk build:

[...]
Making install in src
gmake[1]: Entering directory `/var/pkgsrc.orig/mail/sylpheed/work/sylpheed-0.3.2
3/src'
gmake[2]: Entering directory `/var/pkgsrc.orig/mail/sylpheed/work/sylpheed-0.3.2
3/src'
/bin/sh ../mkinstalldirs /usr/X11R6/bin
 /bin/sh ../libtool  --mode=install install -c -s -o root -g wheel -m 555  sylph
eed /usr/X11R6/bin/sylpheed
install -c -o root -g wheel -m 555 -s sylpheed /usr/X11R6/bin/sylpheed
gmake[2]: Nothing to be done for `install-data-am'.
gmake[2]: Leaving directory `/var/pkgsrc.orig/mail/sylpheed/work/sylpheed-0.3.23
/src'
gmake[1]: Leaving directory `/var/pkgsrc.orig/mail/sylpheed/work/sylpheed-0.3.23
/src'
gmake[1]: Entering directory `/var/pkgsrc.orig/mail/sylpheed/work/sylpheed-0.3.2
3'
gmake[2]: Entering directory `/var/pkgsrc.orig/mail/sylpheed/work/sylpheed-0.3.2
3'
gmake[2]: Nothing to be done for `install-exec-am'.
gmake[2]: Nothing to be done for `install-data-am'.
gmake[2]: Leaving directory `/var/pkgsrc.orig/mail/sylpheed/work/sylpheed-0.3.23
'
gmake[1]: Leaving directory `/var/pkgsrc.orig/mail/sylpheed/work/sylpheed-0.3.23
'
ls: /usr/pkg/bin/sylpheed: No such file or directory
ls: /usr/pkg/share/locale/ja/LC_MESSAGES/sylpheed.mo: No such file or directory
===> Registering installation for sylpheed-0.3.23
pkg_create: can't stat `/usr/pkg/bin/sylpheed'
pkg_create: can't stat `/usr/pkg/share/locale/ja/LC_MESSAGES/sylpheed.mo'
sylpheed-0.3.23 requires installed package gettext-lib-0.10.35nb1
sylpheed-0.3.23 requires installed package glib-1.2.10
sylpheed-0.3.23 requires installed package gtk+-1.2.10
sylpheed-0.3.23 requires installed package pth-1.4.0
===> Building binary package for sylpheed-0.3.23
pkg_create: can't stat `/usr/pkg/bin/sylpheed'
pkg_create: can't stat `/usr/pkg/share/locale/ja/LC_MESSAGES/sylpheed.mo'
tar: can't add file bin/sylpheed : No such file or directory
tar: can't add file share/locale/ja/LC_MESSAGES/sylpheed.mo : No such file or di
rectory
pkg_create: tar command failed with code 512
Creating package /nsource/packages/i386/1.5/All/sylpheed-0.3.23.tgz
Registering depends: gettext-lib>=0.10.35nb1 glib>=1.2.8 gtk+>=1.2.6 pth>=1.3.2.
Using SrcDir value of /usr/pkg
Creating gzip'd tar ball in '/nsource/packages/i386/1.5/All/sylpheed-0.3.23.tgz'
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
BULK> sylpheed-0.3.23 was marked as broken:
-rw-r--r--  1 root  wheel  40001 Jun  9 03:31 .broken

>How-To-Repeat:
( cd mail/sylpheed && make package ) with xpkgwedge installed

>Fix:
Patch Makefile as follows.
(The change sets the package's --prefix to PREFIX instead of X11BASE.)

--- /source/sup/current/pkgsrc/mail/sylpheed/Makefile	Fri Mar  9 06:30:35 2001
+++ Makefile	Fri Jun 15 19:50:01 2001
@@ -15,7 +15,7 @@
 USE_X11=	yes
 USE_X11BASE=	yes
 HAS_CONFIGURE=	yes
-CONFIGURE_ARGS+=--prefix=${X11BASE} \
+CONFIGURE_ARGS+=--prefix=${PREFIX} \
 		--includedir=${LOCALBASE}/include \
 		--libdir=${LOCALBASE}/lib \
 		--enable-nls
>Release-Note:
>Audit-Trail:
>Unformatted: