mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-5925) Building Mesos in Docker Beta on OS X fails - tar issue in Makefile
Date Sat, 13 Aug 2016 20:47:20 GMT

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

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

Github user radekg commented on the issue:

    https://github.com/apache/mesos/pull/153
  
    @haosdent:
    
    ```
    [rad] Downloads $ uname -a
    Darwin moan.fttx-di01-b07.german-fiber.net 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb
26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
    [rad] Downloads $ ls -la | grep zookeeper
    -rw-r--r--@   1 rad  staff    22261552 Jun  7 16:57 zookeeper-3.4.8.tar.gz
    [rad] Downloads $ tar xvf zookeeper-3.4.8.tar.gz --no-same-owner
    x zookeeper-3.4.8/
    x zookeeper-3.4.8/zookeeper-3.4.8.jar.md5
    x zookeeper-3.4.8/zookeeper-3.4.8.jar.asc
    x zookeeper-3.4.8/zookeeper-3.4.8.jar
    x zookeeper-3.4.8/contrib/
    x zookeeper-3.4.8/contrib/ZooInspector/
    x zookeeper-3.4.8/contrib/ZooInspector/icons/
    x zookeeper-3.4.8/contrib/ZooInspector/icons/launch_run.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/save_edit.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/new_con.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/search_prev.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/file_obj.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/launch_stop.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/jspdecl.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/fldr_obj.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/refresh.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/info_obj.gif
    x zookeeper-3.4.8/contrib/ZooInspector/icons/search_next.gif
    ...
    [rad] Downloads $ ls -la | grep zookeeper
    drwxr-xr-x@  22 rad  staff         748 Feb  6  2016 zookeeper-3.4.8
    -rw-r--r--@   1 rad  staff    22261552 Jun  7 16:57 zookeeper-3.4.8.tar.gz
    ```
    
    @tillt I'm all for fixing this in docker, the only thing that worries me is the amount
of time it takes docker to fix this (if this is a bug and not a _feature_ of the new Docker
for mac). The `--no-same-owner` option has zero impact on anything and works fine in every
case. The patch does not break anything. It seems that the tar option was designed specifically
for such situations, why not to take advantage of it and have the `Makefile` working in every
situation and report to docker that the problem exists. Thoughts?


> 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)

Mime
View raw message