After the recent discussion of possibly including cyrus-imapd in this upcoming release, I figured I'd check to see how things work on severn. I've been running 2.1.12 on Red Hat 9 since Red Hat Linux 9's release and figured I'd check for updates. I had the 2.1.13 src rpm from Simon Matter, but hadn't upgraded and found that 2.1.14 has since been released. Also, I had experimented with the 2.2.0 alpha a while ago because I'm interested in the new virtual hosting feature. I found that this has been updated, too, and Simon Matter has and rpm for it (2.2.1-2). So I gave an 'rpmbuild --rebuild' on severn and it failed. It builds fine on Red Hat 9. Upon initial investigation, it appears that a /var/tmp/cyrus-imapd-2.2.1-root/var/tmp/cyrus-imapd-2.2.1-root/ directory is getting created and much of the install is putting files in there instead of just /var/tmp/cyrus-imapd-2.2.1-root. I'm about to dig into the rpm spec file and possibly the default rpm config differences between RHL 9 and servern, but wanted to ask here if anyone else has run into this or knew of any changes in the default rpm config that would cause this. It could be a simple fix to the spec file, but I'm just wondering what changed, given that it works on RHL 9.
On Sat, 2003-07-26 at 01:05, Paul Iadonisi wrote:
[snip]
So I gave an 'rpmbuild --rebuild' on severn and it failed. It builds
Got it. It's the perlhack stuff which appears to not be necessary anymore. The workarounds Simon has in the spec file would have worked except that the %{buildroot} portion is no longer necessary in the PREFIX value of the make install command, either. The 2.1.14-4 package failed with the same problem. If anyone else is interested, attached are two patches, one for the beta (2.2.1-2) and one for the stable (2.1.14-4) spec files. And for reference, Simon's rpms are available at http://home.teleport.ch/simix/
On Sat, 2003-07-26 at 08:27, Paul Iadonisi wrote:
On Sat, 2003-07-26 at 01:05, Paul Iadonisi wrote:
[snip]
So I gave an 'rpmbuild --rebuild' on severn and it failed. It builds
Got it. It's the perlhack stuff which appears to not be necessary anymore. The workarounds Simon has in the spec file would have worked except that the %{buildroot} portion is no longer necessary in the PREFIX value of the make install command, either. The 2.1.14-4 package failed with the same problem. If anyone else is interested, attached are two patches, one for the beta (2.2.1-2) and one for the stable (2.1.14-4) spec files. And for reference, Simon's rpms are available at http://home.teleport.ch/simix/
One thing I'm not so fond of with Simon's RPMs is that the 2.2.1-BETA package doesn't have any indication that it's the beta (even when the original tarball does: "cyrus-imapd-2.2.1-BETA.tar.gz"). The package name-version-release should IMO rather be something like "cyrus-imapd-2.2.1BETA-2" or "cyrus-imapd-2.2.1-0.BETA.2".
Nils
[oops. sorry if this shows up twice. I sent it from the wrong account the first time]
On Sat, 2003-07-26 at 08:18, Nils Philippsen wrote:
[snip]
One thing I'm not so fond of with Simon's RPMs is that the 2.2.1-BETA package doesn't have any indication that it's the beta (even when the original tarball does: "cyrus-imapd-2.2.1-BETA.tar.gz"). The package name-version-release should IMO rather be something like "cyrus-imapd-2.2.1BETA-2" or "cyrus-imapd-2.2.1-0.BETA.2".
Agreed. However, it *is* a beta and it's not too hard to fix that. Without looking at the spec file, the resultant binary rpms at least appear to put all the files in the right places (no mixing of /etc and /usr/local crap for one example -- A real annoyance from many packagers I've seen). The spec file is actually pretty good, too. He uses macros everywhere possible (almost to a fault), good formating, good division of sub packages, good portability (Red Hat 6.2 - 9, at least). His %post script is a bit long for my tastes, though. Anyhow, it's a good starting point and maybe he'd be willing to accept patches to bring it in line with Red Hat's guidelines, if it's necessary.