Mailinglist Archive: opensuse-packaging (85 mails)

< Previous Next >
Re: [opensuse-packaging] Variables in %Files Section
  • From: Michal Marek <mmarek@xxxxxxx>
  • Date: Mon, 02 Jun 2008 15:09:57 +0200
  • Message-id: <4843F125.7080304@xxxxxxx>
Andre Hübner wrote:
%define HOSTNAME_SHORT `/bin/hostname -s`

Processing files: mailgraph-1.14-1
error: Two files on one line: /my/path/`/bin/hostname
error: File must begin with "/": -s`/subpath/file.txt

What could be the problem?

You define the variable to the verbatim string "`/bin/hostname -s`". In
the scripts this is substituted for the output of /bin/hostname -s, but
it fails in the %files section.

But the real problem is somewhere else -- why do you need to store the
build host name in the package?

Michal
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References