[devel] I: unexpanded macros
Alexey Tourbin
=?iso-8859-1?q?at_=CE=C1_altlinux=2Eru?=
Пт Июл 22 17:26:56 MSD 2005
[at на basalt Sisyphus]$ find files/*/RPMS -type f -name '*.rpm' |xargs check_macros |uniq
files/i586/RPMS/kpowersave-0.4.5-alt1.i586.rpm DESCRIPTION %debug_package
files/i586/RPMS/chkfontpath-2.0.1-alt1.i586.rpm DESCRIPTION %post
files/i586/RPMS/tex2im-1.8-alt1.i586.rpm URL %real
files/i586/RPMS/libdvdplay-1.0.1-alt2.1.i586.rpm DESCRIPTION %libname
files/i586/RPMS/alterator-backend-x11-0.3.7-alt1.i586.rpm SUMMARY %backend
files/i586/RPMS/alterator-backend-x11-0.3.7-alt1.i586.rpm DESCRIPTION %backend
files/i586/RPMS/glibc-core-debug-2.3.5-alt5.i586.rpm DESCRIPTION %_specdir
files/i586/RPMS/glibc-devel-debug-2.3.5-alt5.i586.rpm DESCRIPTION %_specdir
files/i586/RPMS/gok-1.0.5-alt1.i586.rpm PREUN %_name
files/i586/RPMS/glibc-nss-debug-2.3.5-alt5.i586.rpm DESCRIPTION %_specdir
files/i586/RPMS/powersave-0.9.25-alt2.i586.rpm POSTUN %postun_service
files/i586/RPMS/apache2-suexec-2.0.54-alt1.i586.rpm POSTUN %postun_service
files/i586/RPMS/mod_ssl-2.8.22-alt1.i586.rpm PREIN %postun
files/i586/RPMS/php-mcrypt-4.3.12-alt0.cvs20050530.i586.rpm DESCRIPTION %package_name
files/i586/RPMS/purge-0.1-alt1.i586.rpm DESCRIPTION %purge
files/i586/RPMS/abook-0.5.3-alt1.i586.rpm CHANGELOGNAME %rlz1
files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_1_s
files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_2_s
files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_3_s
files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_4_s
files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_Matplot
[...]
files/i586/RPMS/libnatspec-0.2.1-alt1.i586.rpm DESCRIPTION %Url
files/i586/RPMS/webalizer-2.01.10-alt5.1.i586.rpm TRIGGERSCRIPTS %apache_webmaster
files/i586/RPMS/ups-monitor-0.6-alt1.i586.rpm BASENAMES %nam
files/i586/RPMS/xmms-in-mac-0.2.1-alt2.1.i586.rpm DESCRIPTION %pack_ver
files/noarch/RPMS/MPlayer-skins-1.1.0-alt1.noarch.rpm DESCRIPTION %setup
files/noarch/RPMS/oracle-preinstall-0.3-alt1.noarch.rpm PREIN %APACHE
files/noarch/RPMS/perl-Spreadsheet-ParseExcel-0.2602-alt1.noarch.rpm URL %module_dir
files/noarch/RPMS/perl-Spreadsheet-ParseExcel-SaveParser-0.2602-alt1.noarch.rpm URL %module_dir
files/noarch/RPMS/urw-fonts-2.0-alt26.noarch.rpm POSTIN %ttfdir
files/noarch/RPMS/xemacs-lookup-1.14-alt2.noarch.rpm POSTIN %xemacs_mule_package
files/noarch/RPMS/xemacs-lookup-1.14-alt2.noarch.rpm PREUN %xemacs_mule_package
files/noarch/RPMS/xemacs-skk-1.23-alt4.noarch.rpm POSTIN %xemacs_mule_package
files/noarch/RPMS/xemacs-skk-1.23-alt4.noarch.rpm PREUN %xemacs_mule_package
files/noarch/RPMS/perl-Module-CoreList-2.02-alt1.noarch.rpm DESCRIPTION %Module
files/noarch/RPMS/etersoft-build-utils-0.9-alt0.1.noarch.rpm DESCRIPTION %Url
files/noarch/RPMS/perl-Regexp-Common-2.120-alt1.noarch.rpm DESCRIPTION %RE
files/x86_64/RPMS/chkfontpath-2.0.1-alt1.x86_64.rpm DESCRIPTION %post
files/x86_64/RPMS/glibc-core-debug-2.3.5-alt5.x86_64.rpm DESCRIPTION %_specdir
files/x86_64/RPMS/glibc-devel-debug-2.3.5-alt5.x86_64.rpm DESCRIPTION %_specdir
files/x86_64/RPMS/glibc-nss-debug-2.3.5-alt5.x86_64.rpm DESCRIPTION %_specdir
files/x86_64/RPMS/libnatspec-0.2.1-alt1.x86_64.rpm DESCRIPTION %Url
[at на basalt Sisyphus]$
(Не всё в этом списке реально является ошибкой.)
----------- следующая часть -----------
#!/usr/bin/perl
for my $f (@ARGV) {
use RPM::Header ();
my $rpm = RPM::Header->new($f)
or die "$f: $RPM::err";
while (my ($k, $v) = each %$rpm) {
next if $k =~ /CHANGELOGTEXT|SIGGPG|SIGMD5|GIF/;
my @v = ref($v) ? @$v : $v;
my @lines = map { split /[\r\n]+/ } @v;
foreach (@lines) {
next if /^\s*#/;
next unless /\%[a-zA-Z_][a-zA-Z0-9_]+/;
print "$f $k $&\n";
}
}
}
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип : application/pgp-signature
Размер : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20050722/4b35ae45/attachment-0001.bin>
Подробная информация о списке рассылки Devel