Bug 24713 - gear misdetects spec version (should use rpmbuild -bE?)
Summary: gear misdetects spec version (should use rpmbuild -bE?)
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: gear (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 14:53 MSK by viy
Modified: 2010-12-08 18:26 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viy 2010-12-08 14:53:20 MSK
gear misdetects spec version (should use rpmbuild -bE?)
Example:
$ j=viy;i=pine; git clone git://git.altlinux.org/people/$j/packages/$i.git $i.git
$ cd pine.git
$ gear --command env | grep gear_pkg_version
gear_pkg_version=4.64
===
should be 4.64L
Comment 1 Dmitry V. Levin 2010-12-08 15:15:53 MSK
1. By design, gear must not use any evals like rpmbuild.
2. If gear cannot guess package version because the spec file is too complex, it is not a gear problem: gear uses these guesed values only to substitute macros while parsing .gear/rules.
Comment 2 viy 2010-12-08 18:26:12 MSK
ok