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

add picohttpparser #19034

Closed
wants to merge 4 commits into from
Closed

add picohttpparser #19034

wants to merge 4 commits into from

Conversation

pwqbot
Copy link
Contributor

@pwqbot pwqbot commented Aug 4, 2023

Specify library name and version: picohttpparser/cci.20230804


@conan-center-bot

This comment has been minimized.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, please, consider taking a look in CMake template to avoid missing important points when creating a new recipe from zero: https://github.com/conan-io/conan-center-index/tree/master/docs/package_templates/cmake_package/all

@@ -0,0 +1,25 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
Copy link
Member

Choose a reason for hiding this comment

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

It seems like the project is abandoned, but still I'll ask you to send this CMake support the upstream first.

To use here, please, do not use as a patch, but use export_sources instead. Take a look in tgc recipe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I will try to send this patch to upstream

recipes/picohttpparser/all/conanfile.py Outdated Show resolved Hide resolved
apply_conandata_patches(self)
cmake = CMake(self)
cmake.configure()
cmake.build()
Copy link
Member

Choose a reason for hiding this comment

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

package_info is missing.

@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

Conan v1 pipeline ❌

Failure in build 5 (6050f9d1a1f26de703e304a1f0dea8e26e5a4ddf):

  • picohttpparser/cci.20230804@:
    CI failed to create some packages (All logs)

    Logs for packageID b911f48570f9bb2902d9e83b2b9ebf9d376c8c56:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux
    [options]
    picohttpparser:shared=False
    
    [...]
    Or edit '/home/conan/w/prod-v1/BuildSingleReference/.conan/profiles/default' and set compiler.libcxx=libstdc++11
    
    ************************************************************************************
    
    
    
    Default settings
    	os=Linux
    	os_build=Linux
    	arch=x86_64
    	arch_build=x86_64
    	compiler=gcc
    	compiler.version=9
    	compiler.libcxx=libstdc++
    	build_type=Release
    *** You can change them in /home/conan/w/prod-v1/BuildSingleReference/.conan/profiles/default ***
    *** Or override with -s compiler='other' -s ...s***
    
    
    Configuration:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux
    [options]
    picohttpparser:shared=False
    [build_requires]
    [env]
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    
    picohttpparser/cci.20230804: Forced build from source
    Installing package: picohttpparser/cci.20230804
    Requirements
        picohttpparser/cci.20230804 from local cache - Cache
    Packages
        picohttpparser/cci.20230804:b911f48570f9bb2902d9e83b2b9ebf9d376c8c56 - Build
    
    Installing (downloading, building) binaries...
    [HOOK - conan-center.py] pre_source(): [IMMUTABLE SOURCES (KB-H010)] OK
    picohttpparser/cci.20230804: Configuring sources in /home/conan/w/prod-v1/BuildSingleReference/.conan/data/picohttpparser/cci.20230804/_/_/source/src
    picohttpparser/cci.20230804: 
    [HOOK - conan-center.py] post_source(): [SHORT_PATHS USAGE (KB-H066)] OK
    [HOOK - conan-center.py] post_source(): ERROR: [LIBCXX MANAGEMENT (KB-H011)] Can't detect C++ source files but recipe does not remove 'self.settings.compiler.libcxx' (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H011-LIBCXX-MANAGEMENT) 
    [HOOK - conan-center.py] post_source(): ERROR: [CPPSTD MANAGEMENT (KB-H022)] Can't detect C++ source files but recipe does not remove 'self.settings.compiler.cppstd' (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H022-CPPSTD-MANAGEMENT) 
    ERROR: [HOOK - conan-center.py] post_source(): Some checks failed running the hook, check the output
    

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.


Conan v2 pipeline ❌

Note: Conan v2 builds may be required once they are on the v2 ready list

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

See details:

Failure in build 4 (6050f9d1a1f26de703e304a1f0dea8e26e5a4ddf):

  • picohttpparser/cci.20230804@:
    CI failed to create some packages (All logs)

    Logs for packageID 13be611585c95453f1cbbd053cea04b3e64470ca:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    [...]
    
    
    ======== Computing dependency graph ========
    Graph root
        cli
    Requirements
        picohttpparser/cci.20230804#cb4f65d7c89f69172914bf0e010987e8 - Cache
    
    ======== Computing necessary packages ========
    picohttpparser/cci.20230804: Forced build from source
    Requirements
        picohttpparser/cci.20230804#cb4f65d7c89f69172914bf0e010987e8:13be611585c95453f1cbbd053cea04b3e64470ca - Build
    
    ======== Installing packages ========
    picohttpparser/cci.20230804: Calling source() in /home/conan/w/prod-v2/BuildSingleReference/p/picoh303b8b144ecf9/s/src
    
    -------- Installing package picohttpparser/cci.20230804 (1 of 1) --------
    picohttpparser/cci.20230804: Building from source
    picohttpparser/cci.20230804: Package picohttpparser/cci.20230804:13be611585c95453f1cbbd053cea04b3e64470ca
    picohttpparser/cci.20230804: Copying sources to build folder
    picohttpparser/cci.20230804: Building your package in /home/conan/w/prod-v2/BuildSingleReference/p/b/picohbcfb28aad0c3c/b
    picohttpparser/cci.20230804: Calling generate()
    picohttpparser/cci.20230804: Generators folder: /home/conan/w/prod-v2/BuildSingleReference/p/b/picohbcfb28aad0c3c/b/build/Release/generators
    picohttpparser/cci.20230804: CMakeToolchain generated: conan_toolchain.cmake
    picohttpparser/cci.20230804: CMakeToolchain generated: CMakePresets.json
    picohttpparser/cci.20230804: Generating aggregated env files
    picohttpparser/cci.20230804: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
    picohttpparser/cci.20230804: Calling build()
    picohttpparser/cci.20230804: Apply patch (conan): add CMakeLists.txt
    picohttpparser/cci.20230804: Running CMake.configure()
    picohttpparser/cci.20230804: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/w/prod-v2/BuildSingleReference/p/b/picohbcfb28aad0c3c/b/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/conan/w/prod-v2/BuildSingleReference/p/b/picohbcfb28aad0c3c/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/conan/w/prod-v2/BuildSingleReference/p/b/picohbcfb28aad0c3c/b/src"
    CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
      CMake 3.16 or higher is required.  You are running version 3.15.7
    
    
    -- Configuring incomplete, errors occurred!
    
    picohttpparser/cci.20230804: ERROR: 
    Package '13be611585c95453f1cbbd053cea04b3e64470ca' build failed
    picohttpparser/cci.20230804: WARN: Build folder /home/conan/w/prod-v2/BuildSingleReference/p/b/picohbcfb28aad0c3c/b/build/Release
    *********************************************************
    Recipe 'picohttpparser/cci.20230804' cannot build its binary
    It is possible that this recipe is not Conan 2.0 ready
    If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
    If it is your recipe, check if it is updated to 2.0
    *********************************************************
    
    ERROR: picohttpparser/cci.20230804: Error in build() method, line 42
    	cmake.configure()
    	ConanException: Error 1 while executing
    

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.

@stale
Copy link

stale bot commented Oct 15, 2023

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.

Copy link
Contributor

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

@github-actions github-actions bot closed this Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants