Bug 546464
| Summary: | Review Request: postgresql84 - Updated version of PostgreSQL database | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Tom Lane <tgl> |
| Component: | Package Review | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.5 | CC: | hhorak, notting, pm-rhel, rvokal, syeghiay |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-12-19 19:19:50 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: | 188273, 489479 | ||
|
Description
Tom Lane
2009-12-10 22:52:29 UTC
Comparing to the Fedora spec:
@@ -587,7 +591,7 @@
%pre server
groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
-useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
+useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
%post server
That looks like a typo. Pretty sure you still want -N.
More full review:
- Package meets naming and packaging guidelines - OK
- Spec file matches base package name. - OK, for what this does.
- Spec has consistant macro usage. - OK
- Meets Packaging Guidelines. - OK
- License - OK
- License field in spec matches - OK
- License file included in package - OK
- Spec in American English - OK
- Spec is legible. - OK
- Sources match upstream md5sum:
MD5 (postgresql-8.4.2.tar.bz2) = d738227e2f1f742d2f2d4ab56496c5c6
OK
- Package needs ExcludeArch - OK
- BuildRequires correct - look good
- Spec handles locales/find_lang - OK
- Package has %defattr and permissions on files is good. - OK
- Package has a correct %clean section. -OK
- Package has correct buildroot - good enough
- Package is code or permissible content. - OK
- Doc subpackage needed/used. - OK
- Packages %doc files don't affect runtime. - OK
- Headers/static libs in -devel subpackage. - OK
- Spec has needed ldconfig in post and postun - OK
- .pc files in -devel subpackage/requires pkgconfig - N/A
- .so files in -devel subpackage. - OK
- -devel package Requires: %{name} = %{version}-%{release} - OK
- .la files are removed. - OK
- Package compiles and builds on at least one arch. - didn't test
- Package has no duplicate files in %files. - OK
- Package doesn't own any directories other packages own. - OK
- Package owns all the directories it creates. - OK
- No rpmlint output. - didn't check
- final provides and requires are sane:
One big thing: you have Conflicts in the main and server packages.
It looks like all the other subpackages (-docs, -devel, -pl*, -python, etc.) will also conflict, and need an explicit conflicts.
Yeah, the -N is something I just fixed in the Fedora version a couple days ago --- will copy that into the RHEL version of course. As for the Conflicts, I wasn't sure how far I really needed to go with that: most of the subpackages have explicit versioned dependencies on either the base or server package, so there would be an indirect conflict anyway. Should I go for the verbose form or keep the number of Conflicts declarations to a minimum? Being verbose can't hurt.
You may also want the main and the server package to 'Provide: postgresql = %{version}-%{release}', to satisfy packages that have a raw dependency on them.
The libraries should be covered by soname deps, and having -devel provide postgresql-devel could have problems in the build system.
Hmm, can I do that without getting RPM confused? It sounds like the package would conflict with itself. I'm happy to do that if it'll work. If it's: Conflicts: postgresql < 8.4 Provides: postgresql = 8.4 it won't be an issue. Ah, got it. New specfile and SRPM at http://tgl.fedorapeople.org/ Looks good to me. Got it built after some further fooling with BuildRequires and such --- the settings for Fedora don't work anymore in RHEL5 :-( |