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

gcc.spec has syntax error in install section

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.5
    • CentOS Stream 9
    • gcc-toolset-13-gcc
    • None
    • gcc-toolset-13-gcc-13.3.1-2.el9
    • None
    • None
    • 1
    • rhel-sst-pt-gcc
    • ssg_platform_tools
    • 16
    • 18
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • CentOS Stream
    • GCC Sprint 6
    • Release Note Not Required
    • All
    • 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:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: