Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-85715

%ctest macro has a bug where additional parameters cannot be passed

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.1
    • CentOS Stream 10
    • cmake
    • None
    • cmake-3.30.5-3.el10
    • Yes
    • Low
    • ZStream
    • 1
    • rhel-pt-llvm-rust
    • ssg_platform_tools
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • PT LLVMRustGo 2025 S5
    • Approved Blocker
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      Run the unit tests of `colorized-logs`

      What is the impact of this issue to you?

      It's harder to bring in packages that pass additional arguments to ctest from Fedora to EPEL - the packages would have to check for EL10 and either skip tests or run the tests differently. In cases where the Fedora maintainer does not want the spec to diverge between Fedora and EPEL this might block packages being branched

      Please provide the package NVR for which the bug is seen:

      cmake-3.30.5-2.el10

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Clone colorized-logs and make an SRPM
      $ fedpkg clone -a colorized-logs
      $ cd colorized-logs
      $ fedpkg srpm
      
      1. Rebuild for epel10
      $ mock -r centos-stream+epel-10-$(uname -m) --chain --localrepo repo --postinstall ./*.src.rpm
      

      Expected results

      Build passes, as it does for Fedora and EPEL 9

      Actual results

      Build fails

      + cd colorized-logs-2.7                 
      + /usr/bin/ctest --test-dir redhat-linux-build --output-on-failure --force-new-ctest-process -j16 -- --ou
      tput-on-failure                                                                 
      CMake Error: Unknown argument: --                                               
      CMake Error: Run 'ctest --help' for all supported options.

              rhn-support-jchecahi Jesus Checa Hidalgo
              michel.lind Michel Lind (Inactive)
              Thomas Stellard Thomas Stellard
              Jesus Checa Hidalgo Jesus Checa Hidalgo
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: