<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Thank you for your kind response.<br>
      <br>
      As mentioned, there is no choice: If the headers aren't present in
      the base image that a particular Cloud provider provides, they can
      only be present in the application sand-box by one's own hand.<br>
      <br>
      All Swift build-packs to date and to my knowledge use Swift 2.2
      and do not use the Swift 3 'swift build' process.  I'm trying to
      develop the next generation.<br>
    </tt>
    <div class="moz-signature"><br>
      Shao Miller<br>
      Synthetel Corporation<br>
      T: <a href="tel:+1.9053927729">+1.9053927729</a><br>
      E: <a class="moz-txt-link-abbreviated" href="mailto:swift-build-dev@synthetel.com">swift-build-dev@synthetel.com</a><br>
      W: <a class="moz-txt-link-freetext" href="https://www.synthetel.com">https://www.synthetel.com</a><br>
      <br>
    </div>
    <div class="moz-cite-prefix">On 6/8/2016 23:08, Daniel Dunbar wrote:<br>
    </div>
    <blockquote
      cite="mid:7E57C03D-E9D3-42A9-8A62-789BD8219657@apple.com"
      type="cite">
      <pre wrap="">Why do you want the headers inside the app sandbox? Usually they would remain outside.

Have you looked at IBM's CloudFoundry build pack (<a class="moz-txt-link-freetext" href="https://github.com/IBM-Swift/swift-buildpack">https://github.com/IBM-Swift/swift-buildpack</a>)? How does it handle the problem you are trying to solve?

 - Daniel

</pre>
      <blockquote type="cite">
        <pre wrap="">On Jun 8, 2016, at 8:03 PM, Shao Miller via swift-build-dev <a class="moz-txt-link-rfc2396E" href="mailto:swift-build-dev@swift.org">&lt;swift-build-dev@swift.org&gt;</a> wrote:

Good day, Swift package manager development folks.

(There are at least two separate issues being inquired about, but with the same introductory context.)

"Cloudy" deployment options derived from or akin to CloudFoundry are agonizingly locked-down environments.  Essentially Swift and all of its dependencies and one's project's dependencies must be stuffed into an arbitrary directory (henceforth referred to as "the hole," but usually /app/ ) and build processes performed without any root-user privileges.  One consequence is that one cannot use the OS' package-management system to install dependencies, but one must obtain them and wrestle them into "the hole," instead.  The strategy seems rather silly.

While developing a so-called "buildpack" for Swift 3 projects to be deployed via CloudFoundryish options and utilizing the 'swift build' command, I have come across a few issues.

One issue is that 'swift build' wants to do something with the /usr/lib/swift/linux/x86_64/glibc.modulemap file, but that file contains a hard-coded path to a ///usr/include/complex.h header-file.  As is usually the case, this hard-coded path will only work in a narrow set of environments, which excludes "the hole" that CloudFoundry provides.  I have attempted to use '-Xcc -I/the/hole' and '-Xswiftc -I/the/hole' command-line arguments, but I do not observe these paths (nor sub-paths) being tried for the complex.h header-file during complication.  I used 'strace' to trace the compilation process, including all subprocesses.

Is there some other mechanism to instruct the Swift 3 package manager that its [unfortunately] hard-coded paths are relative to some particular path?  If not, would it be sensible to introduce some logic to specify such a prefix path?

Thank you for your time and attention.
-- 

Shao Miller
Synthetel Corporation
T: +1.9053927729 &lt;tel:+1.9053927729&gt;
E: <a class="moz-txt-link-abbreviated" href="mailto:swift-build-dev@synthetel.com">swift-build-dev@synthetel.com</a>
W: <a class="moz-txt-link-freetext" href="https://www.synthetel.com">https://www.synthetel.com</a>

_______________________________________________
swift-build-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:swift-build-dev@swift.org">swift-build-dev@swift.org</a>
<a class="moz-txt-link-freetext" href="https://lists.swift.org/mailman/listinfo/swift-build-dev">https://lists.swift.org/mailman/listinfo/swift-build-dev</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>