Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790131 - dev-ruby/rcairo-1.17.5 - /.../install: cannot create regular file /.../cairo-1.17.5: File exists
Summary: dev-ruby/rcairo-1.17.5 - /.../install: cannot create regular file /.../cairo-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 790485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-05-14 07:11 UTC by Toralf Förster
Modified: 2021-05-26 05:23 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.00 KB, text/plain)
2021-05-14 07:11 UTC, Toralf Förster
Details
dev-ruby:rcairo-1.17.5:20210513-214314.log (dev-ruby:rcairo-1.17.5:20210513-214314.log,16.59 KB, text/plain)
2021-05-14 07:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,264.35 KB, text/plain)
2021-05-14 07:11 UTC, Toralf Förster
Details
environment (environment,82.22 KB, text/plain)
2021-05-14 07:11 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,17.12 KB, application/x-bzip)
2021-05-14 07:11 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,1.31 KB, application/x-bzip)
2021-05-14 07:11 UTC, Toralf Förster
Details
build.log + emerge --info.txt (build.log-emerge-info.txt,22.05 KB, text/plain)
2021-05-15 12:26 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-14 07:11:25 UTC
/bin/mkdir -p . /var/tmp/portage/dev-ruby/rcairo-1.17.5/image//usr/lib64/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/cairo-1.17.5
/usr/bin/install -c -m 644 ./rb_cairo.h /var/tmp/portage/dev-ruby/rcairo-1.17.5/image//usr/lib64/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/cairo-1.17.5
/usr/bin/install: cannot create regular file '/var/tmp/portage/dev-ruby/rcairo-1.17.5/image//usr/lib64/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/cairo-1.17.5': File exists
exit > .sitearchdir.time
make: *** [Makefile:269: install-headers] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/var/tmp/portage/dev-ruby/rcairo-1.17.5/work/ruby26/rcairo-1.17.5/ext/cairo'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j2-20210510-164836

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-9.3.1
 [3] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.52.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu May 13 20:50:28 UTC 2021

emerge -qpvO dev-ruby/rcairo
[ebuild  N    ] dev-ruby/rcairo-1.17.5  USE="-doc -test" RUBY_TARGETS="ruby26 -ruby25 -ruby27"
Comment 1 Toralf Förster gentoo-dev 2021-05-14 07:11:26 UTC
Created attachment 708267 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-14 07:11:27 UTC
Created attachment 708270 [details]
dev-ruby:rcairo-1.17.5:20210513-214314.log
Comment 3 Toralf Förster gentoo-dev 2021-05-14 07:11:29 UTC
Created attachment 708273 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-05-14 07:11:30 UTC
Created attachment 708276 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-05-14 07:11:32 UTC
Created attachment 708279 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-14 07:11:33 UTC
Created attachment 708282 [details]
logs.tar.bz2
Comment 7 Hans de Graaff gentoo-dev Security 2021-05-15 06:46:57 UTC
I can't reproduce this. I'm wondering if the double slash in this path is perhaps causing issues?

/bin/mkdir -p . /var/tmp/portage/dev-ruby/rcairo-1.17.5/image//usr/lib64/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/cairo-1.17.5

I have now fixed that:

commit f351e3caf8a30634ee07a5a37e07d5a7e37adc2c
Author: Hans de Graaff <graaff@gentoo.org>
Date:   Sat May 15 08:43:40 2021 +0200

    eclass/ruby-fakegem.eclass: remove duplicate / in path
    
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Comment 8 Ionen Wolkens gentoo-dev 2021-05-15 12:26:53 UTC
Created attachment 708756 [details]
build.log + emerge --info.txt

I think it's a race condition, emerged this with MAKEOPTS=-j2 with some variance in cpu load and it finally failed after a few tries.

Attached log was despite the above eclass fix (no more //).
Comment 9 Naohiro Aota gentoo-dev 2021-05-23 06:45:50 UTC
Additional dependency is added to ext/cairo/Makefile by ext/cairo/depend

> install-so: install-headers
> install-headers:
>         $(INSTALL_DATA) $(srcdir)/rb_cairo.h $(RUBYARCHDIR)

OTOH, RUBYARCHDIR is created with:

> install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.time
...
> $(TIMESTAMP_DIR)/.sitearchdir.time:
>        $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)

So, install-headers must explicitly depend on $(TIMESTAMP_DIR)/.sitearchdir.time
Comment 10 Larry the Git Cow gentoo-dev 2021-05-23 08:00:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=196a315c3da76c2d8201eccd8c95b76a06508b5a

commit 196a315c3da76c2d8201eccd8c95b76a06508b5a
Author:     Naohiro Aota <naota@gentoo.org>
AuthorDate: 2021-05-23 07:41:51 +0000
Commit:     Naohiro Aota <naota@gentoo.org>
CommitDate: 2021-05-23 07:59:08 +0000

    dev-ruby/rcairo: fix makefile dependency
    
    Add missing additional dependency to solve make's race issue.
    
    Closes: https://bugs.gentoo.org/790131
    Signed-off-by: Naohiro Aota <naota@gentoo.org>

 dev-ruby/rcairo/rcairo-1.17.5.ebuild | 4 ++++
 1 file changed, 4 insertions(+)
Comment 11 Naohiro Aota gentoo-dev 2021-05-26 05:23:18 UTC
*** Bug 790485 has been marked as a duplicate of this bug. ***