-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mingw should require m4 #9172
mingw should require m4 #9172
Conversation
This comment has been minimized.
This comment has been minimized.
7c02a19
All green in build 2 (
|
Added a fix to #9229 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tried consuming this locally over an Artifactory server?
I.e build on one PC and try to consume from another with a different layout/folders
@@ -307,10 +311,4 @@ def package_info(self): | |||
self.env_info.STRIP = prefix + "strip" | |||
self.env_info.GCOV = prefix + "gcov" | |||
self.env_info.RC = prefix + "windres" | |||
# Symlinks cannot be created in package step, otherwise the link target is wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait the old comment said this was not possible 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not possible because the links were absolute.
To your question above, it does work consuming from an Artifactory server.
self.run("ln -s {} {}".format(os.path.join(os.curdir, self._target_tag), | ||
os.path.join(self.package_folder, 'mingw'))) | ||
self.run("ln -s {} {}".format(os.path.join(os.curdir, 'lib'), | ||
os.path.join(self.package_folder, self._target_tag, 'lib64'))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not using tools.fix_symlinks()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just in case, calling os.symlink
should be more portable than ln -s
command line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tools.fix_symlinks()
doesn't work:
ERROR: The file is a broken symlink, verify that you are packaging the needed destination files: '/home/conan/.conan/data/mingw-w64/8.0.2/_/_/package/4cfe33ba23f3b0106f09220780349c6834f3da6e/lib/libcc1.so.0'.You can skip this check adjusting the 'general.skip_broken_symlinks_check' at the conan.conf file.
the link is generated relative to the package folder and not the link itself:
ls -l /home/conan/.conan/data/mingw-w64/8.0.2/_/_/package/4cfe33ba23f3b0106f09220780349c6834f3da6e/lib/libcc1.so.0
lrwxrwxrwx 1 conan 1001 19 Feb 7 08:24 /home/conan/.conan/data/mingw-w64/8.0.2/_/_/package/4cfe33ba23f3b0106f09220780349c6834f3da6e/lib/libcc1.so.0 -> lib/libcc1.so.0.0.0
Specify library name and version: mingw-w64/8.0.2
closes #9170
conan-center hook activated.