Mailinglist Archive: opensuse-buildservice (248 mails)

< Previous Next >
Re: [opensuse-buildservice] spec file parser line NN: can't expand %(...) warning
  • From: Richard Bos <rbos@xxxxxxxxxxxx>
  • Date: Thu, 1 Oct 2009 17:37:18 +0200
  • Message-id: <200910011737.18832.rbos@xxxxxxxxxxxx>
Hi,

no-one? Should I open a bug report for this problem?

Op dinsdag 29 september 2009 20:55:01 schreef Richard Bos:
I started to package php5-pear-log, that was removed from the openSUSE base
distribution, in the build service in the repository
server:php:applications.
(https://build.opensuse.org/project/show?project=server:php:applications)

When building the package, the following warning is issued (local build,
using osc 0.120):
running changelog2spec --target rpm --file
/home/richard/packages/osc/server:php:applications/php5-pear-log/php5-pear-
log.spec
Warning: spec file parser line 37: can't expand %(...)
Warning: spec file parser line 40: can't expand %(...)
Warning: spec file parser line 41: can't expand %(...)
Warning: spec file parser line 48: can't expand %(...)
Warning: spec file parser line 88: can't expand %(...)
Warning: spec file parser line 89: can't expand %(...)
Warning: spec file parser line 90: can't expand %(...)
Warning: spec file parser line 91: can't expand %(...)
Warning: spec file parser line 92: can't expand %(...)
Warning: spec file parser line 93: can't expand %(...)
and some more of those lines.

The variable that those lines have in common is %{peardir}. This variable
is defined at the top of the spec file. The definition is as follows:
%define peardir %(pear config-get php_dir 2> /dev/null)

The variable gets defined nicely, as in the end the build of spec file
results in an src.rpm and binary rpm.

Is this a deficiency in the changelog2spec file tool?

--
Richard

--
Richard

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups