[ 
https://issues.apache.org/jira/browse/MESOS-5925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420215#comment-15420215
 ] 

ASF GitHub Bot commented on MESOS-5925:
---------------------------------------

GitHub user haosdent opened a pull request:

    https://github.com/apache/mesos/pull/158

    Fixed MESOS-5925 Building Mesos in Docker Beta on OS X

    * Replaced gmock-1.7.0.tar.gz with a correct permissions version.
    * Replaced gperftools-2.5.tar.gz with a correct permissions version.
    
    Because I found upload binary changes does not work in 
https://reviews.apache.org/r/51079/ and  https://reviews.apache.org/r/51080/,  
I open this pull request.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/haosdent/mesos MESOS-5925

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/mesos/pull/158.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #158
    
----
commit fc1a27c7e5b30835f1750dce0915814d080559ab
Author: Haosdent Huang <haosd...@gmail.com>
Date:   2016-08-14T04:20:00Z

    Replaced gmock-1.7.0.tar.gz with a correct permissions version.
    
    Some files' permissions in gmock-1.7.0.tar.gz are '0444/-r--r--r--',
    which means owner don't have write permission on them. This breaks the
    build of Mesos since Docker 1.12 on MacOS. This patch packaged
    gmock-1.7.0.tar.gz with correct permissions.
    
    Review: https://reviews.apache.org/r/51079

commit a34f189015d7f964af9fa5378beda258f9c315f0
Author: Haosdent Huang <haosd...@gmail.com>
Date:   2016-08-14T04:30:11Z

    Replaced gperftools-2.5.tar.gz with a correct permissions version.
    
    Some files' permissions in gperftools-2.5.tar.gz are
    '0444/-r--r--r--', which means owner don't have write permission on
    them. This breaks the build of Mesos since Docker 1.12 on MacOS. This
    patch packaged gperftools-2.5.tar.gz with correct permissions.
    
    Review: https://reviews.apache.org/r/51080

----


> Building Mesos in Docker Beta on OS X fails - tar issue in Makefile
> -------------------------------------------------------------------
>
>                 Key: MESOS-5925
>                 URL: https://issues.apache.org/jira/browse/MESOS-5925
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>            Reporter: Radoslaw Gruchalski
>
> I am building Mesos from sources using Docker Beta OS X. I have hit an issue 
> today while trying to build the following versions:
> - master
> - 1.0.0
> - 0.28.2
> but this problem will most likely apply to any version where this line: 
> https://github.com/apache/mesos/blame/master/3rdparty/Makefile.am#L132 is in 
> effect.
> The way I'm building:
> I have the Mesos sources locally on the disk, I copy the sources to a *build 
> temp source* directory, start the container and attach the *build temp 
> source* as a volume to the docker container. Wnen executing the build with 
> mesos-deb-packaging, I hit the following problem:
> {noformat}
> Making all in libprocess
> make[3]: Entering directory `/mesos-src/build/3rdparty/libprocess'
> Making all in 3rdparty
> make[4]: Entering directory `/mesos-src/build/3rdparty/libprocess/3rdparty'
> gzip -d -c 
> ../../../../3rdparty/libprocess/3rdparty/ry-http-parser-1c3624a.tar.gz | tar 
> xf -
> test ! -e 
> ../../../../3rdparty/libprocess/3rdparty/ry-http-parser-1c3624a.patch || 
> patch -d ry-http-parser-1c3624a -p1 
> <../../../../3rdparty/libprocess/3rdparty/ry-http-parser-1c3624a.patch
> touch ry-http-parser-1c3624a-stamp
> gzip -d -c ../../../../3rdparty/libprocess/3rdparty/gmock-1.7.0.tar.gz | tar 
> xf -
> tar: gmock-1.7.0/CHANGES: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/CMakeLists.txt: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/configure.ac: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/CONTRIBUTORS: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-actions.h: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-cardinalities.h: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-generated-actions.h: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-generated-actions.h.pump: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-generated-function-mockers.h: Cannot 
> change ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-generated-function-mockers.h.pump: 
> Cannot change ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-generated-matchers.h: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-generated-matchers.h.pump: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-generated-nice-strict.h: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-generated-nice-strict.h.pump: Cannot 
> change ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-matchers.h: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-more-actions.h: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-more-matchers.h: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock-spec-builders.h: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/gmock.h: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h: 
> Cannot change ownership to uid 501, gid 10: Permission denied
> tar: 
> gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h.pump: 
> Cannot change ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/internal/gmock-internal-utils.h: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/include/gmock/internal/gmock-port.h: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/LICENSE: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/make/Makefile: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/Makefile.am: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/msvc/2005/gmock.sln: Cannot change ownership to uid 501, gid 
> 10: Permission denied
> tar: gmock-1.7.0/msvc/2005/gmock.vcproj: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/msvc/2005/gmock_config.vsprops: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/msvc/2005/gmock_main.vcproj: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/msvc/2005/gmock_test.vcproj: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/msvc/2010/gmock.sln: Cannot change ownership to uid 501, gid 
> 10: Permission denied
> tar: gmock-1.7.0/msvc/2010/gmock.vcxproj: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/msvc/2010/gmock_config.props: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/msvc/2010/gmock_main.vcxproj: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/msvc/2010/gmock_test.vcxproj: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/README: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/scripts/fuse_gmock_files.py: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/cpp/__init__.py: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/cpp/ast.py: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/cpp/gmock_class.py: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/cpp/keywords.py: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/cpp/tokenize.py: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/cpp/utils.py: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/gmock_gen.py: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/LICENSE: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/README: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/generator/README.cppclean: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/scripts/gmock-config.in: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/src/gmock-all.cc: Cannot change ownership to uid 501, gid 
> 10: Permission denied
> tar: gmock-1.7.0/src/gmock-cardinalities.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/src/gmock-internal-utils.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/src/gmock-matchers.cc: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/src/gmock-spec-builders.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/src/gmock.cc: Cannot change ownership to uid 501, gid 10: 
> Permission denied
> tar: gmock-1.7.0/src/gmock_main.cc: Cannot change ownership to uid 501, gid 
> 10: Permission denied
> tar: gmock-1.7.0/test/gmock-actions_test.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-cardinalities_test.cc: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-generated-actions_test.cc: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-generated-function-mockers_test.cc: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-generated-internal-utils_test.cc: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-generated-matchers_test.cc: Cannot change 
> ownership to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-internal-utils_test.cc: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-matchers_test.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-more-actions_test.cc: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-nice-strict_test.cc: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-port_test.cc: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock-spec-builders_test.cc: Cannot change ownership to 
> uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_all_test.cc: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_ex_test.cc: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_leak_test.py: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_leak_test_.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_link2_test.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_link_test.cc: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_link_test.h: Cannot change ownership to uid 501, 
> gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_output_test.py: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_output_test_.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_output_test_golden.txt: Cannot change ownership 
> to uid 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_stress_test.cc: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: gmock-1.7.0/test/gmock_test.cc: Cannot change ownership to uid 501, gid 
> 10: Permission denied
> tar: gmock-1.7.0/test/gmock_test_utils.py: Cannot change ownership to uid 
> 501, gid 10: Permission denied
> tar: Exiting with failure status due to previous errors
> make[4]: *** [gmock-1.7.0-stamp] Error 2
> make[4]: Leaving directory `/mesos-src/build/3rdparty/libprocess/3rdparty'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/mesos-src/build/3rdparty/libprocess'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/mesos-src/build/3rdparty'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/mesos-src/build/3rdparty'
> make: *** [all-recursive] Error 1
> {noformat}
> I do not know where the problem is exactly. I can only assume this is 
> something caused by Docker itself, I'm using 1.12.0-rc4-beta20 (build: 
> 10404). For sure, the build worked with previous beta with Docker 1.11.x. 
> However, what I found out is that if I add {{--no-same-owner}} to the {{tar}} 
> command, the build works.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to