question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Symbolic links to directories not preserved when exporting

See original GitHub issue

Hello,

I’m trying to make a recipe to build Qt5 for macOS and build the modules as frameworks. Everything works perfectly when they are built and used locally. However, if I upload the package to the server, the package is not usable on any machine that will pull this package.

My feeling is that the export of the package is not preserving the symbolic links to directories (which are fundamental in frameworks).

For instance, under QtCore.framework, on the build machine I have:

lrwxr-xr-x  1 atussiot  staff    24B Apr 21 16:06 Headers@ -> Versions/Current/Headers
lrwxr-xr-x  1 atussiot  staff    23B Apr 21 16:06 QtCore@ -> Versions/Current/QtCore
-rw-r--r--  1 atussiot  staff   1.2K Apr 21 16:06 QtCore.prl
lrwxr-xr-x  1 atussiot  staff    26B Apr 21 16:06 Resources@ -> Versions/Current/Resources
drwxr-xr-x  4 atussiot  staff   136B Apr 21 16:06 Versions/

while in the same package downloaded from the server I get (only the link to the binary survives):

lrwxr-xr-x  1 jenkins  staff    23 Apr 20 16:11 QtCore -> Versions/Current/QtCore
-rw-r--r--  1 jenkins  staff  1194 Jan  1  1970 QtCore.prl
drwxr-xr-x  3 jenkins  staff   102 Apr 20 16:11 Versions

This causes CMake to fail in our project:

The imported target “Qt5::Core” references the file “/Users/jenkins/.conan/data/Qt5/5.6.2-0/pix4d/testing/package/7586e5a72612387c5beb630c8ff07f1a397d08b6/lib/QtCore.framework/Headers” but this file does not exist.

I saw that the PR #947 addressed a similar issue. But somehow it doesn’t seem to apply to links to directory?

I also checked the conanmanifest.txt and the missing links are not referenced there, perhaps the root cause is that their hashes cannot be computed? Or am I missing something?

Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
atussiotcommented, Jun 7, 2017

Hi @memsharded!

Sorry for the late reply, I will give it a try today and let you know how it goes!

1reaction
atussiotcommented, May 17, 2017

Great news, thank you very much! Looking forward to testing it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Symbolic Links in DIRECTORY Objects not permitted with ...
If the parameter NOLOGFILE=YES is used, the export seems to start, but it fails after the start. But the dump file is created....
Read more >
Behavior Change in Oracle 18c/19c: No symbolic links for ...
Afterwards, I will try to use this directory for Data Pump during a simple export. expdp system/oracle full=Y directory=DPDIR dumpfile=expdp19c.
Read more >
Create symlink on a samba exported linux directory from ...
Windows machine -> mounts /data/directory at j: (net use j: \\fooserver\directory). The question is: is it possible to create a symlink from ...
Read more >
shutil — High-level file operations — Python 3.11.1 ...
Delete an entire directory tree; path must point to a directory (but not a symbolic link to a directory). If ignore_errors is true,...
Read more >
How to make symbolic links (widelinks) work for CIFS clients ...
If a symbolic link is absolute, or points to a different export, ... as a simple directory to the CIFS client, and not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found