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?
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
On Thursday 01 October 2009 17:37:18 Richard Bos wrote:
Hi,
no-one? Should I open a bug report for this problem?
Yes, might be best,
Andreas
Richard Bos wrote:
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 %(...) [...] 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)
That warning was introduced due to fix bnc#496189
cu Ludwig
buildservice@lists.opensuse.org