Bug 6716

Summary: rubygem-passenger is old, unmaintained, broken, and doesn't build
Product: Mageia Reporter: David Walser <luigiwalser>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: cooker, dmorganec, mageia, shlomif
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: rubygem-passenger-2.2.9-4.mga2.src.rpm CVE:
Status comment:
Attachments: log.rubygem-passenger

Description David Walser 2012-07-07 20:02:18 CEST
I was trying to rebuild rubygem-passenger to fix a minor issue (Bug 6714), but it doesn't build:
http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20120707170818.luigiwalser.valstar.30603/log/rubygem-passenger-2.2.9-5.mga3/build.0.20120707171102.log

So, I tried syncing it with Mandriva, who has updated it once since we imported it.  There is a bug in the patch to the RPM package for gem support that makes it fail to extract.  It has been fixed in Mandriva, and an updated patch that would fix it in our rpm package has been provided here:
https://www.mageia.org/pipermail/mageia-dev/2012-June/016522.html

In the meantime, while that bug is still present, the "%setup -q" in the SPEC file has to be replaced with:
%setup -q -c -T -n %{oname}-%{version}
gem unpack %{SOURCE0} --target %{_builddir}

Ugh, so hopefully we can fix that in Cauldron.

Anyway, even building the new version still fails to build, seemingly because of a problem in our rpm package.  I don't know if the patch from Mandriva would fix this too, but I'll attach the build log for that failure.
Comment 1 David Walser 2012-07-07 20:07:06 CEST
Created attachment 2530 [details]
log.rubygem-passenger

Log from trying to build 3.0.5
David Walser 2012-07-07 20:07:29 CEST

CC: (none) => shlomif
Whiteboard: (none) => MGA2TOO

David Walser 2012-07-07 20:08:03 CEST

CC: (none) => johnny

David Walser 2012-07-07 20:08:18 CEST

CC: (none) => mageia

Comment 2 David Walser 2012-07-07 20:35:25 CEST
The current package actually builds in Mageia 2, so this is just a Cauldron problem.

Whiteboard: MGA2TOO => (none)

Comment 3 Shlomi Fish 2012-07-08 18:18:57 CEST
David: what should we do? Can you provide a patch for the subversion working copy at «mgarepo checkout rubygem-passenger» ? Should we simply remove/obsolete this package?

Regards,

-- Shlomi Fish
Comment 4 David Walser 2012-07-08 18:36:27 CEST
Shlomi: That's a good question.  If it was obvious how to fix the build problems I would have fixed it, but neither the Mageia 2 version which was previously in SVN or the updated version I synced from Mandriva will build in Cauldron.  As I mentioned in Bug 6487 this package seems to not fit our naming policy anyway, and furthermore, it installs a configuration file in /etc/httpd/modules.d that doesn't fit the naming standards for files that go there either (there should be a number at the beginning).  I think that if nobody is interested in fixing this one, it would be a good candidate for removal.  We can ask on the -dev list.
Comment 5 Shlomi Fish 2012-07-08 19:47:42 CEST
(In reply to comment #4)
> Shlomi: That's a good question.  If it was obvious how to fix the build
> problems I would have fixed it, but neither the Mageia 2 version which was
> previously in SVN or the updated version I synced from Mandriva will build in
> Cauldron.  As I mentioned in Bug 6487 this package seems to not fit our naming
> policy anyway, and furthermore, it installs a configuration file in
> /etc/httpd/modules.d that doesn't fit the naming standards for files that go
> there either (there should be a number at the beginning).  I think that if
> nobody is interested in fixing this one, it would be a good candidate for
> removal.  We can ask on the -dev list.

OK, let's ask there.

Regards,

-- Shlomi Fish
Comment 6 D Morgan 2012-07-08 23:22:35 CEST
build is fixed, david can you look now ? this is an error with rpm.


+ /usr/lib/rpm/mageia/gem_helper.rb build -fhelper-scripts -j2
/usr/lib/rpm/mageia/gem_helper.rb:60:in `open': No such file or directory - metadata.gz (Errno::ENOENT)
        from /usr/lib/rpm/mageia/gem_helper.rb:60

CC: (none) => dmorganec

Comment 7 David Walser 2012-07-09 02:13:49 CEST
Fixed by D Morgan.

Status: NEW => RESOLVED
Resolution: (none) => FIXED