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

[Dev] gcc.spec has syntax error in install section

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • rhel-9.5
    • CentOS Stream 9
    • gcc-toolset-13-gcc
    • None
    • None
    • None
    • 1
    • sst_pt_gcc
    • ssg_platform_tools
    • 1
    • None
    • GCC Sprint 5
    • None
    • None
    • None

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

       

      Rebuild the package from sources.

      Please provide the package NVR for which bug is seen:

      gcc-toolset-13-gcc-13.3.1-1.el9

      How reproducible:

      always.

      Steps to reproduce

      1. try to build package in mock
      2.  
      3.  

      Expected results

      successful build

      Actual results

      Build fails on %install

       

      Bug is this:

      + '[' /builddir/build/BUILDROOT/gcc-toolset-13-gcc-13.3.1-1.el9.x86_64/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13 -ne /builddir/build/BUILDROOT/gcc-toolset-13-gcc-13.3.1-1.el9.x86_64/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13 ']'
      /var/tmp/rpm-tmp.s6Ksmv: line 363: [: /builddir/build/BUILDROOT/gcc-toolset-13-gcc-13.3.1-1.el9.x86_64/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13: integer expression expected

       

      Fix is simple:

      -if [ $FULLLPATH -ne $FULLPATH ]; then
      +if [ "$FULLLPATH" != "$FULLPATH" ]; then

            mpolacek@redhat.com Marek Polacek
            bleve Tuomo Soini
            Marek Polacek Marek Polacek
            Vaclav Kadlcik Vaclav Kadlcik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: