From lizard@informatik.unibw-muenchen.de  Tue May 28 06:54:51 2002
Return-Path: <lizard@informatik.unibw-muenchen.de>
Received: from gatesrv.RZ.UniBw-Muenchen.de (gatesrv.RZ.UniBw-Muenchen.de [137.193.11.27])
	by hub.freebsd.org (Postfix) with ESMTP
	id 5327B37B404; Tue, 28 May 2002 06:54:50 -0700 (PDT)
Received: from nemesis.informatik.unibw-muenchen.de (nemesis.Informatik.UniBw-Muenchen.de [137.193.60.30])
	by gatesrv.RZ.UniBw-Muenchen.de (8.11.2/8.11.2) with ESMTP id g4SDreW11686;
	Tue, 28 May 2002 15:53:40 +0200 (MEST)
Received: from localhost (localhost.informatik.unibw-muenchen.de [127.0.0.1])
	by nemesis.informatik.unibw-muenchen.de (Postfix) with ESMTP
	id 8A52F5A548; Tue, 28 May 2002 15:53:39 +0200 (CEST)
Received: by nemesis.informatik.unibw-muenchen.de (Postfix, from userid 1001)
	id 1DBA55A547; Tue, 28 May 2002 15:53:38 +0200 (CEST)
Message-Id: <20020528135338.1DBA55A547@nemesis.informatik.unibw-muenchen.de>
Date: Tue, 28 May 2002 15:53:38 +0200 (CEST)
From: Oliver Braun <obraun@informatik.unibw-muenchen.de>
Reply-To:
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: osa@FreeBSD.org.ru, dima@FreeBSD.org
Subject: print/acroread4 and print/acroread5 fail to install after linux_base update
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38660
>Category:       ports
>Synopsis:       print/acroread4 and print/acroread5 fail to install after linux_base update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 28 07:00:12 PDT 2002
>Closed-Date:    Fri Jun 07 10:44:01 PDT 2002
>Last-Modified:  Fri Jun 07 10:44:01 PDT 2002
>Originator:     Oliver Braun
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD nemesis.informatik.unibw-muenchen.de 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Thu May 2 11:59:09 CEST 2002 root@nemesis.informatik.unibw-muenchen.de:/usr/obj/usr/src/sys/NEMESIS_OB i386



>Description:

After the linux_base update to 7.1 both print/acroread4 and print/acroread5
fail to install.

The first problem is fixed very easy:

-RUN_DEPENDS=   /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
+RUN_DEPENDS=   /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base

The second problem is, that /compat/linux/usr/bin/strip is not part of
linux_base 7.1. However, the binaries are unbranded after installing and are
working, at least on my system.

Regards,
         Olli

>How-To-Repeat:

- install linux_base 7.1 or upgrade to it.
- cd ${PORTSDIR}/print/acroread[4|5] && make install

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/print/acroread4/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile	12 Mar 2001 23:02:32 -0000	1.30
+++ Makefile	28 May 2002 13:42:49 -0000
@@ -19,7 +19,7 @@
 MAINTAINER=	dima@FreeBSD.org
 
 .if ${ARCH} == "i386"
-RUN_DEPENDS=	/compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
+RUN_DEPENDS=	/compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
 .elif ${ARCH} == "alpha"
 RUN_DEPENDS=	/compat/osf1/usr/shlib/libc.so:${PORTSDIR}/emulators/osf1_base
 .endif
@@ -55,7 +55,7 @@
 post-install:
 .if ${ARCH} == "i386"
 	@${PERL} -pi -e 's:Linux\):FreeBSD|Linux):g' ${PREFIX}/Acrobat4/bin/acroread
-	@/compat/linux/usr/bin/strip ${PREFIX}/Acrobat4/Reader/intellinux/bin/acroread
+	@strip ${PREFIX}/Acrobat4/Reader/intellinux/bin/acroread
 	@brandelf -t Linux ${PREFIX}/Acrobat4/Reader/intellinux/bin/acroread
 .elif ${ARCH} == "alpha"
 	@${PERL} -pi -e 's:OSF1\):FreeBSD|OSF1):g' ${PREFIX}/Acrobat4/bin/acroread


Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/print/acroread5/Makefile,v
retrieving revision 1.31
diff -u -r1.31 Makefile
--- Makefile	24 May 2002 00:36:41 -0000	1.31
+++ Makefile	28 May 2002 13:39:11 -0000
@@ -15,7 +15,7 @@
 .endif
 MAINTAINER=	osa@FreeBSD.org.ru
 
-RUN_DEPENDS=	/compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
+RUN_DEPENDS=	/compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
 
 ONLY_FOR_ARCHS=	i386
 
@@ -38,7 +38,7 @@
 
 post-install:
 	@${PERL} -pi -e 's:Linux\):FreeBSD|Linux):g' ${PREFIX}/Acrobat5/bin/acroread
-	@/compat/linux/usr/bin/strip ${PREFIX}/Acrobat5/Reader/intellinux/bin/acroread
+	@strip ${PREFIX}/Acrobat5/Reader/intellinux/bin/acroread
 	@brandelf -t Linux ${PREFIX}/Acrobat5/Reader/intellinux/bin/acroread
 	@${PERL} -pi -e 's:OSF1\):FreeBSD|OSF1):g' ${PREFIX}/Acrobat5/bin/acroread
 	@cd ${PREFIX}/Acrobat5/bin && \
>Release-Note:
>Audit-Trail:

From: "Sergey A. Osokin" <osa@freebsd.org.ru>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: dima@FreeBSD.org,
	Oliver Braun <obraun@informatik.unibw-muenchen.de>
Subject: Re: ports/38660: print/acroread4 and print/acroread5 fail to install after linux_base update
Date: Tue, 28 May 2002 18:13:57 +0400

 On Tue, May 28, 2002 at 03:53:38PM +0200, Oliver Braun wrote:
 > 
 > >Description:
 > 
 > After the linux_base update to 7.1 both print/acroread4 and print/acroread5
 > fail to install.
 > 
 > The first problem is fixed very easy:
 > 
 > -RUN_DEPENDS=   /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
 > +RUN_DEPENDS=   /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
 > 
 > The second problem is, that /compat/linux/usr/bin/strip is not part of
 > linux_base 7.1. However, the binaries are unbranded after installing and are
 > working, at least on my system.
 
 acroread5 correctly works with linux_base-6. I don't see any reasons
 to depends from linux_base-7.
 
 My patch looks like this:
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/print/acroread5/Makefile,v
 retrieving revision 1.31
 diff -r1.31 Makefile
 18c18
 < RUN_DEPENDS=	/compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
 ---
 > RUN_DEPENDS=	/compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base-6
 
 -- 
 
 Rgdz,                                /"\ 
 Sergey Osokin aka oZZ,               \ /  ASCII RIBBON CAMPAIGN
 osa@freebsd.org.ru                    X     AGAINST HTML MAIL
 http://freebsd.org.ru/~osa/          / \

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: <freebsd-gnats-submit@FreeBSD.org>,
	"Oliver Braun" <obraun@informatik.unibw-muenchen.de>
Cc: "Sergey A. Osokin" <osa@freebsd.org.ru>
Subject: Re: ports/38660: print/acroread4 and print/acroread5 fail to install after linux_base update
Date: Wed, 29 May 2002 14:51:08 -0500

 There is a better way that would fix both problems.  There should be like a
 /compat/linux/etc/redhat-release file that you could depend on.  If its not
 in then depend on linux_base (version 7), if its there then either version
 of linux_base installed will be fine if the port does work with both.
 

From: Oliver Braun <obraun@informatik.unibw-muenchen.de>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: ports/38660: print/acroread4 and print/acroread5 fail to install after linux_base update
Date: Sun, 2 Jun 2002 17:00:28 +0200

 please close this, since it has been fixed by the maintainer.
 
 Regards,
          Olli
 -- 
 IST & IIS _ INF _ UniBwM ___________ http://ist.unibw-muenchen.de/People/obraun/
 Tele-Consulting GmbH _______________ http://www.tele-consulting.com/ ___ obraun@
 FreeBSD: The Power To Serve ________ http://www.freebsd.org/ ___________________
 GnuPG: 0xEF25B1BA Fingerprint: 6A3B 042A 732E 17E4 B6E7 3EAF C0B1 6B7D EF25 B1BA
State-Changed-From-To: open->closed 
State-Changed-By: petef 
State-Changed-When: Fri Jun 7 10:42:37 PDT 2002 
State-Changed-Why:  
All changes have been committed now, thanks! 

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