Displaying in rpm-find-spec-bcond is broken. I'm talking about:
SOURCES]$ cvs status rpm-find-spec-bcond
===================================================================
File: rpm-find-spec-bcond Status: Up-to-date
Working revision: 1.8
Repository revision: 1.8 /cvsroot/SOURCES/rpm-find-spec-bcond,v
It behaves different for old and new bconds - kernel-mosix.spec has oldfashion
bconds, mc.spec - new:
SOURCES]$ ./rpm-find-spec-bcond ../SPECS/kernel-mosix.spec
_without_doc
_without_owl
_without_smp
_without_source
_without_up
I've intentionally added few blanks after %bcond_with
%bcond_with ext2undel # with ext2 undelete fs
to mc.spec - here is result:
SOURCES]$ ./rpm-find-spec-bcond ../SPECS/mc.spec
_with
_____________
__ext2undel
_without
perl_vfs
_without
x
_with
samba
_with
utf8
Enclosed patch fixes this issue, but, probably, our builder scripts relies on
such displaying bconds (in other words - my fix breaks builder). I'm not
going to fix builder - sorry ;).
--
Tomasz Wittner
Index: rpm-find-spec-bcond
===================================================================
RCS file: /cvsroot/SOURCES/rpm-find-spec-bcond,v
retrieving revision 1.8
diff -u -r1.8 rpm-find-spec-bcond
--- rpm-find-spec-bcond 25 Jan 2004 21:06:08 -0000 1.8
+++ rpm-find-spec-bcond 10 Aug 2005 21:58:39 -0000
@@ -28,9 +28,9 @@
print substr($0, RSTART, RLENGTH)
}
/^%bcond_with/ && chlog == 0 {
- match($0, /bcond_with(out)?[ ]+[_a-zA-Z0-9]+/);
+ match($0, /bcond_with(out)?[ \t]+[_a-zA-Z0-9]+/);
bcond = substr($0, RSTART +5 , RLENGTH -5);
- gsub(/ /,"_",bcond);
+ gsub(/[ \t]+/,"_",bcond);
print bcond
}' $SPEC | sort -u`
_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en