From fujie@fujie.tk.elec.waseda.ac.jp  Sat Oct  7 10:43:47 2000
Return-Path: <fujie@fujie.tk.elec.waseda.ac.jp>
Received: from fujie.tk.elec.waseda.ac.jp (tk05.tk.elec.waseda.ac.jp [133.9.84.5])
	by hub.freebsd.org (Postfix) with ESMTP id 1ED1437B502
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Oct 2000 10:43:46 -0700 (PDT)
Received: (from fujie@localhost)
	by fujie.tk.elec.waseda.ac.jp (8.11.0/8.11.0) id e97Hi0k91391;
	Sun, 8 Oct 2000 02:44:00 +0900 (JST)
	(envelope-from fujie)
Message-Id: <200010071744.e97Hi0k91391@fujie.tk.elec.waseda.ac.jp>
Date: Sun, 8 Oct 2000 02:44:00 +0900 (JST)
From: fujie@tk.elec.waseda.ac.jp
Sender: fujie@fujie.tk.elec.waseda.ac.jp
Reply-To: fujie@tk.elec.waseda.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: port: devel/glade source writing problem
X-Send-Pr-Version: 3.2

>Number:         21821
>Category:       ports
>Synopsis:       devel/glade fails to generate source code
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ade
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 07 10:50:01 PDT 2000
>Closed-Date:    Tue Oct 10 10:16:34 PDT 2000
>Last-Modified:  Tue Oct 10 10:17:18 PDT 2000
>Originator:     Shinya FUJIE
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
TK Lab, WASEDA Univ.
>Environment:

	FreeBSD washi.fujie.or.jp 4.1.1-STABLE FreeBSD 4.1.1-STABLE #0: Sun Oct  8 01:10:28 JST 2000     root@:/usr/src/sys/compile/WASHI  i386

>Description:

	ports/devel/glade fails to generate source code,
        because this port uses Mk/bsd.gnome.mk with USE_GNOME,
        but this override 'datadir' value on configure stage.
        so generated 'config.h' file contains wrong GLADE_DATA_DIR value.

>How-To-Repeat:

	install glade with ports/devel/glade. then make a sample project
        and generate source code. then an error occurs with a message like
        "/usr/X11R6/share/gnome/glade/gnome/Makefile.am, No such file or
         directory"
  
>Fix:

        put this patch in ports/devel/glade/patch. but there must be
      better way to solve.

*** configure.orig	Sun Oct  8 02:18:16 2000
--- configure	Sun Oct  8 02:20:22 2000
***************
*** 4189,4214 ****
  
  
  
! if test "x${datadir}" = 'x${prefix}/share'; then
!   if test "x${prefix}" = "xNONE"; then
!     cat >> confdefs.h <<EOF
! #define GLADE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"
! EOF
! 
!   else
!     cat >> confdefs.h <<EOF
  #define GLADE_DATA_DIR "${prefix}/share/${PACKAGE}"
  EOF
- 
-   fi
- else
-   cat >> confdefs.h <<EOF
- #define GLADE_DATA_DIR "${datadir}/${PACKAGE}"
- EOF
- 
- fi
- 
- 
  
  # Check whether --enable-ansi or --disable-ansi was given.
  if test "${enable_ansi+set}" = set; then
--- 4189,4197 ----
  
  
  
! cat >> confdefs.h <<EOF
  #define GLADE_DATA_DIR "${prefix}/share/${PACKAGE}"
  EOF
  
  # Check whether --enable-ansi or --disable-ansi was given.
  if test "${enable_ansi+set}" = set; then



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->ade 
Responsible-Changed-By: ade 
Responsible-Changed-When: Sat Oct 7 14:06:01 PDT 2000 
Responsible-Changed-Why:  
My port.. I'll be reinstalling one of my boxes from scratch after all 
the restructuring so I'll take a look at this then. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21821 
State-Changed-From-To: open->closed 
State-Changed-By: ade 
State-Changed-When: Tue Oct 10 10:16:34 PDT 2000 
State-Changed-Why:  
Port updated to 0.5.11, and a bunch of things moved around to the 
right place in our bsd.gnome.mk world. 

Thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21821 
>Unformatted:
