Mailinglist Archive: opensuse-packaging (85 mails)

< Previous Next >
Re: [opensuse-packaging] Variables in %Files Section
  • From: Andre Hübner <andre.huebner@xxxxxx>
  • Date: Mon, 2 Jun 2008 15:40:14 +0200
  • Message-id: <DE84D476DBCF45B4A0B2CC57A5B7AA77@xxxxxxxxx>

----- Original Message ----- From: "Michal Marek" <mmarek@xxxxxxx>
To: "Andre Hübner" <andre.huebner@xxxxxx>
Cc: <opensuse-packaging@xxxxxxxxxxxx>
Sent: Monday, June 02, 2008 3:09 PM
Subject: Re: [opensuse-packaging] Variables in %Files Section


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


i package some server-tools which have to be installed on this individual folder cause control domain of server points to this document-root
first time that i use Variables in %files section, in %install section a correct path is composed...
Thanks
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups