Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-204

building e2fsprogs on rhel6 : $BUILDROOT/e2fsprogs-1.41.90.wc1-0redhat.x86_64/usr/lib64/libcom_err.a'; reason: Permission denied

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.1.0
    • None
    • rhel6
    • 3
    • 10315

    Description

      When trying to build e2fsprogs on rhel6/x86_64 the rpm build fails with:

      + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
      /usr/bin/strip: unable to copy file '/var/lib/jenkins/workspace/e2fsprogs-master/arch/x86_64/distro/el6/_topdir/BUILDROOT/e2fsprogs-1.41.90.wc1-0redhat.x86_64/usr/lib64/libcom_err.a'; reason: Permission denied
      /usr/bin/strip: unable to copy file '/var/lib/jenkins/workspace/e2fsprogs-master/arch/x86_64/distro/el6/_topdir/BUILDROOT/e2fsprogs-1.41.90.wc1-0redhat.x86_64/usr/lib64/libext2fs.a'; reason: Permission denied
      /usr/bin/strip: unable to copy file '/var/lib/jenkins/workspace/e2fsprogs-master/arch/x86_64/distro/el6/_topdir/BUILDROOT/e2fsprogs-1.41.90.wc1-0redhat.x86_64/usr/lib64/libss.a'; reason: Permission denied
      /usr/bin/strip: unable to copy file '/var/lib/jenkins/workspace/e2fsprogs-master/arch/x86_64/distro/el6/_topdir/BUILDROOT/e2fsprogs-1.41.90.wc1-0redhat.x86_64/usr/lib64/libuuid.a'; reason: Permission denied
      /usr/bin/strip: unable to copy file '/var/lib/jenkins/workspace/e2fsprogs-master/arch/x86_64/distro/el6/_topdir/BUILDROOT/e2fsprogs-1.41.90.wc1-0redhat.x86_64/usr/lib64/libe2p.a'; reason: Permission denied
      /usr/bin/strip: unable to copy file '/var/lib/jenkins/workspace/e2fsprogs-master/arch/x86_64/distro/el6/_topdir/BUILDROOT/e2fsprogs-1.41.90.wc1-0redhat.x86_64/usr/lib64/libblkid.a'; reason: Permission denied
      

      in %install. Looking at the files in that directory:

      total 3080
      -rwxr-xr-x 1 jenkins jenkins   10008 Apr  8 13:32 e2initrd_helper
      -r--r--r-- 1 jenkins jenkins  315942 Apr  8 13:32 libblkid.a
      lrwxrwxrwx 1 jenkins jenkins      20 Apr  8 13:32 libblkid.so -> /lib64/libblkid.so.1
      -r--r--r-- 1 jenkins jenkins   48488 Apr  8 13:32 libcom_err.a
      lrwxrwxrwx 1 jenkins jenkins      22 Apr  8 13:32 libcom_err.so -> /lib64/libcom_err.so.2
      -r--r--r-- 1 jenkins jenkins  258568 Apr  8 13:32 libe2p.a
      lrwxrwxrwx 1 jenkins jenkins      18 Apr  8 13:32 libe2p.so -> /lib64/libe2p.so.2
      -r--r--r-- 1 jenkins jenkins 2205314 Apr  8 13:32 libext2fs.a
      lrwxrwxrwx 1 jenkins jenkins      21 Apr  8 13:32 libext2fs.so -> /lib64/libext2fs.so.2
      -r--r--r-- 1 jenkins jenkins  185240 Apr  8 13:32 libss.a
      lrwxrwxrwx 1 jenkins jenkins      17 Apr  8 13:32 libss.so -> /lib64/libss.so.2
      -r--r--r-- 1 jenkins jenkins  106908 Apr  8 13:32 libuuid.a
      lrwxrwxrwx 1 jenkins jenkins      19 Apr  8 13:32 libuuid.so -> /lib64/libuuid.so.1
      drwxr-xr-x 2 jenkins jenkins    4096 Apr  8 13:32 pkgconfig
      

      We can see that this is likely due to the lack of write permissions on the file. IMHO, /usr/lib/rpm/redhat/brp-strip-static-archive should deal with that, temporarily adding write permission or using a temporary file. I suppose seeing how e2fsprogs is packaged natively on rhel6 might be educational in resolving this issue in our own packaging.

      Attachments

        Activity

          People

            brian Brian Murrell (Inactive)
            brian Brian Murrell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: