multipath-tools make rpm failure
Hello,
I received the following error while trying to run 'make rpm' for multipath-tools. My local git repository is a clone of the upstream master branch from today.
# make rpm
sed -e "s/__VERSION__//" \
multipath-tools.spec.in > multipath-tools.spec
rpmbuild -bb multipath-tools.spec
error: line 6: Empty tag: Version:
make: *** [rpm] Error 1After looking at the Makefile and adding echo statements to debug, it seems that a ${VERSION} variable is required for the above 'sed' statement, but it is not defined.
Could anyone help me please?
Thanks,
Eyal
Forgot to mention, this is run on CentOS 5.3
Eyal
Quoted 24 lines · Eyal Gordon
Hello,
I received the following error while trying to run 'make rpm' for multipath-tools. My local git repository is a clone of the upstream master branch from today.
# make rpm sed -e "s/__VERSION__//" \ multipath-tools.spec.in > multipath-tools.spec rpmbuild -bb multipath-tools.spec error: line 6: Empty tag: Version: make: *** [rpm] Error 1After looking at the
Makefileand adding echo statements to debug, it seems that a ${VERSION} variable is required for the above 'sed' statement, but it is not defined.Could anyone help me please?
Thanks,
Eyal
Quoted 14 lines · Eyal Gordon
Hello,
I received the following error while trying to run 'make rpm' for multipath-tools. My local git repository is a clone of the upstream master branch from today.
# make rpm sed -e "s/__VERSION__//" \ multipath-tools.spec.in > multipath-tools.spec rpmbuild -bb multipath-tools.spec error: line 6: Empty tag: Version: make: *** [rpm] Error 1
Quoted 6 lines
After looking at the
Makefileand adding echo statements to debug, it seems that a ${VERSION} variable is required for the above 'sed' statement, but it is not defined.Could anyone help me please?
The make file tries to guess the version from the dirname, which is a convenient trick for distributors, but admittedly not fair for developpers.
You can still forge a VERSION value. 0.4.8-git091022 would certainly be a safe choice.
Regards,
cvaroqui