Skip to contentSkip to conversation

multipath-tools make rpm failure

DISCUSSION Eyal Gordon 2 participants 3 messages Oct 22, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

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

After 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

#1 lore raw

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 1

After 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

#2 lore raw
In reply to Eyal Gordon
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 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?

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