Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 105638
Summary: | rpm -V mailman output is worthless (rpm -Va is noisey) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dax Kelson <dkelson> | ||||
Component: | mailman | Assignee: | John Dennis <jdennis> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | 2lprbe78, aleksey, notting, wtogami | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-05-06 02:55:57 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 100644 | ||||||
Attachments: |
|
Description
Dax Kelson
2003-09-26 06:34:45 UTC
This should really be done as part of %build/%install, not %post. It can't be done as part of %build/%install or I would have. The problem is that when the python files are compiled they reference files in their installed location (sans the buildroot), hence the compilation fails. Compiling the python files in %post is a far easier solution than reworking the upstream sources. FWIW, mailman is explicitly designed to be built on the machine its being installed on, thats the upstream philosophy, this has played havoc over and over again with our rpm which builds another way. I've made many fixes to accomodate our build already. Compiling in %post feels like the right level of investment. BTW, the real problem is that when the build is done, pathnames have been hardcoded into the sources as part of the build process. added you Bill to the CC list as my last edit was in reply to you. Created attachment 94766 [details]
python byte-compiler
Here's a way to do it that should fix paths too. It's been discussed to make
this a normal thing done as part of the build process.
"FWIW, mailman is explicitly designed to be built on the machine its being installed on, thats the upstream philosophy" AFAIK this is no longer the case with Mailman 2.1.2 (released 04/2003). From the NEWS file: - When running make to build Mailman, you can specify $DESTDIR to the install target to specify an alternative location for installation, without influencing the paths stored in e.g. Defaults.py. This is useful to package managers. feh...maybe that doesn't apply to the bytecode... I'll look into it, but for what its worth its not Defaults.py thats the culprit, its paths.py. I'm going on memory here so I may get some of the details wrong but I believe what happens is this: paths.py is created from paths.py.in as part of "configure", this creates a paths.py with path names that are for the actual installation, these are from configure. The effect is that paths.py has hardcoded paths. There are several files that get byte compiled which import paths.py and reference files off one of those paths, the compiler can't find the file during an rpm build because the file really lives in buildroot. I would be surprised if the python module Bill referenced would help in this instance as I believe its modifying default python paths and would not effect a fully qualified pathname being referenced during an import. Oh, sorry, paths *in mailman*. I thought you meant the traceback paths in the compiled python files. http://togami.com/~warren/fedora/mailman-2.1.4-2test.src.rpm * Tue May 04 2004 Warren Togami <wtogami> 3:2.1.4-2test - #105638 fix bytecompile and rpm -V - postun /etc/postfix/aliases fix - clean uninstall (no more empty dirs) I haven't tested this in runtime, but msw said that this *should* fix it. I could be wrong however... Please test. Warren, I rebuilt, and upgraded to this version and I can report that rpm -V mailman no longer produces changed md5sums. This is the output I get after upgrade: [helios@fc1 i386]$ rpm -V mailman S.5....T c /etc/httpd/conf.d/mailman.conf S.5....T /var/mailman/Mailman/mm_cfg.pyc [helios@fc1 i386]$ I was previously getting the changed hashs as reported by Dax Kelson. ALso, if it matters, mailman still functions correctly. Is this the kind of test feedback required? Yes that is exactly the feedback I needed. I hope to get more positive feedback though from other users. If you can, please test other less commonly used functions like creating/deleting lists, and other stuff in the bin directory. OK. Summary of tests: o ./rmlist -a old-list - worked fine o ./newlist test-list test-list-admin tlapass - worked fine o ./add_members -r emaillist test-list - worked fine o ./remove_members -f emaillist -nN test-list - worked fine o ./change_pw -l test-list -p newtlapass - worked fine o ./arch --wipe test-list - worked fine o Sending email to the list as a newly created member - worked fine o Viewing archives - worked fine o Changing options in administrative interface - worked fine So, yea, everything seems dandy. :-) Anything else you'd like tested I didn't cover? mailman-2.1.4-4 heading to rawhide, pretty much the same thing as the above test package. Will a similar fix be added to up2date and other python packages? |