Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 1999 22:35:46 -0700 (PDT)
From:      iwaki@bc.niigata-u.ac.jp
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/12291: ports/japanese/ptex-common requires fixes in a.out environments
Message-ID:  <19990619053546.2499615192@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         12291
>Category:       ports
>Synopsis:       ports/japanese/ptex-common requires fixes in a.out environments
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 18 22:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Mamoru IWAKI
>Release:        FreeBSD 2.2.8-STABLE
>Organization:
Niigata university
>Environment:
FreeBSD mi000.merlin.gs.niigata-u.ac.jp 2.2.8-STABLE FreeBSD 2.2.8-STABLE #0: Wed Jun 16 12:21:22 JST 1999     root@mi000.merlin.gs.niigata-u.ac.jp:/amd/mi004/home2/FreeBSD-src/stable22/src/sys/compile/i686-128M-PnP  i386
>Description:
ports/japanese/ptex-common is not available in a.out environments.  
This restriction is caused by patch-ac.  But it is easily removed 
by the following patch.  

#This patch may not be smart for this purpose, but the same procedure 
#to get the FreeBSD version is used in bsd.ports.mk, so the obtained 
#version is valuable to believe.  

#Of cause, I know the ports-project has not already supported the
#2.2.X, but the required changes to compile this port on 2.2.X are
#small.  I believe that it is helpful for us if this kind of patch is 
#adopted.  
>How-To-Repeat:
Compile this ports in 2.2.X environments.  
>Fix:
This is a simple fix for the patch-ac of ja-ptex-common-2.1.8.  It 
makes ja-ptex-common-2.1.8 available on both 2.2.8, 3.X, and 4.X, 
I believe.  

-----< diff -c >-----< diff -c >-----< diff -c >-----
*** patch-ac.org        Thu Jun 17 20:14:27 1999
--- patch-ac.new        Thu Jun 17 19:57:25 1999
***************
*** 9,20 ****
           $verbose "$0: replaced $old_ar with $cmdname."
         fi
         
! @@ -397,6 +397,9 @@
                   lib_dir=.
                 fi
                 lib_basename=`basename $libname`
  +           if test $ot = SHARED; then
  +             cmdname="$cmdname -Wl,-soname,$lib_basename -o"
  +             fi
                 lib_base=`echo $lib_basename | sed 's/[.0-9]*$//'`
                 
--- 9,31 ----
           $verbose "$0: replaced $old_ar with $cmdname."
         fi
         
! @@ -397,6 +397,20 @@
                   lib_dir=.
                 fi
                 lib_basename=`basename $libname`
  +           if test $ot = SHARED; then
+ +if [ -x /sbin/sysctl ]
+ +then
+ +   OSVERSION=`/sbin/sysctl -n kern.osreldate`
+ +else
+ +   OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
+ +fi
+ +if [ $OSVERSION -ge 300000 ]
+ +then
  +             cmdname="$cmdname -Wl,-soname,$lib_basename -o"
+ +else
+ +             cmdname="$cmdname -o"
+ +fi
  +             fi
                 lib_base=`echo $lib_basename | sed 's/[.0-9]*$//'`
                 
-----< diff -c >-----< diff -c >-----< diff -c >-----

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990619053546.2499615192>