Date: Wed, 20 Apr 2005 22:09:27 +0200 (CEST) From: Helge Oldach <libusbapr05@oldach.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: johnjen@reynoldsnet.org Subject: ports/80169: ports/devel/libusb doesn't require GCC 3.1+ [patch] Message-ID: <200504202009.j3KK9Rmc051281@sep.oldach.net> Resent-Message-ID: <200504202010.j3KKAT9C031941@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80169 >Category: ports >Synopsis: ports/devel/libusb doesn't require GCC 3.1+ [patch] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 20 20:10:29 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Helge Oldach >Release: FreeBSD 4.11-STABLE i386 >Organization: >Environment: System: FreeBSD localhost 4.11-STABLE FreeBSD 4.11-STABLE #2115: Wed Apr 6 18:33:41 CEST 2005 toor@localhost:/usr/obj/usr/src/sys/GENERIC i386 >Description: ports/devel/libusb/Makefile requires USE_GCC=3.1+ This is not necessary. The port in fact compiles and works fine using STABLE-4's stock 2.95.4 with the trivial patch below. There is no need for the lengthy installation of a ports' gcc for those users who don't require it otherwise. I might be mistaken with respect to the "uppercase" patch below, but this only relates to a test program. >How-To-Repeat: >Fix: --- ./tests/descriptor_test.cpp.ORIG Tue Feb 8 00:58:17 2005 +++ ./tests/descriptor_test.cpp Wed Apr 20 21:56:23 2005 @@ -34,9 +34,9 @@ cout << bus->directoryName() << "/" << device->fileName() << " " - << uppercase << hex << setw(4) << setfill('0') + << hex << setw(4) << setfill('0') << device->idVendor() << "/" - << uppercase << hex << setw(4) << setfill('0') + << hex << setw(4) << setfill('0') << device->idProduct() << endl; if (device->Vendor() != "") { cout << "- Manufacturer : " << device->Vendor() << endl; --- ./usbpp.cpp.ORIG Tue Feb 8 00:58:02 2005 +++ ./usbpp.cpp Wed Apr 20 21:55:47 2005 @@ -9,6 +9,7 @@ #include <errno.h> #include <cstdlib> +#include <cstdio> //remove after debugging #include <iostream> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504202009.j3KK9Rmc051281>