<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Hannah,<div class=""><br class=""></div><div class="">Your solution here was a very good one. I don’t think I sent you an update on this. It greatly reduced the number of INDI related recipes that I needed to have from about 24 down to 3. And now it works nicely.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Rob</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 31, 2019, at 3:58 AM, Hannah von Reth <<a href="mailto:hannah@von-reth.de" class="">hannah@von-reth.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="caret-color: rgb(0, 0, 0); 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; text-decoration: none;"></div><div class="WordSection1" style="caret-color: rgb(0, 0, 0); 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; text-decoration: none;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><a name="_olk_signature" class="">Hi Robert, Hi Jasem,</a></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><a name="_olk_signature" class=""><br class=""></a></div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class="">I'd suggest to add a CMakeMakefile.txt to<span class="Apple-converted-space"> </span></a><a href="https://github.com/indilib/indi" id="LPNoLP213256" class="">https://github.com/indilib/indi</a><span class="Apple-converted-space"> </span>and provide cmake options to enable/disablemodules.</div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class="">Alternatively those modules should become real modules and reside in their own repository.<br class=""></a></div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class="">The current layout it really uncommon.</a></div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class=""><br class=""></a></div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class="">I also recommend to use tarballs for stable builds, this would eliminate the need to clone the source 12 times.</a></div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class=""><br class=""></a></div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class="">Cheers,</a></div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class=""><br class=""></a></div><div class="MsoNormal" style="margin: 0px 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><a name="_olk_signature" class="">Hannah<br class=""></a></div><br class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class="WordSection1" style="caret-color: rgb(0, 0, 0); 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; text-decoration: none;"><span class=""></span></div><div class="WordSection1" style="caret-color: rgb(0, 0, 0); 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; text-decoration: none;"><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; border: none; padding: 0cm;" class=""><a name="_olk_replyheader" class=""><b class="">From:<span class="Apple-converted-space"> </span></b></a><a href="mailto:rlancaste@gmail.com" class=""><span class="">Robert Lancaster</span><span class=""></span></a><span class=""><br class=""><b class="">Sent:<span class="Apple-converted-space"> </span></b>31 January 2019 04:24<br class=""><b class="">To:<span class="Apple-converted-space"> </span></b></span><a href="mailto:vonreth@kde.org" class=""><span class="">Hannah von Reth</span><span class=""></span></a><span class="">;<span class="Apple-converted-space"> </span></span><a href="mailto:kde-windows@kde.org" class=""><span class="">kde-windows@kde.org</span><span class=""></span></a><span class=""><br class=""><b class="">Cc:<span class="Apple-converted-space"> </span></b></span><a href="mailto:mutlaqja@ikarustech.com" class=""><span class="">Jasem Mutlaq</span><span class=""></span></a><span class=""><br class=""><b class="">Subject:<span class="Apple-converted-space"> </span></b>Craft recipes with more than one target</span></div></div><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p><span class=""></span><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><a name="_olk_quotedtext" class=""><span class="">Hi Hannah,<span class="Apple-converted-space"> </span></span></a></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">I have a question about whether craft is capable of doing something. In my quest to build Mac craft recipes for building KStars, I have made a number of recipes. One set of them though, seems a little silly. I had to make one recipe for building indiserver, one for making indiserver 3rdParty, and one for each of the Indi driver libraries (there are 10 of them) which are dependencies of the indiserver 3rdParty build. Each recipe is fairly easy to write since they are almost identical. It also makes some sense because people may want to install libsbig but not install INDI, since they might want to use it for something else. But there are a couple of issues with that. First, there are at least 12 recipes to maintain, which are all coming from the same source. Each of these 12 recipes uses the exact same repository: </span></span><a href="https://github.com/indilib/indi" class=""><span class=""><span class="">https://github.com/indilib/indi</span></span><span class=""></span></a><span class=""><span class="">. Another issue with that is file size and download speed, because the download of indi for each recipe is 481 MB apiece. That gives a total of 5.6 GB for the whole INDI build. And when INDI changes they would all need updates. . .</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">So I could see a couple of solutions to this:</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">One might be to download the repository once, and then somehow point all of them to the same source folder. This would have the advantage of reducing the file size, but still allowing a user to build whichever part of indi they like as well as build it all with the craft dependency structure as I currently have them organized. But I’m not sure how to change this setting to make all of them use the same folder. Right now of course each one downloads to its own source folder based on the package name.</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">Another one would be to somehow write the 3rd party recipe to build all of the libraries in addition to the 3rd party build. Is there a way to do something like this, where you can specify more than one source folder, so that it runs the configure, make, and install steps for each one? The following will not work currently because it will just do the second one.</span></span></div></div><div class=""><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">self.targetInstSrc['Latest'] = "3rdparty/libaltaircam"</span></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class=""> self.targetInstSrc['Latest'] = “3rdParty"</span></span></div></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">Another solution that I found is that I can specify from the command line the source folder, so that in my script, I might be able to say:</span></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">craft -vvv -i --src-dir ~/AstroRoot/kstars-craft/download/git/libs/indiserver3rdParty-latest/3rdparty/libfishcamp indiserver3rdParty-latest</span></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">craft -vvv -i --src-dir ~/AstroRoot/kstars-craft/download/git/libs/indiserver3rdParty-latest/3rdparty indiserver3rdParty-latest</span></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">But to do it this way, I cannot specify the targetInstSrc folder because it will try to look in a subfolder when I specify src-dir</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">What would be the best approach, or do you have a better one?</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">In other news, I almost have the KStars recipes finished. Most of the things we need are now building well. This week I wrote the code that we need to build KStars using those recipes and make a repository for it. We can now successfully build a dmg that works almost as well as the old scripts that used homebrew do. There’s just a few more things to iron out. If you are interested, the build script is here:</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""></span><a href="https://github.com/rlancaste/kstars-on-osx-craft" class=""><span class=""><span class="">https://github.com/rlancaste/kstars-on-osx-craft</span></span><span class=""></span></a><span class=""><span class=""></span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">And my Mac versions of the recipes are here:</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""></span><a href="https://github.com/rlancaste/craft-blueprints-kde" class=""><span class=""><span class="">https://github.com/rlancaste/craft-blueprints-kde</span></span><span class=""></span></a><span class=""><span class=""></span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">We probably will have the issues worked out by next week.</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">Thanks,</span></span></div></div><div class=""><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span class=""><span class=""> </span></span></p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><span class="">Rob</span></span></div></div></div></div></blockquote></div><br class=""></div></body></html>