[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpmbuild and whitespace in path names



On 12/19/06, Felix Schwarz <felix schwarz web de> wrote:
Hi,

can anyone help me building rpms when the _topdir path name contains whitespace?

example command:
> rpmbuild -ba --define '_topdir /home/fs/eg g/build/bdist.linux-x86_64/rpm' --clean build/bdist.linux-x86_64/rpm/SPECS/texttemplate.spec

You might try '_topdir "/home/fs/eg g/build/bdist.linux-x86_64/rpm"'
as your definition.  Basically I just added quoting around the
definition value.  This may fail miserably, as this is just a guess.

As for why you are having issues, well you only defining a macro, and
the interpreter knows nothing of macro expansions such that when it
goes to interpret the line it sees where _topdir was expanded two
words, not one.  Adding the quotes yourself might fix this.  That said
perhaps the macros using _topdir could quote things.  How about filing
a bug report at bugzilla.redhat.com.

Cheers...james


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]