Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661910 - media-gfx/curaengine-3.4.1 Error copying directory from "/var/tmp/portage/media-gfx/curaengine-3.4.1/work/CuraEngine-3.4.1/resources" to "/var/tmp/portage/media-gfx/curaengine-3.4.1/work/curaengine-3.4.1_build".
Summary: media-gfx/curaengine-3.4.1 Error copying directory from "/var/tmp/portage/med...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-07-23 17:35 UTC by vizoster
Modified: 2020-10-11 13:56 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge--info.txt,5.99 KB, text/plain)
2018-07-23 17:35 UTC, vizoster
Details
build.log (build.log,75.17 KB, application/octet-stream)
2018-07-25 15:28 UTC, vizoster
Details
Patch for curaengine-3.4.1 (CuraEngine-3.4.1.patch,576 bytes, patch)
2018-07-31 13:08 UTC, Kjell Claesson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vizoster 2018-07-23 17:35:28 UTC
Created attachment 540662 [details]
emerge-info.txt

Error copying directory from "/var/tmp/portage/media-gfx/curaengine-3.4.1/work/CuraEngine-3.4.1/resources" to "/var/tmp/portage/media-gfx/curaengine-3.4.1/work/curaengine-3.4.1_build".
Comment 1 Amy Liffey gentoo-dev 2018-07-24 16:47:37 UTC
Can you please submit the full build log?

Thank you
Comment 2 Aweal 2018-07-25 09:21:32 UTC
https://paste.pound-python.org/show/TZ9WtDKN5DrQLtZBlLe6/

cannot to create attach:


Request Timeout

Server timeout waiting for the HTTP request from the client.
Apache Server at bugs.gentoo.org Port 443
Comment 3 vizoster 2018-07-25 15:28:49 UTC
Created attachment 541012 [details]
build.log
Comment 4 Kjell Claesson 2018-07-31 13:08:51 UTC
Created attachment 541862 [details, diff]
Patch for curaengine-3.4.1

Hi.
Something in the cmake-utils_src_configure trigger the add_custom_command in
the CMakeLists.txt.

By removing it it builds ok.

Place patch in /etc/portage/patches/media-gfx/curaengine-3.4.1/ and emerge.

Regards
Kjell Claesson
Comment 5 maurerpe 2018-08-05 16:04:42 UTC
I can confirm both that the issue exists on my machine and that the supplied patch fixes the issue.

The reason why the custom command fails is that the resources are distributed as part of cura, not curaengine so the source directory in the copy does not exist.

I did not investigate why the custom command is triggered, as noted by Kjell Claesson.
Comment 6 Michael Perlov 2018-08-06 09:24:42 UTC
This custom command been removed from upstream:

https://github.com/Ultimaker/CuraEngine/commit/5aad55bf67e52ce5bdb27a3925af8a4cab441b38#diff-af3b638bc2a3e6c650974192a53c7291

Seems like tarball been changed somehow after 3.4.1 tag, because I've compiled this version without problems some time ago.
Comment 7 Michael Perlov 2018-08-06 09:39:01 UTC
It's a cmake 3.12.0

Downgrading to dev-util/cmake-3.11.4-r1 fixed the issue.
Comment 8 Michael Perlov 2018-08-06 09:42:04 UTC
The cmake(1) -E copy_directory tool now fails when the source directory does not exist. Previously it succeeded by creating an empty destination directory.

https://cmake.org/cmake/help/latest/release/3.12.html
Comment 9 Amy Liffey gentoo-dev 2018-08-06 11:20:19 UTC
So can you confirm that the patch here works fine for new cmake and does not cause any further problems?

I am in testing stage now.
Comment 10 Michael Perlov 2018-08-06 11:57:48 UTC
Yes, I used it as user patch and compiled on latest cmake.
Comment 11 Hector Martin 2018-09-02 16:43:27 UTC
Just hit this here too. Applying the patch indeed fixes the issue. Can we get a revbump with the patch?
Comment 12 Dennis Lamm gentoo-dev 2020-10-11 10:32:00 UTC
Fixed upstream with commit 'Remove outdated copy of command_line_settings.json' from 18.06.2018 on master branch - https://github.com/Ultimaker/CuraEngine/commit/5aad55bf67e52ce5bdb27a3925af8a4cab441b38#diff-af3b638bc2a3e6c650974192a53c7291 therfore major releases after 3.x are not affected.