[Pkg-ia32-libs-maintainers] Bug#535274: Bug#535274: /usr/share/ia32-apt-get/.gnupg should probably be moved to /etc

Goswin von Brederlow goswin-v-b at web.de
Wed Jul 1 11:21:56 UTC 2009

Andreas Beckmann <debian at abeckmann.de> writes:

> Package: ia32-apt-get
> Version: 18
> Severity: normal
> Hi,
> ia32-apt-get creates /usr/share/ia32-apt-get/.gnupg with its keyrings
> etc. The contents should probably be moved to /etc/ia32-apt-get/.
> Running 
>   gpg --homedir /etc/ia32-apt-get ...
> should make gpg search the keyrings in /etc/ia32-apt-get/ (without
> .gnupg appended), no more changing $HOME needed to fool gpg.

That isn't a config file where admins can add/removes keys at will. I
don't see any reason the keyring should be changed at all after it was
created. I will consider changing from "HOME=... gpg" to "gpg
--homedir" though. Probably is cleaner that way.

> Removal of the package also leaves the empty directories
> /usr/share/ia32-apt-get/dists/transitional/ and
> /usr/share/ia32-apt-get/dists/ behind (they are removed during purge).
> postrm should probably try to rmdir these (and /usr/share/ia32-apt-get)
> after it did some cleanup in there during the "remove" step.

I normaly have purge on per default. I guess I need to remove that and
do some more testing.

> Thinking again, if there are custom signatures created in
> /usr/share/ia32-apt-get, shouldn't this be moved to /var?

They are created only during package installation/configuration, never
at runtime. As the FHS says:

| /var is specified here in order to make it possible to mount /usr
| read-only. Everything that once went into /usr that is written to
| during system operation (as opposed to installation and software
| maintenance) must be in /var.

This is only at install time so /usr/share/ia32-apt-get seems fine.

> Andreas

Unless you disagree I will close this bug when I change to --homedir
and add the rmdir calls you suggested. Is that OK?


More information about the Pkg-ia32-libs-maintainers mailing list