Opened 14 years ago

Closed 14 years ago

#8687 closed enhancement (fixed)

UPDATE: avrdude to version 5.1, add usb support

Reported by: moll@… Owned by: bsd@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: pguyot (Paul Guyot)
Port:

Description

Version 5.1 supports more processors. I also added a dependency on libusb. Apple computers don't have serial ports anymore, so being able to connect directly through USB seems like a useful feature.

Attachments (2)

Portfile (863 bytes) - added by moll@… 14 years ago.
new Portfile for avrdude
avrdude.log (68.3 KB) - added by moll@… 14 years ago.
build log for libusb and avrdude

Download all attachments as: .zip

Change History (11)

Changed 14 years ago by moll@…

Attachment: Portfile added

new Portfile for avrdude

comment:1 Changed 14 years ago by mww@…

Owner: changed from darwinports-bugs@… to bsd@…
Summary: [UPDATE] update avrdude to version 5.1, add usb supportUPDATE: avrdude to version 5.1, add usb support

comment:2 Changed 14 years ago by rhwood@…

severity: normalenhancement

Updates and new ports are enhancements

comment:3 Changed 14 years ago by pguyot (Paul Guyot)

Mark, please don't hard code /opt/local in Portfiles. Ports can be installed elsewhere. You should use ${prefix} instead.

Besides, I don't understand why you made it depend on libusb. Trace reveals that no file of libusb is accessed during the configuration and the compilation.

comment:4 Changed 14 years ago by moll@…

It's odd that libusb isn't used. On my system (10.4.7, intel mac) avrdude is linked against avrdude:

otool -L /opt/local/bin/avrdude

/opt/local/bin/avrdude:

/opt/local/lib/libusb-0.1.4.dylib (compatibility version 9.0.0, current version 9.4.0) /usr/lib/libedit.2.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.5)

comment:5 Changed 14 years ago by pguyot (Paul Guyot)

Cc: pguyot@… added

comment:6 Changed 14 years ago by pguyot (Paul Guyot)

I have libusb 0.1.12, which is latest (DP) version. avrdude's configure says: checking for usb_get_string_simple in -lusb... no

otool -L /opt/local/bin/avrdude

/opt/local/bin/avrdude:

/usr/lib/libedit.2.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.6)

Changed 14 years ago by moll@…

Attachment: avrdude.log added

build log for libusb and avrdude

comment:7 Changed 14 years ago by pguyot (Paul Guyot)

You have an old version of libusb.

Please try to uninstall both libusb and avrdude, then reinstall them to get the latest version of libusb (0.1.12) and let me know if otool -L still says that avrdude uses libusb.

comment:8 Changed 14 years ago by moll@…

I *have* libusb 0.1.12 installed. The build log is after I did: port uninstall avrdude port uninstall libusb port clean --all avrdude port clean --all libusb So otool still shows that avrdude is dynamically linked against libusb.

comment:9 Changed 14 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Ah! I figured it out. I fixed your port hardcoded references to /opt/local but I forgot a $ (I had LDFLAGS=-L{prefix}/lib instead of LDFLAGS=-L${prefix}/lib).

I'll commit this port in a second.

Note: See TracTickets for help on using tickets.