Mailinglist Archive: opensuse-packaging (174 mails)

< Previous Next >
Re: [opensuse-packaging] /var/adm/update-scripts mechanism changed?
  • From: Marguerite Su <i@xxxxxxxxxxxxx>
  • Date: Sat, 23 Nov 2013 01:57:02 +0800
  • Message-id: <CAK0PdA=a9Mo5XNH42+xh_m=4Y1k_vFP9nrO_YOkMyFeoY33wRw@mail.gmail.com>
On Sat, Nov 23, 2013 at 12:47 AM, Michael Schroeder <mls@xxxxxxx> wrote:

Also, %{_docdir}/steam/ is marked as ghost, so installing the
rpm will not create the directory.

It was marked %ghost by the original packager because:

The content in this directory doesn't exist when the %install section
is finished. (at least on 12.3)

%install section just created the directory. The contents are filled
in later in %post section (something like that).

Without a %ghost the package will fail to build.

That's the black magic.

And /usr/lib/steam is also marked %ghost, but it is created and owned
by steam package.

We write such things in %files section simply because we want the rpm
to own all the things, the directories created in %install section,
and the filled contents in %post section.

Marguerite
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >