[gtkada] [Fwd: patches: missing shared-libgcc + DESTDIR support]

John Marino adacore at marino.st
Fri Feb 4 01:36:20 CET 2011


GtkAda was just committed to Pkgsrc, which is the primary software 
management system for NetBSD and DragonFlyBSD.  NetBSD has an older 
system libgcc (v4.1) and that helped to flush out a problem with the 
GTKAda makefile.

gtkada-dialog and testgtk need the shared libgcc which is not specified 
(in fact, the static libgcc is specified, you can see this with the -v 
option of gnatmake).  gnatmake ignores the -static-libgcc directive and 
defaults to linking with the system libgcc_s.so.  For systems like 
DragonFlyBSD and NetBSD that have fairly recently libgcc_s libraries, 
this doesn't present a problem.  The problem was flushed out with NetBSD 
(Error message was _Unwind_Resume was a hidden system which points to 
need of shared libgcc).

Applying attached patch-ac and patch-ae will allow gtkada to build 
properly, and it will link to the libgcc_s that comes with the gnat 
compiler, and not the system libgcc.



As a second topic, the NetBSD maintainer (Matthias Drochner) who 
volunteered to import the package into the official Pkgsrc repository 
noticed that ${DESTDIR} was not supported in the GtkAda makefiles.  He 
told me that DESTDIR is a pretty standard feature these days, and he 
felt strongly enough about it that he patched the Makefiles to support 
it (attached patches ba through bh).  It would be great if these patches 
were incorporated, especially for GtkAda that is installed though ports 
and pkgsrc.  Matthias mentioned that he didn't bother to patch 
windows-only sections, so someone else would need to add DESTDIR to 
those sections for complete support.

Thanks for considering these suggested improvements.

Regards,
John


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-ac
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-ae
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0001.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-ba
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-bb
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0003.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-bc
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0004.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-bd
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0005.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-be
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0006.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-bf
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0007.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-bg
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0008.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-bh
Url: /pipermail/gtkada/attachments/20110204/a632bbcd/attachment-0009.txt 


More information about the gtkada mailing list