From owner-freebsd-ports@FreeBSD.ORG Tue Mar 1 04:09:44 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68C8016A4CE; Tue, 1 Mar 2005 04:09:44 +0000 (GMT) Received: from fed1rmmtao03.cox.net (fed1rmmtao03.cox.net [68.230.241.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id F378543D3F; Tue, 1 Mar 2005 04:09:43 +0000 (GMT) (envelope-from jjreynold@ip68-2-111-246.ph.ph.cox.net) Received: from ip68-2-111-246.ph.ph.cox.net ([68.2.111.246]) by fed1rmmtao03.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP <20050301040943.NYPB1282.fed1rmmtao03.cox.net@ip68-2-111-246.ph.ph.cox.net>; Mon, 28 Feb 2005 23:09:43 -0500 Received: from whale.home-net (whale.home-net [192.168.1.2]) j2149VEr045768; Mon, 28 Feb 2005 21:09:31 -0700 (MST) (envelope-from jjreynold@dolphin.home-net) Received: from whale.home-net (localhost [127.0.0.1]) by whale.home-net (8.12.9/8.12.9) with ESMTP id j2149glO091395; Mon, 28 Feb 2005 21:09:42 -0700 (MST) (envelope-from jjreynold@whale.home-net) Received: (from jjreynold@localhost) by whale.home-net (8.12.9/8.12.9/Submit) id j2149fvq091392; Mon, 28 Feb 2005 21:09:41 -0700 (MST) (envelope-from jjreynold) From: John Reynolds MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="mQs9ePoj/Y" Content-Transfer-Encoding: 7bit Message-ID: <16931.60165.805205.556863@whale.home-net> Date: Mon, 28 Feb 2005 21:09:41 -0700 To: Peter Pentchev In-Reply-To: <20050228095047.GE10869@straylight.m.ringlet.net> References: <16929.3285.129783.696868@whale.home-net> <20050228095047.GE10869@straylight.m.ringlet.net> X-Mailer: VM 7.17 under Emacs 21.3.1 cc: ports@freebsd.org cc: stable@freebsd.org Subject: Re: CALL FOR TESTERS: new candidate for libusb port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 04:09:44 -0000 --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 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 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 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 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--