Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 21:09:41 -0700
From:      John Reynolds <johnjen@reynoldsnet.org>
To:        Peter Pentchev <roam@ringlet.net>
Cc:        stable@freebsd.org
Subject:   Re: CALL FOR TESTERS: new candidate for libusb port
Message-ID:  <16931.60165.805205.556863@whale.home-net>
In-Reply-To: <20050228095047.GE10869@straylight.m.ringlet.net>
References:  <16929.3285.129783.696868@whale.home-net> <20050228095047.GE10869@straylight.m.ringlet.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--mQs9ePoj/Y
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit


[ On Monday, February 28, Peter Pentchev wrote: ]
> 
> Wouldn't it be better if you provided a patch to the port as well, so
> people can build it on other releases of FreeBSD, e.g. 4.x? :)
> 
> G'luck,
> Peter
> 

These easiest way to do this it seems is to attach a shar archive of the
current port. I could not get the "diff -urN" output I created to patch back
cleanly onto a "virgin" libusb directory and I have very few cycles to debug
patch(1)'s behavior (or what I did wrong in making the diff) tonight :(. So,
for those interested in libusb on other versions of FreeBSD, do the following.

 0) Save the shar attachment to "libusb.shar"
 1) backup your existing .so files then pkg_delete -f libusb-0.1.7_1
 2) (as root) cd /usr/ports/devel
 3) backup your libusb: mv libusb libusb.orig
 4) sh /path/to/libusb.shar

this should create the libusb directory again and everything under it. Go to
libusb and do the usual "make && make install".

As I had mentioned before, Johannes bumped the lib version so after you compile
and install this port you will need to go to /usr/local/lib (or whatever your
PREFIX is) and do

  ln -s libusb-0.1.so.8 libusb-0.1.so.7

so that any apps you have that were linked against the .so.7 file can find the
lib. Or, recompile them. You choose.

I have heard nothing but "works fine" messages, so I hope I hear from some 4.x
testers that everything is still cool there too (I have zero 4.x machines
anymore to test with).

Thanks,

-Jr


--mQs9ePoj/Y
Content-Type: text/plain
Content-Disposition: inline;
	filename="libusb.shar"
Content-Transfer-Encoding: 7bit

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libusb
#	libusb/Makefile
#	libusb/distinfo
#	libusb/pkg-descr
#	libusb/pkg-plist
#	libusb/files
#	libusb/files/patch-ltmain.sh
#	libusb/files/patch-configure
#
echo c - libusb
mkdir -p libusb > /dev/null 2>&1
echo x - libusb/Makefile
sed 's/^X//' >libusb/Makefile << 'END-of-libusb/Makefile'
X# New ports collection makefile for:	libusb
X# Date created:				27 January 2001
X# Whom:					John Reynolds <johnjen@reynoldsnet.org>
X#
X# $FreeBSD: ports/devel/libusb/Makefile,v 1.8 2003/11/25 19:35:43 andreas Exp $
X#
X
XPORTNAME=	libusb
XPORTVERSION=	0.1.10a
X#PORTREVISION=	1
XCATEGORIES=	devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	johnjen@reynoldsnet.org
XCOMMENT=	Library giving userland programs access to USB devices
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--disable-build-docs
XINSTALLS_SHLIB=	yes
X
X.include <bsd.port.mk>
END-of-libusb/Makefile
echo x - libusb/distinfo
sed 's/^X//' >libusb/distinfo << 'END-of-libusb/distinfo'
XMD5 (libusb-0.1.10a.tar.gz) = c6062b29acd2cef414bcc34e0decbdd1
XSIZE (libusb-0.1.10a.tar.gz) = 375144
END-of-libusb/distinfo
echo x - libusb/pkg-descr
sed 's/^X//' >libusb/pkg-descr << 'END-of-libusb/pkg-descr'
XA library originally developed under Linux to give userland programs
Xan API to access to USB hardware. The FreeBSD port was originally
Xdone by Richard Tobin <richard@cogsci.ed.ac.uk> and should still
Xbe considered "beta" (not all calls implemented in the Linux port
Xare available).  Allows gPhoto, gPhoto2, s10sh and others to access
XUSB under FreeBSD successfully.
X
XWWW: http://sourceforge.net/projects/libusb/
END-of-libusb/pkg-descr
echo x - libusb/pkg-plist
sed 's/^X//' >libusb/pkg-plist << 'END-of-libusb/pkg-plist'
Xbin/libusb-config
Xinclude/usb.h
Xlib/libusb-0.1.so.8
Xlib/libusb-0.1.so
Xlib/libusb.so
Xlib/libusb.a
Xlib/libusbpp-0.1.so.8
Xlib/libusbpp-0.1.so
Xlib/libusbpp.so
Xlib/libusbpp.a
END-of-libusb/pkg-plist
echo c - libusb/files
mkdir -p libusb/files > /dev/null 2>&1
echo x - libusb/files/patch-ltmain.sh
sed 's/^X//' >libusb/files/patch-ltmain.sh << 'END-of-libusb/files/patch-ltmain.sh'
X--- ltmain.sh.orig	Fri Feb 25 21:55:10 2005
X+++ ltmain.sh	Fri Feb 25 21:55:38 2005
X@@ -5550,10 +5550,12 @@
X 	fi
X 
X 	# Install the pseudo-library for information purposes.
X+	if false; then
X 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
X 	instname="$dir/$name"i
X 	$show "$install_prog $instname $destdir/$name"
X 	$run eval "$install_prog $instname $destdir/$name" || exit $?
X+	fi
X 
X 	# Maybe install the static library, too.
X 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
END-of-libusb/files/patch-ltmain.sh
echo x - libusb/files/patch-configure
sed 's/^X//' >libusb/files/patch-configure << 'END-of-libusb/files/patch-configure'
X--- configure.orig	Fri Feb 25 23:04:35 2005
X+++ configure	Fri Feb 25 23:05:03 2005
X@@ -21635,17 +21635,11 @@
X cat >>conftest.$ac_ext <<_ACEOF
X /* end confdefs.h.  */
X #include <dev/usb/usb.h>
X-int
X-main ()
X-{
X int main(void)
X      {
X        int a = ((struct usb_ctl_request *)0L)->ucr_addr;
X        return 0;
X      }
X-  ;
X-  return 0;
X-}
X _ACEOF
X rm -f conftest.$ac_objext
X if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
END-of-libusb/files/patch-configure
exit


--mQs9ePoj/Y
Content-Type: text/plain; charset=us-ascii
Content-Description: .signature
Content-Transfer-Encoding: 7bit


-- 
John & Jennifer Reynolds  johnjen at reynoldsnet.org        www.reynoldsnet.org
Structural / Physical Design - ICG/PNG SCD     jreynold at sedona.ch.intel.com
Running FreeBSD since 2.1.5-RELEASE.               FreeBSD: The Power to Serve!
"Unix is user friendly, it's just particular about the friends it chooses."

--mQs9ePoj/Y--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16931.60165.805205.556863>