Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 725882 - xfce-base/exo-4.15.1: error in install phase: "File exists" (random)
Summary: xfce-base/exo-4.15.1: error in install phase: "File exists" (random)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-28 12:50 UTC by Holger Hoffstätte
Modified: 2020-06-22 15:36 UTC (History)
3 users (show)

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


Attachments
log of failed installation (exo.log,3.25 KB, text/x-log)
2020-05-28 12:53 UTC, Holger Hoffstätte
Details
emerge --info (emerge-info.txt,6.67 KB, text/plain)
2020-05-28 16:13 UTC, Holger Hoffstätte
Details
build log (no such file) (exo,117.15 KB, text/plain)
2020-06-22 14:31 UTC, Davide Palma
Details
emerge --info (Davide) (info,8.37 KB, text/plain)
2020-06-22 14:32 UTC, Davide Palma
Details
build log (variation 2) (exo2,117.44 KB, text/plain)
2020-06-22 14:36 UTC, Davide Palma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2020-05-28 12:50:23 UTC
Trying to update to exo-4.15.1 fails in the install phase with e.g.:
/usr/bin/install: cannot create regular file '/tmp/portage/xfce-base/exo-4.15.1/image/usr/include/exo-2/exo/exo-binding.h': File exists


Reproducible: Always

Steps to Reproduce:
1. try to emerge exo-4.15.1
2. probably failure
3.
Actual Results:  
The exact failure varies between runs; see below for explanation.

Expected Results:  
Successful installation

This turned out to be a problem with my MAKEOPTS"-j8 -l8". emerging with MAKEOPTS=-j1 lets it repeatably install successfully. It seems the upstream Makefile trips over its own feet.
Comment 1 Holger Hoffstätte 2020-05-28 12:53:11 UTC
Created attachment 642366 [details]
log of failed installation
Comment 2 Jonas Stein gentoo-dev 2020-05-28 15:49:55 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 3 Holger Hoffstätte 2020-05-28 16:13:32 UTC
Created attachment 642374 [details]
emerge --info
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-29 06:08:33 UTC
Hmm, my guess is that they have leftover duplicate libexo_headers.
Comment 5 younky.yang 2020-05-29 08:59:14 UTC
Seems we have to wait for the upstream to fix it.
Comment 6 Attila Tóth 2020-06-03 06:57:17 UTC
https://gitlab.xfce.org/xfce/exo/-/commit/d3f3232eb53a052711029d2fafc36e23da971b35(In reply to younky.yang from comment #5)
> Seems we have to wait for the upstream to fix it.

https://gitlab.xfce.org/xfce/exo/-/commit/d3f3232eb53a052711029d2fafc36e23da971b35

Works for me.
Comment 7 Larry the Git Cow gentoo-dev 2020-06-03 10:24:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=358fa544c31daa667725a389bced6d6c8a536fe1

commit 358fa544c31daa667725a389bced6d6c8a536fe1
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-06-03 10:11:24 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-06-03 10:23:59 +0000

    xfce-base/exo: Backport parallel make fix
    
    Closes: https://bugs.gentoo.org/725882
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 xfce-base/exo/exo-4.15.1.ebuild                    |  4 ++
 xfce-base/exo/files/exo-4.15.1-parallel-make.patch | 66 ++++++++++++++++++++++
 2 files changed, 70 insertions(+)
Comment 8 Petrus 2020-06-16 11:51:05 UTC
Looks like the problem still exists.

>>> Install xfce-base/exo-4.15.1 into /var/tmp/portage/xfce-base/exo-4.15.1/image
make -j9 DESTDIR=/var/tmp/portage/xfce-base/exo-4.15.1/image install
Making install in exo
make[1]: Entering directory '/var/tmp/portage/xfce-base/exo-4.15.1/work/exo-4.15.1/exo'
make  install-am
make[2]: Entering directory '/var/tmp/portage/xfce-base/exo-4.15.1/work/exo-4.15.1/exo'
make[3]: Entering directory '/var/tmp/portage/xfce-base/exo-4.15.1/work/exo-4.15.1/exo'
 /bin/mkdir -p '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/lib64'
 /bin/mkdir -p '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/include/exo-2/exo'
 /bin/mkdir -p '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/include/exo-2/exo'
 /bin/mkdir -p '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/lib64/pkgconfig'
 /bin/sh ../libtool   --mode=install /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c   libexo-2.la '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/lib64'
 /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c -m 644 exo.h exo-binding.h exo-config.h exo-execute.h exo-gdk-pixbuf-extensions.h exo-gtk-extensions.h exo-gobject-extensions.h exo-job.h exo-simple-job.h exo-string.h exo-utils.h exo-icon-chooser-dialog.h exo-icon-chooser-model.h exo-icon-view.h exo-enum-types.h exo-cell-renderer-icon.h exo-thumbnail.h exo-thumbnail-preview.h exo-tree-view.h '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/include/exo-2/exo'
 /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c -m 644 exo-2.pc '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/lib64/pkgconfig'
 /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c -m 644 exo-enum-types.h exo-binding.h exo-cell-renderer-icon.h exo-execute.h exo-gdk-pixbuf-extensions.h exo-gtk-extensions.h exo-gobject-extensions.h exo-icon-chooser-dialog.h exo-icon-view.h exo-job.h exo-simple-job.h exo-string.h exo-tree-view.h exo-utils.h exo.h exo-config.h '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/include/exo-2/exo'
/usr/bin/install: cannot change permissions of '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/include/exo-2/exo/exo-job.h': No such file or directory
/usr/bin/install: cannot change permissions of '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/include/exo-2/exo/exo-simple-job.h': No such file or directory
/usr/bin/install: cannot create regular file '/var/tmp/portage/xfce-base/exo-4.15.1/image/usr/include/exo-2/exo/exo-utils.h': File exists
make[3]: *** [Makefile:1096: install-libexoincludeHEADERS] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: install: /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c .libs/libexo-2.so.0.1.0 /var/tmp/portage/xfce-base/exo-4.15.1/image/usr/lib64/libexo-2.so.0.1.0
libtool: install: (cd /var/tmp/portage/xfce-base/exo-4.15.1/image/usr/lib64 && { ln -s -f libexo-2.so.0.1.0 libexo-2.so.0 || { rm -f libexo-2.so.0 && ln -s libexo-2.so.0.1.0 libexo-2.so.0; }; })
libtool: install: (cd /var/tmp/portage/xfce-base/exo-4.15.1/image/usr/lib64 && { ln -s -f libexo-2.so.0.1.0 libexo-2.so || { rm -f libexo-2.so && ln -s libexo-2.so.0.1.0 libexo-2.so; }; })
libtool: install: /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c .libs/libexo-2.lai /var/tmp/portage/xfce-base/exo-4.15.1/image/usr/lib64/libexo-2.la
libtool: warning: remember to run 'libtool --finish /usr/lib64'
make[3]: Leaving directory '/var/tmp/portage/xfce-base/exo-4.15.1/work/exo-4.15.1/exo'
make[2]: *** [Makefile:1383: install-am] Error 2
make[2]: Leaving directory '/var/tmp/portage/xfce-base/exo-4.15.1/work/exo-4.15.1/exo'
make[1]: *** [Makefile:1377: install] Error 2
make[1]: Leaving directory '/var/tmp/portage/xfce-base/exo-4.15.1/work/exo-4.15.1/exo'
make: *** [Makefile:522: install-recursive] Error 1
 * ERROR: xfce-base/exo-4.15.1::gentoo failed (install phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=xfce-base/exo-4.15.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=xfce-base/exo-4.15.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/xfce-base/exo-4.15.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/xfce-base/exo-4.15.1/temp/environment'.
 * Working directory: '/var/tmp/portage/xfce-base/exo-4.15.1/work/exo-4.15.1'
 * S: '/var/tmp/portage/xfce-base/exo-4.15.1/work/exo-4.15.1'
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-06-16 15:10:29 UTC
Please attach the complete build log.
Comment 10 Davide Palma 2020-06-22 14:31:40 UTC
Created attachment 645736 [details]
build log (no such file)
Comment 11 Davide Palma 2020-06-22 14:32:16 UTC
Created attachment 645738 [details]
emerge --info (Davide)
Comment 12 Davide Palma 2020-06-22 14:36:24 UTC
Created attachment 645740 [details]
build log (variation 2)
Comment 13 Davide Palma 2020-06-22 14:41:36 UTC
I'm getting this issue as well. Build succeded on 5th time so I guess it may be difficult to reproduce. The errors can be different (I attached two) but it's always coming from the same install command.
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-06-22 15:19:20 UTC
Ok, I think I found the culprit.  Will commit in a minute.
Comment 15 Attila Tóth 2020-06-22 15:27:38 UTC
(In reply to Davide Palma from comment #13)
> I'm getting this issue as well. Build succeded on 5th time so I guess it may
> be difficult to reproduce. The errors can be different (I attached two) but
> it's always coming from the same install command.

It goes with make -j1.
Comment 16 Larry the Git Cow gentoo-dev 2020-06-22 15:36:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a067e98971fa1155d1d1f56b98e040b7f449f2a

commit 0a067e98971fa1155d1d1f56b98e040b7f449f2a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-06-22 15:35:20 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-06-22 15:35:39 +0000

    xfce-base/exo: Patch Makefile.in too
    
    Closes: https://bugs.gentoo.org/725882
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 xfce-base/exo/files/exo-4.15.1-parallel-make.patch | 153 +++++++++++++++++++++
 1 file changed, 153 insertions(+)