Bug 113159 - Unbreak x11-toolkits/gtkada-gcc port after transition to X.Org 7.2
Summary: Unbreak x11-toolkits/gtkada-gcc port after transition to X.Org 7.2
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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-30 15:20 UTC by Petr Holub
Modified: 2007-06-09 12:02 UTC (History)
1 user (show)

See Also:


Attachments
Makefile.diff (284 bytes, patch)
2007-05-30 15:20 UTC, Petr Holub
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Holub 2007-05-30 15:20:03 UTC
	kris@ reported the following problem after transition to X.Org 7.2:

	Building package for gtkada-gcc-2.8.1_1
tar: include/gtkada/gdk-gl.adb: Cannot stat: No such file or directory
tar: include/gtkada/gdk-gl.ads: Cannot stat: No such file or directory
tar: include/gtkada/gtk-glarea.adb: Cannot stat: No such file or directory
tar: include/gtkada/gtk-glarea.ads: Cannot stat: No such file or directory
tar: lib/gnat/gtkada_gl.gpr: Cannot stat: No such file or directory
tar: lib/gnat/gtkada_gl_relocatable.gpr: Cannot stat: No such file or directory
tar: lib/gnat/gtkada_gl_static.gpr: Cannot stat: No such file or directory
tar: lib/gtkada/gdk-gl.ali: Cannot stat: No such file or directory
tar: lib/gtkada/gtk-glarea.ali: Cannot stat: No such file or directory
tar: lib/gtkada/libgtkada_gl-2.8.so.1: Cannot stat: No such file or directory
tar: lib/gtkada/libgtkada_gl.a: Cannot stat: No such file or directory
tar: lib/gtkada/libgtkada_gl.so: Cannot stat: No such file or directory
tar: lib/libgtkada_gl-2.8.so.1: Cannot stat: No such file or directory
tar: lib/libgtkada_gl.so: Cannot stat: No such file or directory
pkg_create: make_dist: tar command failed with code 256

	The problem is caused by the fact that OpenGL not included with xorg-libraries any more.
	Therefore, it was not detected by GtkAda and appropriate libraries and files were missing
        when package was built.

	The problem was hopefully resolved by adding USE_GL=gl to Makefile, see the patch below.

	After proved working, the same fix should be applied probably to all the
	x11-toolkits/gtkada*
	ports.

How-To-Repeat: 
	Test the compilation and package building process on pointyhat. It seems to work OK on
        my machine now.
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2007-06-06 12:06:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Petr Holub 2007-06-07 13:53:29 UTC
After working with miwi@, I'm submitting a new version of
the patch that is supposed to work OK also on the -HEAD.


--- Makefile.orig	Wed May 30 13:16:55 2007
+++ Makefile	Thu Jun  7 14:19:39 2007
@@ -7,7 +7,7 @@

 PORTNAME=	gtkada
 PORTVERSION=	2.8.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11-toolkits
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	gnuada
@@ -18,9 +18,8 @@
 MAINTAINER=	hopet@ics.muni.cz
 COMMENT=	Gtk2 binding for lang/gnat-gcc41 port of GNAT Ada compiler

-BUILD_DEPENDS=	${LOCALBASE}/bin/gcc41/gcc41:${PORTSDIR}/lang/gnat-gcc41
-
 EXTRACT_DEPENDS=	rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
+BUILD_DEPENDS=	${LOCALBASE}/bin/gcc41/gcc41:${PORTSDIR}/lang/gnat-gcc41

 WRKSRC=		${WRKDIR}/GtkAda-2_8_1

@@ -30,7 +29,8 @@
 CONFIGURE_ENV+=	PATH=${LOCALBASE}/bin/gcc41:${PATH}
CC=${LOCALBASE}/bin/gcc41/gcc41
 MAKE_ENV+=	PATH=${LOCALBASE}/bin/gcc41:${PATH} CC=${LOCALBASE}/bin/gcc41/gcc41

-USE_X_PREFIX=	yes
+USE_GL=		gl
+CONFIGURE_ARGS=	--with-GL=GL
 USE_GNOME=	gnomehack gtk20 libglade2
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-06-09 11:50:56 UTC
miwi        2007-06-09 10:50:51 UTC

  FreeBSD ports repository

  Modified files:
    x11-toolkits/gtkada  Makefile 
    x11-toolkits/gtkada-devel Makefile 
    x11-toolkits/gtkada-gcc Makefile 
  Log:
  - Fix build with xorg 7.2
  - Bump PORTREVISION
  
  PR:             113159
  Submitted by:   Petr Holub (maintainer)
  
  Revision  Changes    Path
  1.20      +3 -2      ports/x11-toolkits/gtkada-devel/Makefile
  1.3       +3 -2      ports/x11-toolkits/gtkada-gcc/Makefile
  1.20      +3 -2      ports/x11-toolkits/gtkada/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2007-06-09 12:02:56 UTC
State Changed
From-To: open->closed

Committed. Thanks!