Re: [Fink-devel] Dependence on a compiler

2005-12-18 Thread Benjamin Place

On Dec 18, 2005, at 4:12 AM, Peter O'Gorman wrote:

Can you not use the compiler that installs in /usr/local/ada ? I know 
that
it is a different download, but it will not overwrite the system's gcc 
(a
bad idea and a reason I never installed the macada package in the 
past).


I assume you're referring to AdaCore's new(ish) GPL release? I've never 
been able to make it work, I had a really hard time actually getting 
through the sign-up process to get to the download page, and I think 
they're asking that no one mirror their tarball. Also, my understanding 
is that it doesn't adapt to well to varying versions of Darwin. It's 
supported on Panther Server. I'm still on Panther, so I'm planning on 
supporting Panther and Tiger.


If someone can solve those problems, then a version of 'system-ada' (I 
don't even know if that's a good name) can be written for ACT's GPL 
GNAT. I'm sick of wrestling with them, so it won't be me.


If you're not referring to AdaCore, then whose?

Best,
Ben



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependence on a compiler

2005-12-14 Thread Benjamin Place
--- Martin Costabel [EMAIL PROTECTED] wrote:

 We already have examples of packages that depend on
 external stuff like specific commercial fortran 
 compilers or parts of the developer tools that are  
 not installed by default, and which manage their  
 dependencies on these external components by hand,

 not via virtual packages.

Could you point me to a couple to use as examples?

Thank you,
Ben


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependence on a compiler

2005-12-13 Thread Trevor Harmon

On Dec 13, 2005, at 6:35 AM, Benjamin Place wrote:

Is there a way to handle a package's dependence on a compiler  
besides using a virtual package?


I have a program, written in Ada, that depends on the macada.org  
port of GNAT to OSX. Is there a way I could express that dependence  
in a package .info?


If I understand what you're asking, and GNAT is used *only* to build  
the program, and there is a GNAT package in Fink, you can simply add  
this line to the program's .info:


BuildDepends: gnat

Trevor



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependence on a compiler

2005-12-13 Thread Peter O'Gorman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Trevor Harmon wrote:
| On Dec 13, 2005, at 6:47 PM, Benjamin Place wrote:
|
| I don't think there is a GNAT package in Fink, I looked on the
| Packages page and didn't find one. It seems to me that the GNAT Ada
| compiler is analogous to Apple's DevTools, so therefore GNAT would
| need to be represented in Fink by a virtual package.
|
| My reading of Fink's dev docs makes me think that would be *hard*.
|
| Is there another way? Is making a virtual package easier than I think?
|
|
| You shouldn't need a virtual package. You can just write a normal
| package description that grabs GNAT from here:
|
| http://www.gnu.org/software/gnat/gnat.html
|
| There's a tutorial for that here:
|
| http://fink.sourceforge.net/doc/quick-start-pkg/index.php
|

Except that gnat needs an ada compiler to bootstrap (specifically it needs
gnat). There is no gnat package in fink bacause making one is a pain and,
until now, there has been no demand for one.

Peter

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQ5+TQ7iDAg3OZTLPAQL7AQQAsF56c/GQXq8UMn0IY0MO04ue4yUBuMrn
oFCWKVO4rbaeLVQqW3aiCvIMRb4h1KupX69kntn0GiYak9TsY0obKy4JDh8uD9tn
TFjuG3PL7OLdYtOQdd1tK+w+0YYVVpI+oIxDPy31JjLqW/TBpcunvUDnpTnzt4IE
Q556nR6A2OA=
=90Tx
-END PGP SIGNATURE-


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependence on a compiler

2005-12-13 Thread Peter O'Gorman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter O'Gorman wrote:

|
| Except that gnat needs an ada compiler to bootstrap (specifically it needs
| gnat). There is no gnat package in fink bacause making one is a pain and,
| until now, there has been no demand for one.


Replying to myself :)

Looks like the macada folks have a compiler available for download now that
does not require you to overwrite /usr/bin/gcc. This could be unpackacked in
the build directory and with the -B option to gcc, be used to bootstrap a
fink ada compiler. Would probably want to do this as part of the gcc4
pacakge. No, I'm not volunteering :)

Peter
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQ5+hiriDAg3OZTLPAQKBpAP+PTf9KjTtM0gvsAFDnudXQJsAttvQJrsI
/4SRvEwHmDndpnQaD3RIzyY5yqPtOyQFk88CAfv+bstuUV9o3YrAHNW4GCxR1i0/
ltdy36IkwyiG0L4+F4wq532KbxEleXGz8JZNyfcby7x7Xh5++8INGCJ7L3VrhJRf
cAmM6mBwl14=
=Uj/j
-END PGP SIGNATURE-


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependence on a compiler

2005-12-13 Thread Martin Costabel

Benjamin Place wrote:

On Dec 13, 2005, at 1:49 PM, Trevor Harmon wrote:

If I understand what you're asking, and GNAT is used *only* to build 
the program, and there is a GNAT package in Fink, you can simply add 
this line to the program's .info:


BuildDepends: gnat


Thanks for your response, Trevor.

I don't think there is a GNAT package in Fink, I looked on the Packages 
page and didn't find one. It seems to me that the GNAT Ada compiler is 
analogous to Apple's DevTools, so therefore GNAT would need to be 
represented in Fink by a virtual package.


My reading of Fink's dev docs makes me think that would be *hard*.

Is there another way? Is making a virtual package easier than I think?


No, it is not easy, because the virtual packages you are thinking of are 
 coded as parts of the fink kernel, not as actual packages.


But IMHO there is another legitimate possibility, more along the lines 
you were thinking of originally: I think you can just write a package 
for your project that checks at build time (and again at install time if 
there is a runtime depency) whether the macada.org compiler is 
installed. If it detects that this is not installed, it errors out and 
gives instructions on where to read about installing the macada 
compiler. The package DescUsage text would mention that you need to 
download and install the macada stuff first before trying to build or 
install your package and it would give links to instructions for doing so.


We already have examples of packages that depend on external stuff like 
specific commercial fortran compilers or parts of the developer tools 
that are not installed by default, and which manage their dependencies 
on these external components by hand, not via virtual packages.


Creating a virtual package would only be justified if there were several 
packages using it.


Of course, creating a veritable ada package in Fink would be best, but 
it is a major task and not indispensable for what you are trying to do.


--
Martin




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependence on a compiler

2005-12-13 Thread Martin Costabel

Benjamin Place wrote:
[]

You need a binary gnat to build gnat from source.
gnu.org doesn't have any binaries that'll run on OS X.

macada.org does, but can I make a package that's
binary-only? That would be fine, I guess. Maybe I
could make a source package that depends on the binary
package.


I think the line should be drawn precisely between these two 
possibilities (but this is open for discussion, of course):


Making a binary-only package, or downloading the precompiled madaca 
stuff as part of your source and installing it into /usr/local/ada, I 
would not consider compatible with Fink's philosophy.


OTOH, requiring the user to do this and having your package check 
whether the user did it, I would consider acceptable.


For a while we had a package (gnuplot) that did download a precompiled 
binary (aquaterm) as part of its build process, but this was always 
considered an anomaly, and it was a relief when aquaterm could finally 
be built as a normal Fink package.


--
Martin




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel