Subject: pkg/33727: x11/kdebase3 Solaris10 libusb x86_64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 06/14/2006 10:05:01
>Number:         33727
>Category:       pkg
>Synopsis:       x11/kdebase3 Solaris10 libusb x86_64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 14 10:05:01 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


libusb exist on Solaris but the lib is only 32bits ABI
/usr/sfw/lib/libusb.so.1
there is no 64bit libusb on Solaris and pkgsrc devel/libusb
is not for Solaris10 (or strong patch needed).
kdebase3's configure is too much smart !! because it found this lib in some PATH...
and linking 32/64 binary is not smart enought !
So Makefile in kdebase3 need at least a patch


>How-To-Repeat:





>Fix:


patch for x11/kdebase3

--- Makefile.orig       Tue Jun 13 12:57:47 2006
+++ Makefile    Wed Jun 14 11:57:01 2006
@@ -193,6 +193,11 @@
 CONFIGURE_ENV+= kde_cv_path_fontconfig_config='NONE'
 .endif
 
+# Solaris 10 have only libusb for 32 bit ABI.
+.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "x86_64"
+CONFIGURE_ARGS+=       --without-libusb
+.endif
+
 .include "../../meta-pkgs/kde3/kde3.mk"
 
 .include "../../databases/openldap-client/buildlink3.mk"