<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">running the lrtest binary fails:</div><div class=""><br class=""></div><div class="">brethen-air:examples marbre$ ./lrtest<br class="">dyld: Library not loaded: libreduce.so<br class=""> Referenced from: /opt/local/share/libreduce/x86_64-mac_10.12_sierra-darwin16.7.0/examples/./lrtest<br class=""> Reason: image not found<br class="">Abort trap: 6<br class=""><br class=""></div><div class="">I checked it using otool:</div><div class=""><br class=""></div>brethen-air:examples marbre$ otool -L lrtest<br class="">lrtest:<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libreduce.so (compatibility version 0.0.0, current version 0.0.0)<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)<br class=""><div class=""><br class=""></div><div class="">libreduce.so was copied to ${prefix}/lib. Should it be somewhere else?<br class=""><div class=""><br class=""><div class="">
<div class="">Mark Brethen</div><div class=""><a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a></div><div class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 4, 2018, at 10:45 PM, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Install failed<div class=""><br class=""></div><div class="">---> Installing libreduce @20180920_0<br class="">---> Activating libreduce @20180920_0<br class="">---> Cleaning libreduce<br class="">---> Scanning binaries for linking errors<br class="">---> Found 3 broken files, matching files to ports <br class="">---> Found 1 broken port, determining rebuild order<br class="">You can always run 'port rev-upgrade' again to fix errors.<br class="">The following ports will be rebuilt: libreduce @20180920<br class="">Continue? [Y/n]: n</div><div class=""><br class=""></div><div class="">And when I run lrtest</div><div class=""><br class=""></div><div class="">brethen-air:examples marbre$ ./lrtest<br class="">dyld: Library not loaded: libreduce.so<br class=""> Referenced from: /Users/marbre/ports/math/reduce/examples/./lrtest<br class=""> Reason: image not found<br class="">Abort trap: 6<br class=""><br class=""></div><div class=""></div></div><span id="cid:C4B091FE-4951-4C6D-892B-F314FD6C6A8C@attlocal.net"><lrtest.c></span><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">
<div class="">Mark Brethen</div><div class=""><a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a></div><div class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 4, 2018, at 9:11 PM, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On Oct 4, 2018, at 21:07, Mark Brethen wrote:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">This worked:<br class=""><br class=""> use_autoreconf yes<br class=""> autoreconf.dir ${worksrcpath}/generic/libreduce/src<br class=""><br class=""> pre-configure {<br class=""> set builddir [exec ${worksrcpath}/scripts/findhost.sh [exec ${worksrcpath}/config.guess]]<br class=""> set redbin ${prefix}/libexec/${name}/csl/reduce.app/Contents/MacOS/reduce<br class=""><br class=""> configure.dir ${worksrcpath}/generic/libreduce/${builddir}<br class=""> configure.cmd ${autoreconf.dir}/configure<br class=""> configure.args-append \<br class=""> --disable-universal \<br class=""> --with-reduce=${redbin}<br class=""><br class=""> xinstall -d ${configure.dir}<br class=""> }<br class=""><br class=""> pre-build {<br class=""> set builddir [exec ${worksrcpath}/scripts/findhost.sh [exec ${worksrcpath}/config.guess]]<br class=""> build.dir ${worksrcpath}/generic/libreduce/${builddir}<br class=""> }<br class=""><br class=""><br class="">Since the documentation is nonexistent, I’d like to copy the source to the share directory. Can you use the copy macro to copy directories to destroot, indicating individual files within to ignore?<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">copy installs everything you tell it to. copy doesn't have any feature for excluding items, so if you don't want to copy certain items, you'll have to somehow arrange to only call copy on the items you do want it to copy. For example, you could fs-traverse the source directory and examine the name (or other attributes) of each file to determine whether to copy it. If you tell me more about how you want to distinguish which files to copy and which files not to copy, maybe I can be more specific in my recommendation.</span></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></body></html>