Mailinglist Archive: opensuse-buildservice (233 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] Parser chokes on %if 0%{?suse_update_desktop_files:1}
- From: Pascal Bleser <pascal.bleser@xxxxxxxxx>
- Date: Tue, 01 May 2007 10:35:05 +0200
- Message-id: <4636FBB9.3050107@xxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael Schroeder wrote:
> On Sun, Apr 29, 2007 at 01:28:43AM +0200, Pascal Bleser wrote:
>> The parser doesn't seem to be able to catch
>> %if 0%{?suse_update_desktop_files:1}
>>
>> Not that it's necessarily needed to be able to handle all the possible
>> spec file notations with stuff like that but... is the limitation wrt
>> knowing whether that macro is defined in /usr/lib/rpm/*, or with the
>> notation 0%{xxx:1} ?
>
> The former, %suse_update_desktop_files is not defined in the
> distribution config.
It is a macro from /usr/lib/rpm/suse_macros though ;)
> I never thought someone would put a BuildRequires line into
> such an %if statement, what exactly do you want to achieve?
Well, if that macro is available (which means on SUSE >= 9.x, which is
why I just replaced it with a check on %suse_version), I use it.
If not, I don't.
It's not critical, as I was able to replace it with a check on the suse
version, but just curious what the spec parser supports and what not.
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\ <pascal.bleser@xxxxxxxxx> <guru@xxxxxxxxxxx>
_\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGNvu5r3NMWliFcXcRAq7KAJ4+k8Bq/jUastOF5Jr2UzNUCq+5dACgjziy
2rY9T0lcKCrKn8wMYlu4vpk=
=JT50
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
Hash: SHA1
Michael Schroeder wrote:
> On Sun, Apr 29, 2007 at 01:28:43AM +0200, Pascal Bleser wrote:
>> The parser doesn't seem to be able to catch
>> %if 0%{?suse_update_desktop_files:1}
>>
>> Not that it's necessarily needed to be able to handle all the possible
>> spec file notations with stuff like that but... is the limitation wrt
>> knowing whether that macro is defined in /usr/lib/rpm/*, or with the
>> notation 0%{xxx:1} ?
>
> The former, %suse_update_desktop_files is not defined in the
> distribution config.
It is a macro from /usr/lib/rpm/suse_macros though ;)
> I never thought someone would put a BuildRequires line into
> such an %if statement, what exactly do you want to achieve?
Well, if that macro is available (which means on SUSE >= 9.x, which is
why I just replaced it with a check on %suse_version), I use it.
If not, I don't.
It's not critical, as I was able to replace it with a check on the suse
version, but just curious what the spec parser supports and what not.
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\ <pascal.bleser@xxxxxxxxx> <guru@xxxxxxxxxxx>
_\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGNvu5r3NMWliFcXcRAq7KAJ4+k8Bq/jUastOF5Jr2UzNUCq+5dACgjziy
2rY9T0lcKCrKn8wMYlu4vpk=
=JT50
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |