Bug 82948 - Problems with %post script of mailman-2.1-7 RPM on RH 7.3
Problems with %post script of mailman-2.1-7 RPM on RH 7.3
Status: CLOSED NOTABUG
Product: Red Hat Raw Hide
Classification: Retired
Component: mailman (Show other bugs)
1.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: John Dennis
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-28 16:18 EST by Justin Georgeson
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-04-03 17:24:35 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
The output creted from `rpm -Uvh mailman-2.1-7.i386.rpm` (36.69 KB, text/plain)
2003-01-28 16:19 EST, Justin Georgeson
no flags Details
Changes I made to the spec file to work with postfix on RH 7.3 (1.29 KB, patch)
2003-01-28 16:41 EST, Justin Georgeson
no flags Details | Diff

  None (edit)
Description Justin Georgeson 2003-01-28 16:18:23 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130

Description of problem:
I downloaded the 2.1-7 source RPM of mailman from RawHide for use on a RedHat
7.3 system running Postfix 1.1.7. I made two changes to the spec file for mailman:

1) Added %define __python /usr/bin/python2
2) Changed the post section to use /etc/postfix/aliases instead of /etc/aliases. 

The RPM build successfully, but on install, the section of the post script which
deletes and recompiles python files seems to fail, and the rest of the script
isn't executed. I'm left with a 0 length /etc/aliases files, and /var/mailman is
owned by root:mailman instead of mailman:mailman. I am going to attach a text
file with the output created when I install the compiled RPM.

My main motivation for using the 2.1-7 RPM from rawhide is to get the enhanced
postfix support of 2.1 over 2.0.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. `cd /usr/src/redhat/SPECS`
2. Make the listed changes to the spec file
3. `rpm -bb mailman.spec`
4. `rpm -Uvh ../RPMS/i386/mailman-2.1-7.i386.rpm
    

Actual Results:  See attachment

Expected Results:  Not sure of the *Exact* results, but there should be no errors.

Additional info:
Comment 1 Justin Georgeson 2003-01-28 16:19:34 EST
Created attachment 89661 [details]
The output creted from `rpm -Uvh mailman-2.1-7.i386.rpm`
Comment 2 Justin Georgeson 2003-01-28 16:35:53 EST
I'm stupid. I realised that the spec files calls 'python' to recompile. I
changed the  line to use %{__python} and it worked. I'll attach a diff of my
final spec file.
Comment 3 Justin Georgeson 2003-01-28 16:41:55 EST
Created attachment 89662 [details]
Changes I made to the spec file to work with postfix on RH 7.3

The only straggling problem is the prereq for /usr/bin/newaliases fails, even
though the files exists (as a symlink to /etc/alternatives/mta-newaliases,
which is a symlink to /usr/bin/newaliases.postfix).

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