Mailinglist Archive: opensuse-buildservice (189 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] Expansion-Error on suse-macros
- From: MasterPatricko <masterpatricko@xxxxxxxxx>
- Date: Tue, 17 Feb 2009 20:16:59 +0000
- Message-id: <499B1B3B.80805@xxxxxxxxx>
Michal Marek wrote:
I check for the existence of any custom/distro macros before using them,
makes porting them easier.
The way to avoid undefined macros killing the build is to call them with
substitution, e.g. %{?fdupes} evaluates to "" (nothing) if fdupes is not
defined and "%{fdupes}" if it is, etc.
You can even do if-then e.g. %{?suse_version:%fdupes} (if suse_version
is defined then run fdupes otherwise nothing).
Regards,
MasterPatricko
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
Michal Marek napsal(a):Maybe im just being obvious, but generally when I am writing a spec file
Christof Hanke napsal(a):...
due to my lazyness, I didn't read the instructions for KMP-packages andI fear it's hard to do it correctly. E.g. does this snippet require
fdupes
correctly.
When I used the respective macros %fdupes and %suse_kernel_module_package I
got really weird errors (e.g. 'fg no job control' for %fdupes), because the
corresponding BuildRequires was not in place.
Is it possible to integrate the suse-macros into the Expansion-check so
that
the real error is made more obvious ?
fdupes.rpm or not?
That said, a cool feature would be a script that takes the failed build
log and tries to gues what went wrong, e.g. /fg: no job control/ =>
undefined macro. But not "I refuse to build your package because I think
you are using undefined macros" :-).
Michal
I check for the existence of any custom/distro macros before using them,
makes porting them easier.
The way to avoid undefined macros killing the build is to call them with
substitution, e.g. %{?fdupes} evaluates to "" (nothing) if fdupes is not
defined and "%{fdupes}" if it is, etc.
You can even do if-then e.g. %{?suse_version:%fdupes} (if suse_version
is defined then run fdupes otherwise nothing).
Regards,
MasterPatricko
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |