conan-center-index icon indicating copy to clipboard operation
conan-center-index copied to clipboard

[package] pcre2/10.40: Need disable fork function call for tvOS and watchOS

Open paulocoutinhox opened this issue 3 years ago • 3 comments

Package and Environment Details

  • Package Name/Version: pcre2/10.40
  • Operating System+version: macos 11
  • Compiler+version: clang 13
  • Conan version: conan latest
  • Python version: Python 3.9

Conan profile

Configuration (profile_host):
[settings]
arch=armv8
arch_build=x86_64
build_type=Debug
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=13
os=tvOS
os.sdk=appletvos
os.version=11.0
os_build=Macos
[options]
nativium_arch=arm64
nativium_build_type=debug
nativium_group=tvos
nativium_product_name=Nativium
nativium_project_name=nativium
nativium_target=ios
nativium_version=1.0.0
nativium_version_code=1
darwin-toolchain:enable_bitcode=True
[build_requires]
*: darwin-toolchain/1.0.0@nativium/stable
[env]

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=13
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

Steps to reproduce

No response

Logs

Click to expand log

Full log: https://github.com/nativium/nativium-modules/runs/7808806039?check_suite_focus=true#step:14:22284

Resume:

/Users/runner/.conan/data/pcre2/10.40/_/_/build/ca066de8bff8ee34f9b2866f5633069da970d2b4/source_subfolder/src/pcre2grep.c:2432:7: error: 'fork' is unavailable: not available on tvOS
pid = fork();
      ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS15.2.sdk/usr/include/unistd.h:447:8: note: 'fork' has been explicitly marked unavailable here
pid_t    fork(void) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
         ^
/Users/runner/.conan/data/pcre2/10.40/_/_/build/ca066de8bff8ee34f9b2866f5633069da970d2b4/source_subfolder/src/pcre2grep.c:2435:9: error: 'execv' is unavailable: not available on tvOS
  (void)execv(argsvector[0], argsvector);
        ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS15.2.sdk/usr/include/unistd.h:444:6: note: 'execv' has been explicitly marked unavailable here
int      execv(const char * __path, char * const * __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
         ^
2 errors generated.

paulocoutinhox avatar Aug 12 '22 16:08 paulocoutinhox

@jcar87 @uilianries could you help me here?

i think that we need create a new option for pcre2 to disable it.

paulocoutinhox avatar Aug 12 '22 16:08 paulocoutinhox

Is the same problem that was solved for poco: https://github.com/pocoproject/poco/issues/3334

paulocoutinhox avatar Aug 12 '22 16:08 paulocoutinhox

I made a PR: https://github.com/conan-io/conan-center-index/issues/12182

paulocoutinhox avatar Aug 12 '22 17:08 paulocoutinhox