Re: libusb-config missing?
On Sat, Feb 05, 2011 at 04:11:08PM +1030, Daniel O'Connor wrote: On 05/02/2011, at 16:01, Peter Jeremy wrote: On 07/01/2010, at 14:54, Daniel O'Connor wrote: One problem is that ports don't know which version to use, it would be nice if they could just depend on devel/libusb and Magic Happened (tm) to pick the correct thing. The correct solution is 'USE_LIBUSB=yes' with relevant magic in bsd.port.mk Unfortunately this is unlikely to occur because it's only needed for 7.x which will be dying within the next few years. USE_LIBUSB= would be nice, I will see if I can author such a thing.. That said it is still desirable to have .pc files for libusb as I believe that is the canonical way to determine how to compile link against it. If that is by making USE_LIBUSB adds a dep to a pseudo port which installs the .pc files, or adds no dep because the .pc files are in base are pretty much equivalent IMO. What about if devel/pkgconfig is modified to search in /usr/libdata/pkgconfig and systems with native libusb have entries in there? Apart from libusb, are there any other apps in the base system that could reasonably install .pc files? None come to mind.. Actually, at least OpenSSL comes to mind, although it currently doesn't. G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@freebsd.org pe...@packetscale.com PGP key:http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 because I didn't think of a good beginning of it. signature.asc Description: Digital signature
Re: copying /dev/da0 with dd(1) to file: output differs
On Sat, Nov 20, 2010 at 01:21:57AM +0200, Peter Pentchev wrote: On Fri, Nov 19, 2010 at 06:35:19PM +0100, Matthias Apitz wrote: El día Friday, November 19, 2010 a las 06:21:09PM +0100, Hans Petter Selasky escribió: Can you dump the data into hex using hexdump -C and show us the difference. Note: the output of the dd(1) is around 3.8 GByte. I compared the 1st 2.000.000 lines of the hexdump: no diff; any better tool to show the 1st block which differs? Usually you would use bs=65536 (Does that change anything)? Same result: they differ :-( matthias bsdiff ? This will not work with such big files (requires 8x memory of the file): I was thinking in a tool just reading each file block by block, comparing the blocks and noting the 1st diff with block offset number. (some 10 lines of C code :-)) E... are you thinking of cmp(1), maybe with the -l option? :) And just for the record, at http://devel.ringlet.net/textproc/block-summarize/ or git://gitorious.org/block-summarize/block-summarize.git you may find a simple utility that summarizes cmp(1)'s output per block. (oof, I just found out that I've still left the default blocksize at 32; will change that for version 0.02, for now there's the -b option :) G'luck, Peter -- Peter Pentchev r...@space.bgr...@ringlet.netr...@freebsd.org PGP key:http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Nostalgia ain't what it used to be. signature.asc Description: Digital signature
Re: copying /dev/da0 with dd(1) to file: output differs
On Fri, Nov 19, 2010 at 06:35:19PM +0100, Matthias Apitz wrote: El día Friday, November 19, 2010 a las 06:21:09PM +0100, Hans Petter Selasky escribió: Can you dump the data into hex using hexdump -C and show us the difference. Note: the output of the dd(1) is around 3.8 GByte. I compared the 1st 2.000.000 lines of the hexdump: no diff; any better tool to show the 1st block which differs? Usually you would use bs=65536 (Does that change anything)? Same result: they differ :-( matthias bsdiff ? This will not work with such big files (requires 8x memory of the file): I was thinking in a tool just reading each file block by block, comparing the blocks and noting the 1st diff with block offset number. (some 10 lines of C code :-)) E... are you thinking of cmp(1), maybe with the -l option? :) G'luck, Peter -- Peter Pentchev r...@space.bgr...@ringlet.netr...@freebsd.org PGP key:http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 When you are not looking at it, this sentence is in Spanish. signature.asc Description: Digital signature