From watanabe@crayon.planet.sci.kobe-u.ac.jp Tue Sep 14 12:16:44 1999
Return-Path: <watanabe@crayon.planet.sci.kobe-u.ac.jp>
Received: from crayon.planet.sci.kobe-u.ac.jp (crayon.planet.sci.kobe-u.ac.jp [133.30.53.130])
	by hub.freebsd.org (Postfix) with ESMTP id 0D751151C6
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Sep 1999 12:15:56 -0700 (PDT)
	(envelope-from watanabe@crayon.planet.sci.kobe-u.ac.jp)
Received: (from watanabe@localhost)
	by crayon.planet.sci.kobe-u.ac.jp (8.9.2/3.7W-mx) id EAA52929;
	Wed, 15 Sep 1999 04:08:46 +0900 (JST)
Message-Id: <199909141908.EAA52929@crayon.planet.sci.kobe-u.ac.jp>
Date: Wed, 15 Sep 1999 04:08:46 +0900 (JST)
From: watanabe@komadori.planet.sci.kobe-u.ac.jp
Sender: watanabe@crayon.planet.sci.kobe-u.ac.jp
Reply-To: watanabe@komadori.planet.sci.kobe-u.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: [graphics/sane] shared libraries cannot be built
X-Send-Pr-Version: 3.2

>Number:         13751
>Category:       ports
>Synopsis:       [graphics/sane] shared libraries cannot be built
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 14 12:20:00 PDT 1999
>Closed-Date:    Wed Sep 15 19:51:40 PDT 1999
>Last-Modified:  Wed Sep 15 20:00:01 PDT 1999
>Originator:     Takeshi WATANABE
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Kobe University, Kobe, Japan
>Environment:

  FreeBSD 3.x (elf)

>Description:

  /usr/local/lib/sane/libsane-*.so.1 are not installed now.  Because...

"config.guess" of sane-1.0.1 is different from that of GNU autoconf.
For example, it outputs "i386-unknown-freebsdelf3.1" as target name,
not "i386-unknown-freebsd3.1".  "ltconfig" must check the name "freebsdelf"
as well as "freebsd".

>How-To-Repeat:

  Always.

>Fix:
	
  Apply following patch.

--- /usr/ports/graphics/sane/patches/patch-02.orig	Sat May 22 19:37:01 1999
+++ /usr/ports/graphics/sane/patches/patch-02	Wed Sep 15 00:03:32 1999
@@ -1,5 +1,5 @@
---- ltconfig	Sat Nov 21 19:53:55 1998
-+++ ltconfig.new	Thu May 13 12:44:40 1999
+--- ltconfig	Sun Nov 22 12:53:55 1998
++++ ltconfig.new	Tue Sep 14 22:20:11 1999
 @@ -604,11 +604,11 @@
    $rm conftestdata
    if ln -s X conftestdata 2>/dev/null; then
@@ -14,6 +14,15 @@
      echo "$ac_t"yes 1>&6
    else
      echo "$ac_t"no 1>&6
+@@ -777,7 +777,7 @@
+     ;;
+ 
+   # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
+-  freebsd3*)
++  freebsd3* | freebsdelf3*)
+     archive_cmds='$CC -shared -o $lib$libobjs'
+     hardcode_libdir_flag_spec='-R$libdir'
+     hardcode_direct=yes
 @@ -1123,12 +1123,24 @@
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
    ;;
@@ -26,7 +35,7 @@
    shlibpath_var=LD_LIBRARY_PATH
    ;;
 +
-+freebsd3* | freebsd4*)
++freebsd3* | freebsd4* | freebsdelf*)
 +  version_type=freebsd
 +  library_names_spec='${libname}${release}.so.$versuffix $libname.so'
 +  if [ $PORTOBJFORMAT = elf ]; then

>Release-Note:
>Audit-Trail:

From: watanabe@komadori.planet.sci.kobe-u.ac.jp
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/13751: [graphics/sane] shared libraries cannot be built
Date: Thu, 16 Sep 1999 10:51:08 +0900

   Sorry, My "bsd.port.mk" was too old.  We don't need the PR port/13751,
 that I sent, on a new "bsd.port.mk" environment.  Please close this PR.
 
 --
 Takeshi WATANABE
 
State-Changed-From-To: open->closed 
State-Changed-By: mharo 
State-Changed-When: Wed Sep 15 19:51:40 PDT 1999 
State-Changed-Why:  
Request by originator - His/her bsd.prog.mk was out of date 

From: Michael Haro <mharo@area51.fremont.ca.us>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/13751: [graphics/sane] shared libraries cannot be built
Date: Wed, 15 Sep 1999 19:54:51 -0700

 That should say bsd.port.mk.  What was I thinking when I typed that?
 
 > State-Changed-Why: 
 > Request by originator - His/her bsd.prog.mk was out of date
 
>Unformatted:
