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

msys2: do not the library directory propagate through #5244

Closed
wants to merge 1 commit into from

Conversation

madebr
Copy link
Contributor

@madebr madebr commented Apr 17, 2021

Specify library name and version: msys2/all

When conan-io/conan#8816 gets fixed, this should hide the msys2 library folder.
This is useful to avoid accidentally linking to a msys2 library instead of one from a conan dependency.


  • 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
Copy link
Collaborator

Failure in build 1 (b61be16ede9582151802cfcae85e2b176fbdff94):

  • msys2/20190524@:
    CI failed to create some packages (All logs)

    Logs for packageID 3cbd862cb7a3ea47ed1220dc027f344262d5224f:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MT
    compiler.version=14
    os=Windows
    os_build=Windows
    
      File "c:\python36\lib\shutil.py", line 387, in _rmtree_unsafe
        os.unlink(fullname)
    PermissionError: [WinError 5] Access is denied: 'C:\\J\\w\\BuildSingleReference@5/s\\1e4e9c\\1\\msys64\\usr\\bin\\dirmngr.exe'
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "c:\python36\lib\site-packages\conans\client\command.py", line 2115, in run
        method(args[0][1:])
      File "c:\python36\lib\site-packages\conans\client\command.py", line 531, in install
        lockfile_node_id=args.lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\conan_api.py", line 94, in wrapper
        return f(api, *args, **kwargs)
      File "c:\python36\lib\site-packages\conans\client\conan_api.py", line 560, in install_reference
        lockfile_node_id=lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\manager.py", line 78, in deps_install
        graph_info=graph_info)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 308, in install
        self._build(nodes_by_level, keep_build, root_node, graph_info, remotes, build_mode, update)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 441, in _build
        self._handle_node_cache(node, keep_build, processed_package_refs, remotes)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 504, in _handle_node_cache
        pref = self._build_package(node, output, keep_build, remotes)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 543, in _build_package
        pref = builder.build_package(node, keep_build, self._recorder, remotes)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 194, in build_package
        pref, keep_build, recorder)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 80, in _get_build_folder
        rmdir(build_folder)
      File "c:\python36\lib\site-packages\conans\util\files.py", line 266, in rmdir
        shutil.rmtree(path, onerror=_change_permissions)
      File "c:\python36\lib\shutil.py", line 494, in rmtree
        return _rmtree_unsafe(path, onerror)
      File "c:\python36\lib\shutil.py", line 384, in _rmtree_unsafe
        _rmtree_unsafe(fullname, onerror)
      File "c:\python36\lib\shutil.py", line 384, in _rmtree_unsafe
        _rmtree_unsafe(fullname, onerror)
      File "c:\python36\lib\shutil.py", line 384, in _rmtree_unsafe
        _rmtree_unsafe(fullname, onerror)
      File "c:\python36\lib\shutil.py", line 389, in _rmtree_unsafe
        onerror(os.unlink, fullname, sys.exc_info())
      File "c:\python36\lib\site-packages\conans\util\files.py", line 261, in _change_permissions
        raise OSError("Cannot change permissions for {}! Exception info: {}".format(path, exc_info))
    OSError: Cannot change permissions for C:\J\w\BuildSingleReference@5/s\1e4e9c\1\msys64\usr\bin\dirmngr.exe! Exception info: (<class 'PermissionError'>, PermissionError(13, 'Access is denied'), <traceback object at 0x000002A232630A08>)
    
    7zip/19.00: WARN: Lib folder doesn't exist, can't collect libraries: C:\J\w\BuildSingleReference@5\.conan\data\7zip\19.00\_\_\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187\lib
    [HOOK - conan-center.py] post_package_info(): WARN: [LIBRARY DOES NOT EXIST (KB-H054)] Component 7zip::7zip libdir "lib" does not contain any library
    [HOOK - conan-center.py] post_package_info(): WARN: [LIBRARY DOES NOT EXIST (KB-H054)] Component 7zip::7zip libdir "lib" does not contain any declared library
    msys2/20190524: WARN: Build folder is dirty, removing it: C:\J\w\BuildSingleReference@5/s\1e4e9c\1
    ERROR: Cannot change permissions for C:\J\w\BuildSingleReference@5/s\1e4e9c\1\msys64\usr\bin\dirmngr.exe! Exception info: (<class 'PermissionError'>, PermissionError(13, 'Access is denied'), <traceback object at 0x000002A232630A08>)
    
  • msys2/20161025@:
    CI failed to create some packages (All logs)

    Logs for packageID 3cbd862cb7a3ea47ed1220dc027f344262d5224f:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MT
    compiler.version=14
    os=Windows
    os_build=Windows
    
    error: failed retrieving file 'rcs-5.9.4-1-x86_64.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'rcs-5.9.4-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'rcs-5.9.4-1-x86_64.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'scons-2.5.0-1-any.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'scons-2.5.0-1-any.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'scons-2.5.0-1-any.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'swig-3.0.10-1-x86_64.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'swig-3.0.10-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'swig-3.0.10-1-x86_64.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'texinfo-6.1-1-x86_64.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'texinfo-6.1-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'texinfo-6.1-1-x86_64.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'texinfo-tex-6.1-1-x86_64.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'texinfo-tex-6.1-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'texinfo-tex-6.1-1-x86_64.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'ttyrec-1.0.8-1-x86_64.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'ttyrec-1.0.8-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'ttyrec-1.0.8-1-x86_64.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'unrar-5.3.7-1-x86_64.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'unrar-5.3.7-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'unrar-5.3.7-1-x86_64.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'perl-YAML-Syck-1.29-1-x86_64.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'perl-YAML-Syck-1.29-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'perl-YAML-Syck-1.29-1-x86_64.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'perl-Module-Build-0.4212-1-any.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'perl-Module-Build-0.4212-1-any.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'perl-Module-Build-0.4212-1-any.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'perl-Test-Pod-1.50-1-any.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'perl-Test-Pod-1.50-1-any.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'perl-Test-Pod-1.50-1-any.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'xmlto-0.0.28-1-x86_64.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
    error: failed retrieving file 'xmlto-0.0.28-1-x86_64.pkg.tar.xz' from downloads.sourceforge.net : The requested URL returned error: 404
    error: failed retrieving file 'xmlto-0.0.28-1-x86_64.pkg.tar.xz' from www2.futureware.at : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed to commit transaction (unexpected error)
    msys2/20161025: ERROR: Package '3cbd862cb7a3ea47ed1220dc027f344262d5224f' build failed
    msys2/20161025: WARN: Build folder C:\J\w\BuildSingleReference@3/s\6f4f31\1
    ERROR: msys2/20161025: Error in build() method, line 60
    	self.run('bash -l -c "pacman -S %s --noconfirm"' % package)
    	ConanException: Error 1 while executing bash -l -c "pacman -S base-devel --noconfirm"
    
  • msys2/20200517@:
    CI failed to create some packages (All logs)

    Logs for packageID 3cbd862cb7a3ea47ed1220dc027f344262d5224f:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MT
    compiler.version=14
    os=Windows
    os_build=Windows
    
      File "c:\python36\lib\shutil.py", line 387, in _rmtree_unsafe
        os.unlink(fullname)
    PermissionError: [WinError 5] Access is denied: 'C:\\J\\w\\BuildSingleReference/s\\4a623f\\1\\msys64\\usr\\bin\\dirmngr.exe'
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "c:\python36\lib\site-packages\conans\client\command.py", line 2115, in run
        method(args[0][1:])
      File "c:\python36\lib\site-packages\conans\client\command.py", line 531, in install
        lockfile_node_id=args.lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\conan_api.py", line 94, in wrapper
        return f(api, *args, **kwargs)
      File "c:\python36\lib\site-packages\conans\client\conan_api.py", line 560, in install_reference
        lockfile_node_id=lockfile_node_id)
      File "c:\python36\lib\site-packages\conans\client\manager.py", line 78, in deps_install
        graph_info=graph_info)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 308, in install
        self._build(nodes_by_level, keep_build, root_node, graph_info, remotes, build_mode, update)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 441, in _build
        self._handle_node_cache(node, keep_build, processed_package_refs, remotes)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 504, in _handle_node_cache
        pref = self._build_package(node, output, keep_build, remotes)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 543, in _build_package
        pref = builder.build_package(node, keep_build, self._recorder, remotes)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 194, in build_package
        pref, keep_build, recorder)
      File "c:\python36\lib\site-packages\conans\client\installer.py", line 80, in _get_build_folder
        rmdir(build_folder)
      File "c:\python36\lib\site-packages\conans\util\files.py", line 266, in rmdir
        shutil.rmtree(path, onerror=_change_permissions)
      File "c:\python36\lib\shutil.py", line 494, in rmtree
        return _rmtree_unsafe(path, onerror)
      File "c:\python36\lib\shutil.py", line 384, in _rmtree_unsafe
        _rmtree_unsafe(fullname, onerror)
      File "c:\python36\lib\shutil.py", line 384, in _rmtree_unsafe
        _rmtree_unsafe(fullname, onerror)
      File "c:\python36\lib\shutil.py", line 384, in _rmtree_unsafe
        _rmtree_unsafe(fullname, onerror)
      File "c:\python36\lib\shutil.py", line 389, in _rmtree_unsafe
        onerror(os.unlink, fullname, sys.exc_info())
      File "c:\python36\lib\site-packages\conans\util\files.py", line 261, in _change_permissions
        raise OSError("Cannot change permissions for {}! Exception info: {}".format(path, exc_info))
    OSError: Cannot change permissions for C:\J\w\BuildSingleReference/s\4a623f\1\msys64\usr\bin\dirmngr.exe! Exception info: (<class 'PermissionError'>, PermissionError(13, 'Access is denied'), <traceback object at 0x00000214F0840D08>)
    
    7zip/19.00: WARN: Lib folder doesn't exist, can't collect libraries: C:\J\w\BuildSingleReference\.conan\data\7zip\19.00\_\_\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187\lib
    [HOOK - conan-center.py] post_package_info(): WARN: [LIBRARY DOES NOT EXIST (KB-H054)] Component 7zip::7zip libdir "lib" does not contain any library
    [HOOK - conan-center.py] post_package_info(): WARN: [LIBRARY DOES NOT EXIST (KB-H054)] Component 7zip::7zip libdir "lib" does not contain any declared library
    msys2/20200517: WARN: Build folder is dirty, removing it: C:\J\w\BuildSingleReference/s\4a623f\1
    ERROR: Cannot change permissions for C:\J\w\BuildSingleReference/s\4a623f\1\msys64\usr\bin\dirmngr.exe! Exception info: (<class 'PermissionError'>, PermissionError(13, 'Access is denied'), <traceback object at 0x00000214F0840D08>)
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@ghost
Copy link

ghost commented Apr 17, 2021

I detected other pull requests that are modifying msys2/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@madebr
Copy link
Contributor Author

madebr commented Apr 17, 2021

@uilianries @jgsogo

Is the error CI environment related?

@SSE4
Copy link
Contributor

SSE4 commented Apr 17, 2021

see #4286
in general, there is a problem if running two or more msys installations in parallel on CI.
the only workaround is to use global lock, until we add some special flag (e.g. to config.yml) to limit parallel builds on CI.

@ghost ghost mentioned this pull request Apr 26, 2021
4 tasks
@stale
Copy link

stale bot commented May 27, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added stale and removed stale labels May 27, 2021
@madebr madebr closed this May 27, 2021
@madebr madebr deleted the msys2_nolibdirs branch May 27, 2021 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants