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

gnu-getopt: new recipe

Open valgur opened this issue 1 year ago • 6 comments

Packages the GNU variant of the getopt command-line utility. Not to be confused with the getopt library already available on CCI.

Required on macOS for the shell scripts included in the f2c PR #23417.

The current version of the tool was originally hosted at http://frodo.looijaard.name/project/getopt but has now been merged into linux-utils. There's a slight question of whether we should simply build and package all of the utils in linux-utils instead. However, I don't think they are all compatible with other OS-s so it's safer to package getopt in isolation for now.

Packaging status

valgur avatar Apr 15 '24 07:04 valgur

Conan v1 pipeline :x:

Sorry, the system is under maintenance and it doesn't accept builds right now.

Motivation: Updating Jenkins plugins

Please, check https://status.conan.io to obtain more information. Thanks for your understanding and help with the Conan Center Index!

Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Sorry, the system is under maintenance and it doesn't accept builds right now.

Motivation: Updating Jenkins plugins

Please, check https://status.conan.io to obtain more information. Thanks for your understanding and help with the Conan Center Index!

conan-center-bot avatar Apr 15 '24 07:04 conan-center-bot

Ugh, this will mean another separate project to convert to Meson. 😢 I just got changes in the stable branch for 2.40 that should make it possible to build this with Meson on macOS, but it looks like you're also supporting Windows. I'd better see if Meson needs any changes to support that.

jwillikers avatar Apr 16 '24 12:04 jwillikers

Fyi, I've opened issue util-linux/util-linux#2962 to make it possible to build with Meson on Windows without requiring /bin/sh.

jwillikers avatar Apr 17 '24 12:04 jwillikers

Conan v1 pipeline :x:

Failure in build 2 (dffb9027c411faf15e5e7c6877304ca88d73ff14):

  • gnu-getopt/2.40: CI failed to create some packages (All logs)

    Logs for packageID 24647d9fe8ec489125dfbae4b3ebefaf7581674c:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    
    [...]
    
    ************************************************************************************
    
    
    
    Default settings
    	os=Linux
    	os_build=Linux
    	arch=x86_64
    	arch_build=x86_64
    	compiler=gcc
    	compiler.version=5
    	compiler.libcxx=libstdc++
    	build_type=Release
    *** You can change them in /home/conan/workspace/prod-v1/bsr/24052/aeccf/.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=5
    os=Linux
    [options]
    [build_requires]
    [env]
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    
    gnu-getopt/2.40: Forced build from source
    Installing package: gnu-getopt/2.40
    Requirements
        gnu-getopt/2.40 from local cache - Cache
    Packages
        gnu-getopt/2.40:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Build
    
    Installing (downloading, building) binaries...
    [HOOK - conan-center.py] pre_source(): [IMMUTABLE SOURCES (KB-H010)] OK
    gnu-getopt/2.40: Configuring sources in /home/conan/workspace/prod-v1/bsr/24052/aeccf/.conan/data/gnu-getopt/2.40/_/_/source/src
    gnu-getopt/2.40: 
    [HOOK - conan-center.py] post_source(): [SHORT_PATHS USAGE (KB-H066)] OK
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    [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 :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 2 (dffb9027c411faf15e5e7c6877304ca88d73ff14):

  • gnu-getopt/2.40: CI failed to create some packages (All logs)

    Logs for packageID 3593751651824fb813502c69c971267624ced41a:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    
    [...]
    configure: WARNING: Unable to detect syscall move_mount.
    checking for syscall open_tree... no
    configure: WARNING: Unable to detect syscall open_tree.
    checking for isnan... yes
    checking for clock_gettime... yes
    checking for timer_create... no
    checking for timer_create in -lrt... yes
    checking for rtas_get_sysparm in -lrtas... no
    checking for struct sockaddr.sa_len... no
    checking for library containing socket... none required
    checking for dirfd... yes
    checking for mq_open in -lrt... yes
    checking whether program_invocation_short_name is defined... yes
    checking whether __progname is defined... yes
    checking whether IOC_OPAL_GET_STATUS is declared... no
    checking for asciidoctor... no
    configure: WARNING: asciidoctor not found; not building man pages
    configure: re-use already generated man-pages.
    checking for po4a... no
    configure: WARNING: po4a not found; not building translated man pages
    checking whether the target supports thread-local storage... yes
    checking for openpty in -lutil... yes
    checking for union semun... no
    checking for loff_t... yes
    checking wchar_t support... yes
    checking for cpu_set_t... yes
    checking for sighandler_t... yes
    checking whether CPU_ALLOC is declared... yes
    checking for crypt.h... yes
    checking for udev_new in -ludev... no
    checking for ncursesw6-config... no
    checking for ncursesw5-config... no
    checking for ncursesw... no
    checking for initscr in -lncursesw... no
    checking for ncurses6-config... no
    checking for ncurses5-config... no
    checking for ncurses... no
    checking for initscr in -lncurses... no
    checking for tinfo... no
    checking for tgetent in -ltinfo... no
    checking for readline in -lreadline... no
    checking for sqlite3... no
    configure: error: liblastlog2 selected, but required sqlite3 library not available
    
    gnu-getopt/2.40: ERROR: 
    Package '3593751651824fb813502c69c971267624ced41a' build failed
    gnu-getopt/2.40: WARN: Build folder /home/conan/workspace/prod-v2/bsr/21575/aeaaf/p/b/gnu-gdfd30d1ed30b7/b/build-release
    ERROR: gnu-getopt/2.40: Error in build() method, line 62
    	autotools.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.

conan-center-bot avatar Apr 17 '24 13:04 conan-center-bot

Conan v1 pipeline :heavy_check_mark:

All green in build 3 (cbe176b550801880076d8cb1a2b9ae27ff67bc25):

  • gnu-getopt/2.40: All packages built successfully! (All logs)

Conan v2 pipeline :heavy_check_mark:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 3 (cbe176b550801880076d8cb1a2b9ae27ff67bc25):

  • gnu-getopt/2.40: All packages built successfully! (All logs)

conan-center-bot avatar Apr 18 '24 17:04 conan-center-bot

Conan v1 pipeline :heavy_check_mark:

All green in build 4 (d665480b7d6c0b2a3fc3dd71b81b91865ba47ad0):

  • gnu-getopt/2.40: All packages built successfully! (All logs)

Conan v2 pipeline :heavy_check_mark:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 4 (d665480b7d6c0b2a3fc3dd71b81b91865ba47ad0):

  • gnu-getopt/2.40: All packages built successfully! (All logs)

conan-center-bot avatar Apr 19 '24 16:04 conan-center-bot

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Martin Valgur seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Mar 09 '25 08:03 CLAassistant