NetBSD Problem Report #41284
From www@NetBSD.org Sat Apr 25 15:34:43 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 6E95363C20F
for <gnats-bugs@gnats.netbsd.org>; Sat, 25 Apr 2009 15:34:43 +0000 (UTC)
Message-Id: <20090425153441.D88E663C166@www.NetBSD.org>
Date: Sat, 25 Apr 2009 15:34:41 +0000 (UTC)
From: cheusov@tut.by
Reply-To: cheusov@tut.by
To: gnats-bugs@NetBSD.org
Subject: devel/scmgit-base fails to build [patch]
X-Send-Pr-Version: www-1.0
>Number: 41284
>Category: pkg
>Synopsis: devel/scmgit-base fails to build [patch]
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bjs
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 25 15:35:00 +0000 2009
>Closed-Date: Sun Mar 14 00:27:34 +0000 2010
>Last-Modified: Sun Mar 14 00:27:34 +0000 2010
>Originator: Aleksey Cheusov
>Release: linux
>Organization:
home
>Environment:
linux
>Description:
Under Debian/Linux an installation phase ends like this (PKG_DEVELOPER=yes):
=> Checking for missing run-time search paths in scmgit-base-1.6.0.6
ERROR: /usr/pkg/bin/git: libcurl.so.4 => not found
ERROR: /usr/pkg/bin/git-receive-pack: libcurl.so.4 => not found
ERROR: /usr/pkg/bin/git-shell: libcurl.so.4 => not found
...
ERROR: *** The programs/libs shown above will not find the listed
ERROR: shared libraries at runtime.
ERROR: Please fix the package (add -Wl,-R.../lib in the right places)!
This happens because -R option is passed to gcc which is not supported.
Building phase contains lines like the following
LINK git
gcc: unrecognized option '-R/usr/pkg/lib'
>How-To-Repeat:
>Fix:
The following patch fixes the problem
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/scmgit-base/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile 9 Jan 2009 13:42:15 -0000 1.16
+++ Makefile 25 Apr 2009 15:34:09 -0000
@@ -73,6 +73,8 @@
MAKE_ENV+= GIT_TEMPLATE_INSTDIR=${GIT_TEMPLATE_INSTDIR:Q}
MESSAGE_SUBST+= GIT_TEMPLATE_INSTDIR=${GIT_TEMPLATE_INSTDIR}
+MAKE_ENV+= NO_R_TO_GCC_LINKER=1
+
SUBST_CLASSES+= fix-paths
SUBST_FILES.fix-paths= templates/hooks--post-receive.sample
SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames
>Release-Note:
>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/41284: devel/scmgot-base fails to build [patch]
Date: Fri, 15 May 2009 22:26:10 +0900
On Sun, 26 Apr 2009 00:35:01 +0900, <cheusov@tut.by> wrote:
> +MAKE_ENV+= NO_R_TO_GCC_LINKER=1
For more portability, how about following instead?
MAKE_ENV+= CC_LD_DYNPATH=${COMPILER_RPATH_FLAG:Q}
Responsible-Changed-From-To: pkg-manager->bjs
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sat, 16 May 2009 02:16:15 +0000
Responsible-Changed-Why:
Over to maintainer.
From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/41284: devel/scmgot-base fails to build [patch]
Date: Sat, 16 May 2009 11:18:17 +0300
>> +MAKE_ENV+= NO_R_TO_GCC_LINKER=1
>
> For more portability, how about following instead?
>
> MAKE_ENV+= CC_LD_DYNPATH=${COMPILER_RPATH_FLAG:Q}
For obvious reasons changing MAKE_ENV doesn't help but
MAKE_FLAGS+= CC_LD_DYNPATH=${COMPILER_RPATH_FLAG:Q}
work perfectly. This approach is better than my proposal.
--
Best regards, Aleksey Cheusov.
State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Thu, 11 Mar 2010 00:00:54 +0000
State-Changed-Why:
This package has been updated a few times since the original
bug report. Is the bug still there? If yes, does the last
suggestion still fix it?
From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: bjs@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
wiz@NetBSD.org
Subject: Re: pkg/41284 (devel/scmgit-base fails to build [patch])
Date: Sat, 13 Mar 2010 21:30:44 +0200
> Synopsis: devel/scmgit-base fails to build [patch]
> State-Changed-From-To: open->feedback
> State-Changed-By: wiz@NetBSD.org
> State-Changed-When: Thu, 11 Mar 2010 00:00:54 +0000
> State-Changed-Why:
> This package has been updated a few times since the original
> bug report. Is the bug still there? If yes, does the last
> suggestion still fix it?
It is built fine now but produces the same warnings messages
LINK git-fast-import
gcc: unrecognized option '-R/usr/pkg/lib'
CC hash-object.o
LINK git-hash-object
gcc: unrecognized option '-R/usr/pkg/lib'
CC imap-send.o
LINK git-imap-send
gcc: unrecognized option '-R/usr/pkg/lib'
After installing ldd shows correct paths to /usr/pkg/lib/libraries.so
(at least for these three binaries)
--
Best regards, Aleksey Cheusov.
State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sun, 14 Mar 2010 00:27:34 +0000
State-Changed-Why:
Package works fine, just some warnings left; they don't seem
important to me. If you disagree, just tell me and I'll reopen.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.