Boost C++ Libraries: Ticket #12784: Use of "cp -p" on a tmpfs is broken in recent versions coreutils on solaris https://svn.boost.org/trac10/ticket/12784 <p> When running bootstrap.sh, under the circumstances outlined below it'll fail to copy "b2" to "jam0" with the error: </p> <pre class="wiki">preserving permissions for 'bin.solarissparc/bjam': Operation not applicable </pre><p> This happens when: </p> <ul><li>Building on solaris </li><li>Using the gcc toolset (unsure whether this is related) </li><li>umask is set to 002 (works fine with 022) </li><li>The GNU version of "cp" is the first one found in PATH </li><li>That version of "cp" was built against a new enough version of coreutils </li></ul><p> I was able to work around the problem like this: </p> <pre class="wiki">mkdir -p /tmp/dirty_hack cd /tmp/dirty_hack ln -s /usr/bin/cp PATH=/tmp/dirty_hack:${PATH} ./bootstrap.sh ...bootstrap flags... PATH=/tmp/dirty_hack:${PATH} ./bjam ...bjam flags... </pre><p> At a minimum it might be a good idea to allow a configurable variable akin to JAMSHELL for what string to use to copy files &amp; preserve permissions. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12784 Trac 1.4.3 anonymous Tue, 24 Jan 2017 19:54:29 GMT <link>https://svn.boost.org/trac10/ticket/12784#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12784#comment:1</guid> <description> <p> I forgot to note: the permissions issue is a bug in coreutils. The requested enhancement in boost is that there's no built-in mechanism to override what executable is used to copy. The dirty hack I used was the only means I had to get /usr/bin/cp into the PATH ahead of /opt/csw/gnu/cp without allowing anything else in /usr/bin to override stuff in /opt/csw/gnu. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 24 Jan 2017 19:58:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12784#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12784#comment:2</guid> <description> <p> ... and I said "tmpfs" in the subject but "df" reports that /tmp is swap; I'm not sure if that's a file system and if not how to determine what file system it's really using. </p> </description> <category>Ticket</category> </item> </channel> </rss>