Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688546 - dev-ruby/metasploit-model-2.0.4 - /usr/bin/ruby24 -S bundle install --local: sandbox violation in /usr/lib64/ruby/gems/2.4.0/bundler.lock
Summary: dev-ruby/metasploit-model-2.0.4 - /usr/bin/ruby24 -S bundle install --local: ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-23 10:23 UTC by lord_brookie1
Modified: 2019-09-23 17:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,3.07 KB, text/plain)
2019-06-23 10:23 UTC, lord_brookie1
Details
This is the exit of emerge --info (metasploit-model-2.0.4.txt,17.41 KB, text/plain)
2019-06-23 10:26 UTC, lord_brookie1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lord_brookie1 2019-06-23 10:23:11 UTC
Created attachment 580558 [details]
build.log

I have tried to compile the software "metasploit" but when compiling some of its dependencies it generates an error, it can not continue. The dependencies with which I have had problems are: dev-ruby/packetfu-1.1.13, dev-ruby/metasploit-model-2.0.4 and dev-ruby/pg_array_parser-0.0.9-r2.
Comment 1 lord_brookie1 2019-06-23 10:26:21 UTC
Created attachment 580560 [details]
This is the exit of emerge --info
Comment 2 Aleksandr K. 2019-07-30 07:27:57 UTC
Installing net-analyzer/metasploit-4.17.21-r5::gentoo got same error:
...
>>> Preparing source in /var/tmp/portage/net-analyzer/metasploit-4.17.21-r5/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby24 ...
 * Running prepare phase for ruby24 ...
 * ACCESS DENIED:  open_wr:      /usr/lib64/ruby/gems/2.4.0/bundler.lock
...
>>> Failed to emerge net-analyzer/metasploit-4.17.21-r5
Comment 3 Fulgurance 2019-08-12 21:52:24 UTC
I have the same error:

>>> Emerging (4 of 16) dev-ruby/metasploit-model-2.0.4::gentoo
 * metasploit-model-2.0.4.gem BLAKE2B SHA512 size ;-) ...                                                                     [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file... ...                                                                                                 [ ok ]
 * Uncompressing metadata ...                                                                                                 [ ok ]
 * Unpacking data.tar.gz ...                                                                                                  [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-ruby/metasploit-model-2.0.4/work
>>> Preparing source in /var/tmp/portage/dev-ruby/metasploit-model-2.0.4/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby24 ...
 * Running prepare phase for ruby24 ...
fatal: not a git repository (or any parent up to mount point /var)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 * ACCESS DENIED:  open_wr:      /usr/lib64/ruby/gems/2.4.0/bundler.lock
Resolving dependencies...
Using rake 12.3.3
Following files may not be writable, so sudo is needed:
  /usr/bin
  /usr/lib64/ruby/gems/2.4.0
  /usr/lib64/ruby/gems/2.4.0/gems
  /usr/lib64/ruby/gems/2.4.0/specifications
Using i18n 0.7.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.11.1
Using builder 3.2.3
Using erubis 2.7.0
Using nokogiri 1.10.3
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.8
Using crass 1.0.4
Using loofah 2.2.3
Using rails-html-sanitizer 1.0.4
Using actionview 4.2.11.1
Using rack 1.6.11
Using rack-test 0.6.3
Using actionpack 4.2.11.1
Using activemodel 4.2.11.1
Using bundler 1.17.3
Using thor 0.20.3
Using railties 4.2.11.1
Using metasploit-model 2.0.4 from source at `.`
Bundle complete! 1 Gemfile dependency, 23 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
fatal: not a git repository (or any parent up to mount point /var)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
The Gemfile's dependencies are satisfied
>>> Source prepared.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-25634.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /usr/lib64/ruby/gems/2.4.0/bundler.lock
A: /usr/lib64/ruby/gems/2.4.0/bundler.lock
R: /usr/lib64/ruby/gems/2.4.0/bundler.lock
C: /usr/bin/ruby24 -S bundle install --local 
 * --------------------------------------------------------------------------------

>>> Failed to emerge dev-ruby/metasploit-model-2.0.4, Log file:

>>>  '/var/tmp/portage/dev-ruby/metasploit-model-2.0.4/temp/build.log'
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2019-08-23 20:10:35 UTC
it seems bundler 1.17 is created a nice undocumented new lock file.  I'll ask upstream but the easy solution is to use bundler 1.16
Comment 5 Fulgurance 2019-09-07 06:46:43 UTC
(In reply to Rick Farina (Zero_Chaos) from comment #4)
> it seems bundler 1.17 is created a nice undocumented new lock file.  I'll
> ask upstream but the easy solution is to use bundler 1.16

Same problem with 1.16 version...

>>> Emerging (1 of 37) dev-ruby/bundler-1.16.6::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * bundler-1.16.6.gem BLAKE2B SHA512 size ;-) ...                                                                             [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file... ...                                                                                                 [ ok ]
 * Uncompressing metadata ...                                                                                                 [ ok ]
 * Unpacking data.tar.gz ...                                                                                                  [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-ruby/bundler-1.16.6/work
>>> Preparing source in /var/tmp/portage/dev-ruby/bundler-1.16.6/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby24 ...
 * Running source copy phase for ruby25 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/bundler-1.16.6/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/bundler-1.16.6/work ...
 * Running compile phase for all ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-ruby/bundler-1.16.6

>>> Install dev-ruby/bundler-1.16.6 into /var/tmp/portage/dev-ruby/bundler-1.16.6/image/
 * Running install phase for ruby24 ...
 * Running install phase for ruby25 ...
 * Running install phase for all ...
 * Running check install phase for ruby24 ...
 * Running check install phase for ruby25 ...
>>> Completed installing dev-ruby/bundler-1.16.6 into /var/tmp/portage/dev-ruby/bundler-1.16.6/image/

 * Final size of build directory: 2420 KiB (2.3 MiB)
 * Final size of installed tree:  4016 KiB (3.9 MiB)


>>> Installing (1 of 37) dev-ruby/bundler-1.16.6::gentoo
>>> Setting SELinux security labels

>>> Emerging (2 of 37) dev-ruby/metasploit-model-2.0.4::gentoo
 * metasploit-model-2.0.4.gem BLAKE2B SHA512 size ;-) ...                                                                     [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file... ...                                                                                                 [ ok ]
 * Uncompressing metadata ...                                                                                                 [ ok ]
 * Unpacking data.tar.gz ...                                                                                                  [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-ruby/metasploit-model-2.0.4/work
>>> Preparing source in /var/tmp/portage/dev-ruby/metasploit-model-2.0.4/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby24 ...
 * Running prepare phase for ruby24 ...
fatal: not a git repository (or any parent up to mount point /var)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 * ACCESS DENIED:  open_wr:      /usr/lib64/ruby/gems/2.4.0/bundler.lock
Resolving dependencies...
Using rake 12.3.3
Using i18n 0.7.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.11.1
Using builder 3.2.3
Using erubis 2.7.0
Using nokogiri 1.10.4
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.8
Using crass 1.0.4
Using loofah 2.2.3
Using rails-html-sanitizer 1.2.0
Using actionview 4.2.11.1
Using rack 1.6.11
Using rack-test 0.6.3
Using actionpack 4.2.11.1
Using activemodel 4.2.11.1
Using bundler 1.16.6
Using thor 0.20.3
Using railties 4.2.11.1
Using metasploit-model 2.0.4 from source at `.`
Bundle complete! 1 Gemfile dependency, 23 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
fatal: not a git repository (or any parent up to mount point /var)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
The Gemfile's dependencies are satisfied
>>> Source prepared.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-27099.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /usr/lib64/ruby/gems/2.4.0/bundler.lock
A: /usr/lib64/ruby/gems/2.4.0/bundler.lock
R: /usr/lib64/ruby/gems/2.4.0/bundler.lock
C: /usr/bin/ruby24 -S bundle install --local 
 * --------------------------------------------------------------------------------

>>> Failed to emerge dev-ruby/metasploit-model-2.0.4, Log file:

>>>  '/var/tmp/portage/dev-ruby/metasploit-model-2.0.4/temp/build.log'

 * GNU info directory index is up-to-date.
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information
Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2019-09-23 17:38:12 UTC
I think it may be limited to some specific version of bundler, I can't reproduce it with 1.17.3. Can you?