RubyRDF Debian Packaging

by Dan Brickley <danbri@w3.org>

see RubyRDF Wiki for possibly more recent notes.

package metadata: control

Machinery for packaging rubyrdf-ruby debian package.

How it works: config.save is a pre-generated config file for the ruby installer, install.rb. This determines where the installed files get put, and decides this once and for all at packaging time, not at install time. If we want to vary where the files go, we need to make a different Debian package.

Useful info

if it installs in wrong place for your Ruby to find... ruby -I /usr/lib/ruby/site_ruby/1.6/ rdftest.rb danbri-foaf.rdf ...should work as a stopgap.

in debian-file/debian/rules we have:

libdir := $(shell ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')

...this should probably be hardcoded, for safety. On my box the value is '/usr/lib/ruby/1.6/'.

which ruby stuff is installed?:

dpkg -l \*ruby\*|more

useful?:

 ruby -rrbconfig -e "puts Config::CONFIG['archdir']"
 ruby -rrbconfig -e "puts Config::CONFIG.inspect"

The Makefile: this could be tidier and more makefiley in spirit...

Fink

see also Fink/macosx *.info file

Not currently believed to work.

Notes

So here's the story... the rules in the debian/ directory control where things get created. look in the tmp/ subdir to see what it'll do to your system, or use dpkg -c <packagefile.deb> to see contents of the generated .deb

problem is that this is all done once on the packaging machine, and not on the unpacking machine. So we'll need to make a version of the package for each major version of Ruby in Debian. Bummer. alternative would be to have a pre-install script generate a custom deb package locally, but then we'd need all sorts of debian packaging cruft installed on the machines of everyone who wanted to _install_ the package. So division of labour suggests that its easier for package owner to take the hit of rebuilding the package for different ruby releases. Blech. mailto:danbri@w3.org

seealso: dpkg -c blah-blah.deb

 ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]'; echo
 apt-cache search ruby| grep xml

see debian-files/debian/control for my package description. we have a suggested dependency on the xml parser should do same re rdbms stuff, dbi?

re packaging, seealso: http://www.ruby-lang.org/en/raa-list.rhtml?name=setup.rb http://cvs.ilrt.org/cvsweb/redland/librdf/ruby/ http://www.redland.opensource.ac.uk/docs/ruby.html


[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -  
[TXT]HEADER.html20-Mar-2003 17:00 2.9K 
[   ]Makefile18-Apr-2003 17:22 3.0K 
[   ]Packages24-Feb-2014 22:19 909  
[   ]Packages.gz24-Feb-2014 22:19 428  
[   ]Sources24-Feb-2014 22:20 824  
[   ]Sources.gz24-Feb-2014 22:20 355  
[DIR]debian-files/26-Nov-2002 17:37 -  
[TXT]debian-rdf-howto.txt07-Feb-2003 17:49 2.1K 
[   ]fink.config.save07-Feb-2003 17:34 377  
[DIR]fink/07-Feb-2003 23:57 -  
[   ]make_ruby_install_script.rb18-Apr-2003 17:22 376  
[   ]rubyrdf-ruby-0.9.tar.gz08-Feb-2003 02:07 40K 
[   ]rubyrdf-ruby_0.9-1.dsc18-Apr-2003 17:22 334  
[   ]rubyrdf-ruby_0.9-1.info07-Feb-2003 23:56 578  
[   ]rubyrdf-ruby_0.9-1.tar.gz18-Apr-2003 17:22 45K 
[   ]rubyrdf-ruby_0.9-1_all.deb18-Apr-2003 17:22 39K 
[   ]rubyrdf-ruby_0.9-1_i386.changes18-Apr-2003 17:22 648  
[   ]rubyrdf-ruby_0.91-1.dsc24-Feb-2014 22:20 337  
[   ]rubyrdf-ruby_0.91-1.tar.gz24-Feb-2014 22:20 59K 
[   ]rubyrdf-ruby_0.91-1_all.deb24-Feb-2014 22:19 54K 
[   ]rubyrdf-ruby_0.91-1_i386.changes24-Feb-2014 22:20 858