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

odbc: conan v2 support + unvendor libltdl #13131

Merged
merged 5 commits into from
Sep 30, 2022

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Sep 24, 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.

@conan-center-bot

This comment has been minimized.

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Sep 24, 2022

CMakeFiles/test_package.dir/build.make:89: recipe for target 'test_package' failed
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/test_package.dir/all' failed
Makefile:83: recipe for target 'all' failed
ld: error: duplicate symbol: __get_connection
>>> defined at SQLGetDiagRec.c
>>>            SQLGetDiagRec.o:(__get_connection) in archive /home/conan/w/prod/BuildSingleReference/.conan/data/odbc/2.3.7/_/_/package/8eabf8030762d318d462d63ad71a06248b66af41/lib/libodbccr.a
>>> defined at SQLGetDiagRec.c
>>>            SQLGetDiagRec.o:(.text+0x10) in archive /home/conan/w/prod/BuildSingleReference/.conan/data/odbc/2.3.7/_/_/package/8eabf8030762d318d462d63ad71a06248b66af41/lib/libodbc.a
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

Weird, there are ODR violations in test_package but not in test_v1_package... And only with clang 12 on Linux, not clang 11 for example.
I've opened lurcher/unixODBC#120

@conan-center-bot

This comment has been minimized.

uilianries
uilianries previously approved these changes Sep 26, 2022
This was referenced Sep 27, 2022
@ghost
Copy link

ghost commented Sep 27, 2022

I detected other pull requests that are modifying odbc/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.

@ghost ghost mentioned this pull request Sep 27, 2022
4 tasks
jgsogo
jgsogo previously approved these changes Sep 28, 2022
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

All green in build 7 (9d9dbcc9c5a52ec7a9a1070144abe09428a75e29):

  • odbc/2.3.9@:
    All packages built successfully! (All logs)

  • odbc/2.3.11@:
    All packages built successfully! (All logs)

  • odbc/2.3.7@:
    All packages built successfully! (All logs)

- patch_file: "patches/missing-declarations.patch"
base_path: "source_subfolder"
- patch_file: "patches/0001-duplicated-get-connection.patch"
- patch_file: "patches/0002-missing-declarations.patch"
Copy link
Contributor

Choose a reason for hiding this comment

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

Patch fields 🙏

for patch in self.conan_data.get("patches", {}).get(self.version, []):
tools.patch(**patch)
apply_conandata_patches(self)
# support more triplets
shutil.copy(self._user_info_build["gnu-config"].CONFIG_SUB,
Copy link
Contributor

Choose a reason for hiding this comment

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

Files copy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Ideal the Conan api should be doing file io tools.files api

@conan-center-bot conan-center-bot merged commit f9825b2 into conan-io:master Sep 30, 2022
@SpaceIm SpaceIm deleted the odbc-conan-v2 branch September 30, 2022 12:52
System-Arch pushed a commit to System-Arch/conan-center-index that referenced this pull request Oct 7, 2022
* conan v2 support

* handle system libs deps of libltdl

* fix ODR violation between odbc & odbccr

* fix duplicated symbol in 2.3.11
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