[Bug 822277] New: swig creates broken Makefile for ruby bindings (ruby 2.0)
https://bugzilla.novell.com/show_bug.cgi?id=822277 https://bugzilla.novell.com/show_bug.cgi?id=822277#c0 Summary: swig creates broken Makefile for ruby bindings (ruby 2.0) Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 0 Platform: Other OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: kkaempf@suse.com ReportedBy: suse-beta@cboltz.de QAContact: qa-bugs@suse.de CC: coolo@suse.com Found By: Beta-Customer Blocker: --- I started to build the ruby bindings for libapparmor (currently in home:cboltz/apparmor, will also forward to security:apparmor). This works up to openSUSE 12.3, but fails for factory since about a month (in other words: probably since factory comes with ruby 2.0 as default). The error message is: [ 1399s] Making install in ruby [ 1399s] make[2]: Entering directory `/home/abuild/rpmbuild/BUILD/apparmor-2.8.1/libraries/libapparmor/swig/ruby' [ 1399s] make[3]: Entering directory `/home/abuild/rpmbuild/BUILD/apparmor-2.8.1/libraries/libapparmor/swig/ruby' [ 1399s] make -fMakefile.ruby install [ 1399s] make[4]: Entering directory `/home/abuild/rpmbuild/BUILD/apparmor-2.8.1/libraries/libapparmor/swig/ruby' [ 1399s] make[4]: *** No rule to make target `/home/abuild/rpmbuild/BUILDROOT/apparmor-2.8.1-147.1.x86_64/usr/include/ruby-2.0.0/ruby.h', needed by `LibAppArmor_wrap.o'. Stop. The bug is that it searches for ruby.h _inside the buildroot_, which is obviously wrong. Makefile.ruby is generated by swig. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c1
--- Comment #1 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c2
--- Comment #2 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c3
--- Comment #3 from Christian Boltz
- swig generates .c files, not Makefiles ;-)
Hmm, then swig might be innocent ;-) I don't know much about ruby, but libraries/libapparmor/swig/ruby/extconf.rb could be involved ("open('Makefile.ruby', 'w') do |out|" looks like creating Makefile.ruby). Sorry for overlooking this before! extconf.rb also has "require 'mkmf'", which is part of the ruby package (/usr/lib64/ruby/$rubyversion/mkmf.rb) and changed a lot between ruby 1.9 and 2.0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c4
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c5
--- Comment #5 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c6
--- Comment #6 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c7
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c8
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c9
--- Comment #9 from Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c10
--- Comment #10 from Klaus Kämpf
Thanks for your patch!
You're welcome !
Is there a specific reason why you enabled the patch for > 12.3 only?
Well, it is a crude hack, based on the contents of the created Makefile(.ruby) Other distributions have different Makefiles (hence this bug doesn't appear there) and the patch might create more harm. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=822277
https://bugzilla.novell.com/show_bug.cgi?id=822277#c11
--- Comment #11 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com