xfs
[Top] [All Lists]

Re: Error rebuilding xfsprogs-2.3.5-0.src.rpm

To: "Fabio Baiocco" <baiocco.f@xxxxxxxxxxxxxxxxx>
Subject: Re: Error rebuilding xfsprogs-2.3.5-0.src.rpm
From: Keith Owens <kaos@xxxxxxx>
Date: Thu, 13 Feb 2003 23:02:50 +1100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "Thu, 13 Feb 2003 12:06:30 BST." <001801c2d34f$f65e7da0$26a0710a@FI0P38>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Thu, 13 Feb 2003 12:06:30 +0100, 
"Fabio Baiocco" <baiocco.f@xxxxxxxxxxxxxxxxx> wrote:
>The command rpm --rebuild xfsprogs-2.3.5-0.src.rpm on a RedHat 7.2 displays 
>those errors:
>
>error: File not found: /tmp/12496/usr/share/man/man5/xfs.5

For some reason, the spec file in xfsprogs is incorrect.  It has
  /usr/local/man/man5/xfs.5
when it should be
  /usr/local/man/man5/xfs.5*
the trailing '*' is to cope with gzipped man pages, which RH 7.2 does
by default.

It looks like a failure in the awk code that builds the spec filelist
from the manifest.  Until the xfs release team can correct the build
process, here is an untested patch to workaround the problem.

--- xfsprogs.spec.orig  Thu Feb 13 22:57:44 2003
+++ xfsprogs.spec       Thu Feb 13 22:58:36 2003
@@ -72,13 +72,13 @@
            if (match ($6, "/usr/local/man"))
                printf ("%%%%attr(%s,%s,%s) %s*\n", $2, $3, $4, $6);
            else
-               printf ("%%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $6); }
+               printf ("%%%%attr(%s,%s,%s) %s*\n", $2, $3, $4, $6); }
 $1 == "l" { if (match ($3, "/usr/local/man") || match ($3, 
"/usr/local/share/doc/xfsprogs"))
                printf ("%%%%doc ");
            if (match ($3, "/usr/local/man"))
                printf ("%attr(0777,root,root) %s*\n", $3);
            else
-               printf ("%attr(0777,root,root) %s\n", $3); }'
+               printf ("%attr(0777,root,root) %s*\n", $3); }'
 }
 set +x
 files < "$DIST_INSTALL" > files.rpm

Use as:-

rpm -i xfsprogs-2.3.5-0.src.rpm
cd /usr/src/redhat/SPECS (or wherever you unpack your rpms)
patch -p0 < patch_above
rpmbuild -ba xfsprogs.spec


<Prev in Thread] Current Thread [Next in Thread>