ports/80169: ports/devel/libusb doesn't require GCC 3.1+ [patch]

Helge Oldach libusbapr05 at oldach.net
Wed Apr 20 20:10:30 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list