pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41284: devel/scmgot-base fails to build [patch]



>Number:         41284
>Category:       pkg
>Synopsis:       devel/scmgot-base fails to build [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 25 15:35:00 +0000 2009
>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




Home | Main Index | Thread Index | Old Index