Opened 19 years ago

Closed 19 years ago

#5056 closed defect (fixed)

NEW: avarice-2.3

Reported by: me@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: moll@…
Port:

Description

avarice-2.3

Description: avarice is used for controlling the atmel avr jtag-ice Homepage: http://avarice.sourceforge.net/ Comments: this program is used with the avr-gcc/avr-libc projects.

Attachments (3)

Portfile (668 bytes) - added by me@… 19 years ago.
Portfile
Portfile.2 (697 bytes) - added by moll@… 19 years ago.
fixed Portfile
Portfile.3 (744 bytes) - added by moll@… 19 years ago.
added "configure.args --mandir=${prefix}/share/man" to Portfile

Download all attachments as: .zip

Change History (13)

Changed 19 years ago by me@…

Attachment: Portfile added

Portfile

comment:1 Changed 19 years ago by moll@…

I tried this Portfile, but it fails in the configure stage with this error:

configure: error: You need to install libbfd.a from binutils.

Apparently the binutils port needs to have the '--enable-install-libbfd' configure flag. Also, doesn't this port need a avr-specific version of binutils and gdb (configure --target=avr)?

comment:2 Changed 19 years ago by moll@…

Cc: moll@… added

comment:3 Changed 19 years ago by me@…

As far as avr specific binutils and gcc, not they're not needed. This program is simply for controlling the jtag interface.

For libbfd, is this port file not trying to build the mac native binutils as a dependency? I might have setup my dependencies wrong, but someone else tested this portfile for me and it had built the binutils on their system and installed fine.

comment:4 Changed 19 years ago by moll@…

It installs the binutils, but the binutils port doesn't include libbfd by default. It needs to be enabled with the --enable-install-libbfd configure flag. Maybe this can be added as a port variant for the binutils port? Can a port (avarice) depend on a particular port variant (binutils+libbfd)?

comment:5 Changed 19 years ago by me@…

I'm not sure if a port can be dependent on a variant. I'll try this again on a machine with nothing else installed to see what happens, does the build actually fail because of this or is this just a warning? Also, do you have the latest ports installed with darwinports 1.101? Because my binutils did install the libbfd.a and libbfd.la.

comment:6 Changed 19 years ago by moll@…

This is very odd. I *do* have libfd.a and libbfd.la installed in /opt/local/lib. The config.log file in the avarice build directory contains this line several times:

/usr/bin/ld: warning -L: directory name ('/opt/local/lib') does not exist

This directory definitely exists and is world-readable.

comment:7 Changed 19 years ago by me@…

Interresting. We'll need to have someone more knowledgable with darwin ports help here, because I don't know why it would do that. This is the first time I've made a portfile so I might be missing something, though it does work on two separate machines now.

Changed 19 years ago by moll@…

Attachment: Portfile.2 added

fixed Portfile

Changed 19 years ago by moll@…

Attachment: Portfile.3 added

added "configure.args --mandir=${prefix}/share/man" to Portfile

comment:8 Changed 19 years ago by moll@…

attachments.isobsolete: 01

comment:9 Changed 19 years ago by me@…

Perfect, thanks for the help! Now, is there anything else I need to do to have this included in with the ports?

comment:10 Changed 19 years ago by toby@…

Resolution: fixed
Status: newclosed

committed

Note: See TracTickets for help on using tickets.