Andreas Pakulat wrote:
>> The solution in qt4/qtruby 1.4.7 was to rename the appropriate files
>> so that now you need to say require 'Qt4', with a symlink for Qt.rb to
>> Qt3.rb or Qt4.rb. This works on a host-by-host basis, but it can't for a
>> distribution, since I can't simply provide an upgrade path. How shall I
>> handle the fact that Qt.rb is used to include completely different
>> functionalities ?
>
> For existing qt-ruby-packages in Debian there's probably a way to use
> the dependecies to force all packages to do a rebuild including the
> source change (I'm not that firm in this, but this has happened during
> the C++ ABI transitions). As for the stuff a user installed himself:
> IIRC you don't need to provide upgrade paths for that, its been the same
> thing for C++ ABI transitions, although there was no source-change
> necessary but this source change is trivial. Announcing it in the NEWS
> file should make everybody aware of the change.
I prefer to issue a warning for some time. I really seldom read the
NEWS files... Thanks for the information !
>> If you want, as a temporary workaround, I can provide a new version of
>> the package without the conflict (and without Qt.rb) on my personal apt
>> repository.
>
> That would be great, although a source package would do it too, I have a
> build machine here ;)
Just download the source package at
dget -x
http://vincent.fourmond.neuf.fr/debian/unstable/libqt4-ruby_1.4.7-1.dsc
This is the 1.4.7 version, much less segfaults, more stable, better
packaged. You'll need to apply the attached patch (not tried, but really
should work).
Cheers,
Vincent
--
Vincent Fourmond, PhD student
http://vincent.fourmond.neuf.fr/
diff -Naur libqt4-ruby-1.4.7/debian/control libqt4-ruby-1.4.7.new/debian/control
--- libqt4-ruby-1.4.7/debian/control 2007-01-16 09:59:16.000000000 +0100
+++ libqt4-ruby-1.4.7.new/debian/control 2007-01-16 10:05:55.000000000
+0100
@@ -20,7 +20,6 @@
Package: libqt4-ruby1.8
Architecture: any
Depends: libsmokeqt4-1, ruby, ruby1.8, libruby1.8
-Conflicts: libqt0-ruby1.8
Description: ruby bindings for the Qt4 GUI library
Ruby bindings for Qt4.
.
diff -Naur libqt4-ruby-1.4.7/debian/rules libqt4-ruby-1.4.7.new/debian/rules
--- libqt4-ruby-1.4.7/debian/rules 2007-01-16 09:59:16.000000000 +0100
+++ libqt4-ruby-1.4.7.new/debian/rules 2007-01-16 10:06:07.000000000 +0100
@@ -118,7 +118,6 @@
cd $(CURDIR)/debian/libqt4-ruby1.8/usr/bin; rm -f rbqtsh
cd $(CURDIR)/debian/libqt4-ruby1.8/$(ARCHDIR); rm *.la *.so *.so.0; mv
*.so.* qtruby4.so
# Add dummy transition file
- cp $(CURDIR)/debian/Qt.rb
$(CURDIR)/debian/libqt4-ruby1.8/usr/lib/ruby/1.8
dh_install -s
# Must not depend on anything. This is to be called by
# binary-arch/binary-indep