Bug 5959 - Possibly missing gnupg dependency for spamassassin-spamd
Summary: Possibly missing gnupg dependency for spamassassin-spamd
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Remco Rijnders
QA Contact:
URL:
Whiteboard: MGA2-32-OK
Keywords:
Depends on: 6430
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-17 21:11 CEST by Zoltan Balaton
Modified: 2012-08-02 23:01 CEST (History)
5 users (show)

See Also:
Source RPM: spamassassin-3.3.2-9.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Zoltan Balaton 2012-05-17 21:11:12 CEST
Installing spamassassin-spamd gives:

    37/47: spamassassin-spamd    #############################################
need to run sa-update
error: gpg required but not found!

It comes from the postinstall script trying to run
/usr/bin/sa-update -v
which apparently needs gpg but it is not required by the package and thus not installed.
Comment 1 Dave Hodgins 2012-05-17 21:34:10 CEST
gpg is in the package gnupg, which is required by urpmi, so I'd be
very surprised if it isn't installed.

Is this a new installation?

CC: (none) => davidwhodgins

Comment 2 Zoltan Balaton 2012-05-17 22:11:39 CEST
Yes, it was intalled from the 2-beta3 dual arch CD with minimal install with urpmi (the default minimal setting if no groups are selected). Could it be that gnupg was installed but later removed by auto-orphans for some reason? I can try to check the logs to figure out what happened tomorrow.
Remco Rijnders 2012-05-18 14:00:57 CEST

CC: (none) => remco

Comment 3 Zoltan Balaton 2012-05-18 17:30:47 CEST
Looking at the install logs it seems gnupg was not installed during initial install. As I wrote before I've selected no groups and then selected minimal install with urpmi from minimal install choices (which is also the default). This was with the 2-beta3 dual arch CD. (Haven't tested with the rc but even subsequent updates did not bring in gnupg until manually installed (with no-suggests on).)

However, all this does not matter because if spamd needs gnupg to function then it should Require: it to make sure it's available rather than relying on some obscure unrelated dependency of some other package. (What if someone chooses truly minimal install without urpmi for example? I admit this is unlikely but an existing posibility nevertheless.) Adding the dependency to this package would fix this bug IMO and your question might indicate another missing dependency somewhere else or a bug in the installer selecting the right packages.
Remco Rijnders 2012-05-18 17:38:25 CEST

Assignee: bugsquad => remco

Remco Rijnders 2012-05-18 17:38:35 CEST

Status: NEW => ASSIGNED

Comment 4 Remco Rijnders 2012-05-18 17:47:09 CEST
Hi Zoltan,

Thank you for your report. gpg is listed as a suggest, but indeed not as a hard requirement. I can resolve this in two ways:

1) Add it back as a Requires instead of a Suggests
2) Graciously fall back to sa-update --nogpg when it finds gpg is not installed.

I guess option #1 is the easiest, perhaps with option #2 being the more correct one.

I will release an update after the release of Mageia 2 when the updates open.
Comment 5 Marja Van Waes 2012-05-26 13:04:57 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 6 Zoltan Balaton 2012-05-29 21:20:58 CEST
See Comment 4...
Sander Lepik 2012-05-29 22:14:02 CEST

Keywords: NEEDINFO => (none)
CC: (none) => sander.lepik
Whiteboard: (none) => MGA2TOO

Comment 7 Remco Rijnders 2012-06-22 07:39:22 CEST
QA, I have made an updated package available in 2/updates_testing (spamassassin-3.3.2-10.mga2). Can you please test it? The same update also addresses bug 6430.

Assignee: remco => qa-bugs

Manuel Hiebel 2012-06-22 13:33:37 CEST

Version: Cauldron => 2
Depends on: (none) => 6430
Whiteboard: MGA2TOO => (none)

Comment 8 Zoltan Balaton 2012-06-24 12:02:48 CEST
FWIW:
$ rpm -e --test gnupg
error: Failed dependencies:
	gnupg is needed by (installed) spamassassin-3.3.2-10.mga2.i586
Zoltan Balaton 2012-07-04 09:42:39 CEST

Whiteboard: (none) => MGA2-32-OK

Comment 9 Samuel Verschelde 2012-07-23 18:31:15 CEST
Remmy, can you tell us in what way you solved the issue, so that we know what to test?

CC: (none) => stormi

Comment 10 Samuel Verschelde 2012-07-23 18:32:55 CEST
Assigning back to remmy just so that we don't have 2 bugs assigned to QA for the same update. Validation continues in bug #6430 :)

I gather from comment #8 which I re-read that you added the requires.

Assignee: qa-bugs => remco

Comment 11 Remco Rijnders 2012-07-23 18:38:49 CEST
Hi Samuel,

I added the requirement on gnupg in the spec file. Installing the old version with urpmi --no-suggests (and without gpg installed) should result in the error Zoltan ran in to. Installing the updated version should install gnupg at the same time if it's not installed yet.
Comment 12 Thomas Backlund 2012-08-02 23:01:17 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0146

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.