Bug 100038 - New port: lang/gnat-gcc41 GNU Ada compiler
Summary: New port: lang/gnat-gcc41 GNU Ada compiler
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Boris Samorodov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-10 19:20 UTC by Karel Miklav
Modified: 2007-10-16 12:00 UTC (History)
0 users

See Also:


Attachments
file.shar (8.47 KB, text/plain)
2006-07-10 19:20 UTC, Karel Miklav
no flags Details
gnat-gcc41.shar (7.91 KB, text/plain)
2006-08-31 16:48 UTC, karel.miklav
no flags Details
gnat-gcc41.shar (7.91 KB, text/plain)
2006-08-31 16:49 UTC, karel.miklav
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karel Miklav 2006-07-10 19:20:13 UTC
GCC version of the GNAT Ada compiler
Comment 1 Boris Samorodov freebsd_committer freebsd_triage 2006-08-02 23:17:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bsam

Take.
Comment 2 Boris B.Samorodov 2006-08-03 22:48:52 UTC
Hi Karel,

great work and not an easy one! Thanks for contributting.

Currently I see 5 issues at the port. The two of them may be solved
as of PR/99993. Here are the remaining:

1. The port installs MAN7 files with the same name as lang/gnat-gcc34
   does: fsf-funding.7, gfdl.7, gpl.7.

2. The port overwrites the file /usr/local/libdata/ldconfig/gnat-gcc
   which is installed by lang/gnat-gcc34 while builded to bootstrap
   the current port.

3. The distinfo file seems to be overloaded.

WBR
-- 
bsam
Comment 3 Boris Samorodov freebsd_committer freebsd_triage 2006-08-03 23:11:45 UTC
State Changed
From-To: open->feedback

Awaiting for a feedback.
Comment 4 Karel Miklav 2006-08-31 16:34:02 UTC
Boris B. Samorodov wrote:
> Currently I see 5 issues at the port. The two of them may be solved
> as of PR/99993. Here are the remaining:
> 
> 1. The port installs MAN7 files with the same name as lang/gnat-gcc34
>    does: fsf-funding.7, gfdl.7, gpl.7.
> 
> 2. The port overwrites the file /usr/local/libdata/ldconfig/gnat-gcc
>    which is installed by lang/gnat-gcc34 while builded to bootstrap
>    the current port.
> 
> 3. The distinfo file seems to be overloaded.

All the issues are resolved in this version, please take a look.
Comment 5 karel.miklav 2006-08-31 16:48:23 UTC
All the issues are resolved in this version, please take a look.
Comment 6 karel.miklav 2006-08-31 16:49:30 UTC
All the issues are resolved in this version, please take a look.
Comment 7 Boris B.Samorodov 2006-08-31 18:44:53 UTC
On Thu, 31 Aug 2006 17:34:02 +0200 Karel Miklav wrote:
> Boris B. Samorodov wrote:
> > Currently I see 5 issues at the port. The two of them may be solved
> > as of PR/99993. Here are the remaining:
> >
> > 1. The port installs MAN7 files with the same name as lang/gnat-gcc34
> >    does: fsf-funding.7, gfdl.7, gpl.7.
> >
> > 2. The port overwrites the file /usr/local/libdata/ldconfig/gnat-gcc
> >    which is installed by lang/gnat-gcc34 while builded to bootstrap
> >    the current port.
> >
> > 3. The distinfo file seems to be overloaded.

> All the issues are resolved in this version, please take a look.

That's great!


I'm just curious, why did you remove gcc-testsuite from gnat-gcc34 but
leave it for gnat-gcc41?


And just one issue. It happens only when "make install" but not when
"pkg_add":
-----
# Version FSF funding and licensing manuals.
for mp in fsf-funding gfdl gpl; do  /bin/mv -f /usr/local/man/man7/${mp}.7  /usr/local/man/man7/${mp}-gnat-gcc41.7;  done
-----

That leads to move existing manuals (installed at least for
gnat-gcc34). Hence those files are missing when deletting
gnat-gcc34. May be you can try to first rename them and only then
install?

Generally, it's not The Right Thing to do any manipulations with files
at PREFIX. All such things should be done at WRKSRC.

Other than that is OK. The port is almost ready for a commit, thanks!


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
Comment 8 Karel Miklav 2006-08-31 20:01:24 UTC
Boris Samorodov wrote:
> I'm just curious, why did you remove gcc-testsuite from gnat-gcc34
> but leave it for gnat-gcc41?

I just wanted to make a clean bootstrap compiler and succesfully
building GCC 4.1 and 4.2 is good enough test for me. I did not remove
the suite either, it's a separate file just like fortran or java.
And seeing test results for GNAT in GCC 3.4 would not make you happy
I guess :)

> And just one issue. It happens only when "make install" but not when 
> "pkg_add": ----- # Version FSF funding and licensing manuals. for mp
> in fsf-funding gfdl gpl; do  /bin/mv -f
/usr/local/man/man7/${mp}.7  /usr/local/man/man7/${mp}-gnat-gcc41.7;  done
> -----
> 
> That leads to move existing manuals (installed at least for 
> gnat-gcc34). Hence those files are missing when deletting gnat-gcc34.
> May be you can try to first rename them and only then install?
> 
> Generally, it's not The Right Thing to do any manipulations with
> files at PREFIX. All such things should be done at WRKSRC.

Agreed, however GCC ports where I learned things do just that so
I hope this is not a showstopper. I've posted a patch for gnat-gcc34
regarding this issue before but forgot to CC to you. Please check it
out (http://www.freebsd.org/cgi/query-pr.cgi?pr=102727) and let me
know if solving the problem this way would be acceptable.

--

Regards, Karel
Comment 9 Boris B.Samorodov 2006-08-31 21:51:24 UTC
On Thu, 31 Aug 2006 21:01:24 +0200 Karel Miklav wrote:
> Boris Samorodov wrote:

> > And just one issue. It happens only when "make install" but not when
> > "pkg_add": ----- # Version FSF funding and licensing manuals. for mp
> > in fsf-funding gfdl gpl; do  /bin/mv -f
> /usr/local/man/man7/${mp}.7  /usr/local/man/man7/${mp}-gnat-gcc41.7;  done
> > -----
> >
> > That leads to move existing manuals (installed at least for
> > gnat-gcc34). Hence those files are missing when deletting
> > gnat-gcc34.
> > May be you can try to first rename them and only then install?
> >
> > Generally, it's not The Right Thing to do any manipulations with
> > files at PREFIX. All such things should be done at WRKSRC.

> Agreed, however GCC ports where I learned things do just that so
> I hope this is not a showstopper. I've posted a patch for gnat-gcc34
> regarding this issue before but forgot to CC to you. Please check it
> out (http://www.freebsd.org/cgi/query-pr.cgi?pr=102727) and let me

OK, I took it but I'll take a look at it tomorrow.

> know if solving the problem this way would be acceptable.

The port building/testing will be OK now. Nevertheless, I think that
it will be good to rewrite this part in the future.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
Comment 10 Boris Samorodov freebsd_committer freebsd_triage 2006-09-04 17:31:43 UTC
State Changed
From-To: feedback->closed

Committed, thanks! 

Since PR/101809 is only a cosmetic change to bsd.ports.mk and there souldn't 
be errors at pointyhat when building the port for 4.x, the BROKEN message was 
removed as well.
Comment 11 John Merryweather Cooper 2007-10-16 07:43:11 UTC
I note that the original version of this PR had support for an amd64 
build.  Currently, only Debian Linux appears to have a working amd64.  
Any chance of getting a working FreeBSD amd64 GNAT?  I'd be glad to help.

jmc