On 2018/07/10 13:57, Brian Callahan wrote:
> 
> On 07/10/18 13:51, James Turner wrote:
> > I require the attached diff in order to use crystal otherwise I get the
> > following when trying to run crystal hello.cr.
> > 
> > ld.so: crystal: can't load library 'libLLVM-6.0.so'
> > Killed
> > 
> 
> This has come up before, in my port of C-Reduce:
> https://marc.info/?l=openbsd-ports&m=152377935312657&w=2
> 
> Though it doesn't seem like we've reached any sort of standard operating
> procedure about it, sthen@'s solution (make it an RDEP and tightly couple
> the version number via PKGSPEC) works well enough for my mind, at least for
> now.
> 
> ~Brian
> 

This should do the trick.  OK?

Index: devel/llvm/Makefile
===================================================================
RCS file: /cvs/ports/devel/llvm/Makefile,v
retrieving revision 1.180
diff -u -p -r1.180 Makefile
--- devel/llvm/Makefile 8 Jul 2018 10:32:45 -0000       1.180
+++ devel/llvm/Makefile 11 Jul 2018 09:14:28 -0000
@@ -16,6 +16,7 @@ COMMENT-python =      Python bindings for Cla
 LLVM_V =       6.0.1
 DISTNAME =     llvm-${LLVM_V}.src
 PKGNAME =      llvm-${LLVM_V}
+PKGSPEC-main = llvm-=${LLVM_V}
 PKGNAME-main = llvm-${LLVM_V}
 PKGNAME-python =       py-llvm-${LLVM_V}
 REVISION-main =        1
Index: lang/crystal/Makefile
===================================================================
RCS file: /cvs/ports/lang/crystal/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- lang/crystal/Makefile       8 Jul 2018 14:27:07 -0000       1.1.1.1
+++ lang/crystal/Makefile       11 Jul 2018 09:14:29 -0000
@@ -5,6 +5,7 @@ ONLY_FOR_ARCHS= amd64
 
 V =            0.25.1
 V_SHARDS =     0.8.1
+REVISION =     0
 COMMENT =      statically typed object oriented language
 DISTNAME =     crystal-${V}
 CATEGORIES =   lang
@@ -33,6 +34,7 @@ DISTFILES =   crystal-${V}{${V}}.tar.gz \
 COMPILER =     ports-clang
 
 BUILD_DEPENDS =        devel/llvm
+RUN_DEPENDS =  devel/llvm,-main
 
 LIB_DEPENDS =  converters/libiconv \
                devel/boehm-gc \

Reply via email to