Skip to content
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

Merged
merged 3 commits into from
Feb 7, 2022
Merged

mingw should require m4 #9172

merged 3 commits into from
Feb 7, 2022

Conversation

dvirtz
Copy link
Contributor

@dvirtz dvirtz commented Jan 30, 2022

Specify library name and version: mingw-w64/8.0.2

closes #9170


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot

This comment has been minimized.

@dvirtz dvirtz changed the title mingw should depend on m4 mingw should require m4 Jan 30, 2022
@dvirtz dvirtz marked this pull request as ready for review January 30, 2022 21:30
SSE4
SSE4 previously approved these changes Jan 31, 2022
prince-chrismc
prince-chrismc previously approved these changes Feb 2, 2022
@dvirtz dvirtz dismissed stale reviews from prince-chrismc, SSE4, and ericLemanissier via 7c02a19 February 2, 2022 21:37
@conan-center-bot
Copy link
Collaborator

All green in build 2 (7c02a19e7619b5285a50a956e89bfe1f2a516185):

  • mingw-w64/8.0.2@:
    All packages built successfully! (All logs)

@dvirtz
Copy link
Contributor Author

dvirtz commented Feb 2, 2022

Added a fix to #9229
I hope using relative symlinks is OK.

Copy link
Contributor

@prince-chrismc prince-chrismc left a 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.
Copy link
Contributor

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 🤔

Copy link
Contributor Author

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.

Comment on lines +270 to +273
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')))
Copy link
Contributor

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() ?

Copy link
Contributor

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.

Copy link
Contributor Author

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

@conan-center-bot conan-center-bot merged commit e58db3a into conan-io:master Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[package] mingw-w64/8.0.2: should require m4
5 participants