[opensuse-buildservice] spec file parser line NN: can't expand %(...) warning
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 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
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 -- Andreas Jaeger, Program Manager openSUSE, aj@{novell.com,opensuse.org} Twitter: jaegerandi | Identica: jaegerandi SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
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 -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Andreas Jaeger
-
Ludwig Nussel
-
Richard Bos