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

lmdb: conan v2 support #13560

Merged
merged 2 commits into from
Oct 18, 2022
Merged

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Oct 17, 2022

Specify library name and version: lib/1.0

This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks!


  • 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.

jwillikers
jwillikers previously approved these changes Oct 18, 2022
WINDOWS_EXPORT_ALL_SYMBOLS ON
)

include(FindThreads)
target_link_libraries(lmdb PUBLIC ${CMAKE_THREAD_LIBS_INIT})
find_package(Threads REQUIRED)
Copy link
Contributor

@jwillikers jwillikers Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting THREADS_PREFER_PTHREAD_FLAG to true before find_package(Threads ...) is recommended by CMake's documentation.

Copy link
Contributor Author

@SpaceIm SpaceIm Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether it's really required. Most CMakeLists don't add this variable. It's required only if you have to pass -pthread to compiler.

cmake_layout(self)

def requirements(self):
self.requires(self.tested_reference_str)

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def test(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding path but not running any tools? seems a little odd

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_package is listed there

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/conan-io/conan-center-index/pull/13560/files#diff-915867357bc634e76de7fbc27be2cf20a0438634dcaa5a02e711b5780e61867aR84-R86

What is in the bin path that needs to be exposed? Should we not test that it works?

If this is only libraries then the recipe is confusing me

Copy link
Contributor Author

@SpaceIm SpaceIm Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I see what you mean. It's out of scope of this PR, it was not tested before anyway (like almost all CCI recipes actually...).

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
@conan-center-bot
Copy link
Collaborator

All green in build 2 (9dde9b5bf4ede395780aec43e391abbab0574748):

  • lmdb/0.9.29@:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit 85be44d into conan-io:master Oct 18, 2022
@SpaceIm SpaceIm deleted the lmdb-conan-v2 branch October 18, 2022 21:12
planetmarshall added a commit to planetmarshall/conan-center-index that referenced this pull request Sep 3, 2024
conan-center-bot pushed a commit that referenced this pull request Sep 24, 2024
* [llvm-core] bring package up to date. Initial support for 13.0.0

* [llvm-core] add support for job pool resource limits from @jusito

* [llvm-core] add cmake patch for 12.0.0

* [llvm-core] add cmake patch for 11.1.0

* [llvm-core] allow conan 1.x

* [llvm-core] fix zlib detection for 11.1.0

* [llvm-core] additional patches for missing includes and patch metadata

* [llvm-core] resolve v1 hooks issues

* [llvm-core] use llvm generated config file to extract components

* [llvm-core] add custom cmake build script

* [llvm-core] use run env during build and force ninja

* [llvm-core] fix patches for libxml

* [llvm-core] bump up default ram per link job

* [llvm-core] backport split-dwarf patches from 14.x

* [llvm-core] add support for cross compiling

* [llvm-core] fix patch files for split dwarf

* [llvm-core] disable cross compilation

* [llvm-core] add CCI build service specific behaviour

* [llvm-core] fix cci resource limitations

* [llvm-core] implement component dependencies

* [llvm-core] sanitize component names

* [llvm-core] bump ram per link job for cci shared debug

* [llvm-core] exclude cmake find modules

* [llvm-core] skip rpath on macos

* [llvm-core] reformat and fix linting issues

* [llvm-core] delete 18x patch (added in error)

* [llvm-core] rename references to LLVM-Config

* [llvm-core] retain LLVMConfigExtensions.cmake

* [llvm-core] add fake targets for *-gen

* [llvm-core] use the actual cmake target name as component name

* [llvm-core] fix component dependencies

* [llvm-core] add target options

* [llvm-core] add editline requirement (WIP)

* [llvm-core] support for libedit (editline) in 13.x

* [llvm-core] disable shared debug for CCI, update license identifier and refactor

* [llvm-core] require cxx std 14 for test package

* [llvm-core] handle edge case of static libiconv being linked into a dynamic library on macos

* [llvm-core] skip rpath handling for build on macos

* [llvm-core] propagate DYLD_LIBRARY_PATH to tblgen during build

* [llvm-core] propagate DYLD_LIBRARY_PATH to tblgen during build

* [llvm-core] do not build shared libs with the install rpath

* [llvm-core] use original test package

* [llvm-core] do not package static libraries with shared build

* [llvm-core] fix test_package

* [llvm-core] support linking in lib for native codegen

* [llvm-core] add windows support

* [llvm-core] remove pdb files

* [llvm-core] require cmake_path support in test package

* [llvm-core] handle legacy conan msvcrt setting

* [llvm-core] missing patch type

* Apply suggestions from code review

Co-authored-by: Michael Keck <git@cr0ydon.com>

* [llvm-core] revert changes to license

* [llvm-core] apply review suggestions

* [llvm-core] add patch source for include file fix

* [llvm-core] use user-config for compiler resource settings

* [llvm-core] add link for further info on cross compilation

* [llvm-core] use PurePosixPath only

* Trying 'as_posix()' function

* More 'as_posix()' function

* Typo

* [llvm-core] revert usage of 'load' to workaround regex error

* [llvm-core] try relaxing restrictions on cross-building

* [llvm-core] use semi-colon separated string for targets instead of individual options

* [llvm-core] set default fPIC fallback to 'True'

* [llvm-core] use version range for ninja

* [llvm-core] move cci check to 'validate_build'

* [llvm-core] allow CCI to use llvm-core user config for resource limits

* [llvm-core] dont activate build environment for llvm-tblgen

* [llvm-core] add patch for link failure with lld

* [llvm-core] explicitly list shared libraries

* [llvm-core] revert to using

* Revert "[llvm-core] try relaxing restrictions on cross-building"

This reverts commit 7b2e085

* [llvm-core] workaround for #13560

* [llvm-core] increase ram available for link jobs in CCI

* [llvm-core] remove the split-dwarf patch

* [llvm-core] disable shared debug builds entirely and debug builds for linux

* [llvm-core] remove remaining split-dwarf capability

---------

Co-authored-by: Michael Keck <git@cr0ydon.com>
Co-authored-by: Francisco Ramirez de Anton <franchuti688@gmail.com>
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.

5 participants