From cathal.alexandria at gnostai.org Sun Dec 2 21:26:46 2012 From: cathal.alexandria at gnostai.org (Cathal Mc Ginley) Date: Sun, 2 Dec 2012 21:26:46 +0000 Subject: [Alexandria-list] Alexandria Maintenance Release In-Reply-To: <1354312781.27326.83.camel@rommel> References: <1344555077.32545.40.camel@kip-laptop> <20120810004757.5bbd1a08@jadzia.dax> <1354312781.27326.83.camel@rommel> Message-ID: <20121202212646.11193bbb@jadzia.dax> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 30 Nov 2012 13:59:41 -0800 Kip Warner wrote: > On Fri, 2012-08-10 at 00:47 +0100, Cathal Mc Ginley wrote: > > On Thu, 09 Aug 2012 16:31:17 -0700 > > Kip Warner wrote: > > > > > > > But I would like to make a reasonable request that you consider > > > trying to get Alexandria's required runtime reconciled with what > > > the Precise and later repository furnishes, or what you may have > > > to provide yourself in the PPA. That way people aren't locked out > > > of the functionality they grew to be dependent on while allowing > > > you to move on to completing Palatina. > > > > You're quite right. I'll upgrade my Ubuntu partition tomorrow and > > see what the issue is, and keep you posted on my progress, > > step-by-step. > > Hey Cathal. I hope I catch you in good health. Do you have any new > information for us? I've got a big stack of book entries I need to > stuff in Alexandria to keep track of them. > Did you miss the notification (13th Aug) for the 0.6.9 release? http://alexandria.rubyforge.org/news/2012-08-14--0.6.9-released.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE iEYEARECAAYFAlC7x5YACgkQfMAUnRdb+8p+hACfQjHd6a+3uKt/4rzn9eP6vSrn O+kAn0l592BIfLhTdVykWU2xX9auCDmY =CU/m -----END PGP SIGNATURE----- From kip at thevertigo.com Mon Dec 3 00:19:49 2012 From: kip at thevertigo.com (Kip Warner) Date: Sun, 02 Dec 2012 16:19:49 -0800 Subject: [Alexandria-list] Alexandria Maintenance Release In-Reply-To: <20121202212646.11193bbb@jadzia.dax> References: <1344555077.32545.40.camel@kip-laptop> <20120810004757.5bbd1a08@jadzia.dax> <1354312781.27326.83.camel@rommel> <20121202212646.11193bbb@jadzia.dax> Message-ID: <1354493989.3242.25.camel@rommel> On Sun, 2012-12-02 at 21:26 +0000, Cathal Mc Ginley wrote: > On Fri, 30 Nov 2012 13:59:41 -0800 > Kip Warner wrote: > > > On Fri, 2012-08-10 at 00:47 +0100, Cathal Mc Ginley wrote: > > > On Thu, 09 Aug 2012 16:31:17 -0700 > > > Kip Warner wrote: > > > > > > > > > > But I would like to make a reasonable request that you consider > > > > trying to get Alexandria's required runtime reconciled with what > > > > the Precise and later repository furnishes, or what you may have > > > > to provide yourself in the PPA. That way people aren't locked out > > > > of the functionality they grew to be dependent on while allowing > > > > you to move on to completing Palatina. > > > > > > You're quite right. I'll upgrade my Ubuntu partition tomorrow and > > > see what the issue is, and keep you posted on my progress, > > > step-by-step. > > > > Hey Cathal. I hope I catch you in good health. Do you have any new > > information for us? I've got a big stack of book entries I need to > > stuff in Alexandria to keep track of them. > > > > Did you miss the notification (13th Aug) for the 0.6.9 release? > > http://alexandria.rubyforge.org/news/2012-08-14--0.6.9-released.html Hey Cathal. Yes, I missed the notification and hadn't realized you had published a PPA. Thank you so much for the work you are doing. I'm just updating my library now. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From ras at acm.org Tue Dec 4 05:13:05 2012 From: ras at acm.org (Robert A. Schmied) Date: Mon, 03 Dec 2012 21:13:05 -0800 Subject: [Alexandria-list] Alexandria Maintenance Release In-Reply-To: <20121202212646.11193bbb@jadzia.dax> References: <1344555077.32545.40.camel@kip-laptop> <20120810004757.5bbd1a08@jadzia.dax> <1354312781.27326.83.camel@rommel> <20121202212646.11193bbb@jadzia.dax> Message-ID: <50BD8661.3050701@acm.org> Cathal Mc Ginley wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Fri, 30 Nov 2012 13:59:41 -0800 > Kip Warner wrote: > > >>On Fri, 2012-08-10 at 00:47 +0100, Cathal Mc Ginley wrote: >> >>>On Thu, 09 Aug 2012 16:31:17 -0700 >>>Kip Warner wrote: >>> >>> >>> >>>>But I would like to make a reasonable request that you consider >>>>trying to get Alexandria's required runtime reconciled with what >>>>the Precise and later repository furnishes, or what you may have >>>>to provide yourself in the PPA. That way people aren't locked out >>>>of the functionality they grew to be dependent on while allowing >>>>you to move on to completing Palatina. >>> >>>You're quite right. I'll upgrade my Ubuntu partition tomorrow and >>>see what the issue is, and keep you posted on my progress, >>>step-by-step. >> >>Hey Cathal. I hope I catch you in good health. Do you have any new >>information for us? I've got a big stack of book entries I need to >>stuff in Alexandria to keep track of them. >> > > > Did you miss the notification (13th Aug) for the 0.6.9 release? > > http://alexandria.rubyforge.org/news/2012-08-14--0.6.9-released.html > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE > > iEYEARECAAYFAlC7x5YACgkQfMAUnRdb+8p+hACfQjHd6a+3uKt/4rzn9eP6vSrn > O+kAn0l592BIfLhTdVykWU2xX9auCDmY > =CU/m > -----END PGP SIGNATURE----- > _______________________________________________ > Alexandria-list mailing list > Alexandria-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/alexandria-list > it seems that when i select library->add book manually my source install version of alexandria will crash with this spew (with --debug enabled): . . . D, [2012-12-03T20:48:22.850004 #10152] DEBUG -- : Books are empty: true D, [2012-12-03T20:48:22.851299 #10152] DEBUG -- : on_books_selection_changed Delete: false /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/gtk_thread_help.rb: line 78 GLib-GObject-WARNING **:value "-6" of type `gint' is invalid or out of range for property `wrap-width' of type `gint' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/gtk_thread_help.rb: line 78 GLib-GObject-WARNING **:value "-6" of type `gint' is invalid or out of range for property `width' of type `gint' D, [2012-12-03T20:48:29.169890 #10152] DEBUG -- : selected_library Exception `NoMethodError' at /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:198 - undefined method `each' for nil:NilClass ----------------------- Alexandria just crashed ----------------------- Timestamp: Mon Dec 03 20:48:29 -0800 2012 Message: undefined method `each' for nil:NilClass Backtrace: /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:198:in `rebuild_models' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:192:in `each' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:192:in `rebuild_models' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:191:in `each' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:191:in `rebuild_models' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:142:in `models' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:76:in `complete' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/completion_models.rb:20:in `complete_titles' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/dialogs/book_properties_dialog_base.rb:39:in `initialize' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/dialogs/new_book_dialog_manual.rb:27:in `initialize' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/callbacks.rb:57:in `new' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/callbacks.rb:57:in `on_add_book_manual' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/gtk_thread_help.rb:78:in `call' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/gtk_thread_help.rb:78:in `main' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui/gtk_thread_help.rb:78:in `main_with_queue' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui.rb:45:in `start_gtk' /usr/local/src/alexandria-0.6.9/lib/alexandria/ui.rb:50:in `main' /usr/local/src/alexandria-0.6.9/lib/alexandria.rb:40:in `main' /usr/local/src/alexandria-0.6.9/bin/alexandria:62 Release: 0.6.9(0.6.9) Uname -a: SunOS xxx 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Blade-1000 -- Please report this dump to 'alexandria-list at rubyforge.org' with some additional information, such as the description of the crash and the steps to reproduce it (if it's possible). i've managed to determine if i comment out the line (commented out below) in lib/alexandria/ui/completion_models.rb the crash doesn't occur. 188 def rebuild_models 189 titles, authors, publishers, editions, borrowers = [],[],[],[],[] 190 tags = [] 191 @libraries.each do |library| 192 library.each do |book| 193 titles << book.title 194 authors.concat(book.authors) 195 publishers << book.publisher 196 editions << book.edition 197 borrowers << book.loaned_to 198 # book.tags.each {|tag| tags << tag } 199 end 200 end i'm running on old (existing) book libraries from alex versions 0.6.8, 0.6.2 and 0.6.1 which might be part of the problem !? and probably have a very strange set of ruby, gtk2 and gnome components as well. i've yet to determine what is causing all the GLib-GObject-WARNING **:value "-6" of type ... but they are warnings and don't seem to have any effect i've been able to discover. ras From milton.stanley at gmail.com Tue Dec 4 18:25:34 2012 From: milton.stanley at gmail.com (Milton Stanley) Date: Tue, 4 Dec 2012 12:25:34 -0600 Subject: [Alexandria-list] Alexandria Maintenance Release In-Reply-To: <50BD8661.3050701@acm.org> References: <1344555077.32545.40.camel@kip-laptop> <20120810004757.5bbd1a08@jadzia.dax> <1354312781.27326.83.camel@rommel> <20121202212646.11193bbb@jadzia.dax> <50BD8661.3050701@acm.org> Message-ID: Taking a stab based on error message and code; try changing the commented out line to: books.tags.each { |tag| tags << tag } unless book.tags.nil? -Milton On Mon, Dec 3, 2012 at 11:13 PM, Robert A. Schmied wrote: > titles, authors, publishers, editions, borrowers = [],[],[],[],[] -------------- next part -------------- An HTML attachment was scrubbed... URL: From cathal.alexandria at gnostai.org Tue Dec 4 19:31:15 2012 From: cathal.alexandria at gnostai.org (Cathal Mc Ginley) Date: Tue, 4 Dec 2012 19:31:15 +0000 Subject: [Alexandria-list] Alexandria Maintenance Release In-Reply-To: References: <1344555077.32545.40.camel@kip-laptop> <20120810004757.5bbd1a08@jadzia.dax> <1354312781.27326.83.camel@rommel> <20121202212646.11193bbb@jadzia.dax> <50BD8661.3050701@acm.org> Message-ID: <20121204193115.3326b434@jadzia.dax> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 4 Dec 2012 12:25:34 -0600 Milton Stanley wrote: > Taking a stab based on error message and code; try changing the > commented out line to: > > books.tags.each { |tag| tags << tag } unless book.tags.nil? > > -Milton Yep, quite right. That fix works, I've added the patch. I wish I knew how these YAML files are being created with those various fields set to nil. When a Book is created, tags is set to an empty list. Perhaps some provider is setting it to nil by mistake. Another way around these problems is to manually edit the broken YAML files, changing lines like: tags: to tags: [] - C. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE iEYEARECAAYFAlC+T4MACgkQfMAUnRdb+8pdqwCeIYiIjN3E+ulcZsPjkA6dEISP afIAoMv4YbyyCwV6gDOoZg2pQJSqPEiW =2Bqy -----END PGP SIGNATURE----- From ras at acm.org Tue Dec 4 23:04:09 2012 From: ras at acm.org (Robert A. Schmied) Date: Tue, 04 Dec 2012 15:04:09 -0800 Subject: [Alexandria-list] Alexandria Maintenance Release In-Reply-To: <20121204193115.3326b434@jadzia.dax> References: <1344555077.32545.40.camel@kip-laptop> <20120810004757.5bbd1a08@jadzia.dax> <1354312781.27326.83.camel@rommel> <20121202212646.11193bbb@jadzia.dax> <50BD8661.3050701@acm.org> <20121204193115.3326b434@jadzia.dax> Message-ID: <50BE8169.1030005@acm.org> Cathal Mc Ginley wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 4 Dec 2012 12:25:34 -0600 > Milton Stanley wrote: > > >>Taking a stab based on error message and code; try changing the >>commented out line to: >> >>books.tags.each { |tag| tags << tag } unless book.tags.nil? >> >>-Milton > > > > Yep, quite right. That fix works, I've added the patch. > > I wish I knew how these YAML files are being created with those various > fields set to nil. When a Book is created, tags is set to an empty > list. Perhaps some provider is setting it to nil by mistake. well -- the libraries and files (YAML files?) are legacies from previous alexandria versions -- in particular 0.6.8 and a hack based on 0.6.6-beta2. plus the sample libraries versioned 0.6.2 and 0.6.1 from 0.6.6-beta2 (e.g ../alexandria-0.6.6-beta2/spec/data/libraries//My Library/) so i may be causing the trouble to start with ;-) ras > > Another way around these problems is to manually edit the broken YAML > files, changing lines like: > > tags: > > to > > tags: [] > > > - C. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE > > iEYEARECAAYFAlC+T4MACgkQfMAUnRdb+8pdqwCeIYiIjN3E+ulcZsPjkA6dEISP > afIAoMv4YbyyCwV6gDOoZg2pQJSqPEiW > =2Bqy > -----END PGP SIGNATURE----- From milton.stanley at gmail.com Tue Dec 4 23:17:29 2012 From: milton.stanley at gmail.com (Milton Stanley) Date: Tue, 4 Dec 2012 17:17:29 -0600 Subject: [Alexandria-list] Alexandria Maintenance Release In-Reply-To: <50BE8169.1030005@acm.org> References: <1344555077.32545.40.camel@kip-laptop> <20120810004757.5bbd1a08@jadzia.dax> <1354312781.27326.83.camel@rommel> <20121202212646.11193bbb@jadzia.dax> <50BD8661.3050701@acm.org> <20121204193115.3326b434@jadzia.dax> <50BE8169.1030005@acm.org> Message-ID: One could add a utility to run through the YAML files and convert the blank references to empty lists (or do a check on loading the YAML file in the object). Once I get my Ubuntu dist running again I'll look at it; a few years back I had YAML figured out but I can't remember all the tricks I used then. -Milton On Tue, Dec 4, 2012 at 5:04 PM, Robert A. Schmied wrote: > Cathal Mc Ginley wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On Tue, 4 Dec 2012 12:25:34 -0600 >> Milton Stanley wrote: >> >> >> Taking a stab based on error message and code; try changing the >>> commented out line to: >>> >>> books.tags.each { |tag| tags << tag } unless book.tags.nil? >>> >>> -Milton >>> >> >> >> >> Yep, quite right. That fix works, I've added the patch. >> >> I wish I knew how these YAML files are being created with those various >> fields set to nil. When a Book is created, tags is set to an empty >> list. Perhaps some provider is setting it to nil by mistake. >> > > well -- the libraries and files (YAML files?) are legacies from previous > alexandria versions -- in particular 0.6.8 and a hack based on 0.6.6-beta2. > plus the sample libraries versioned 0.6.2 and 0.6.1 from 0.6.6-beta2 > (e.g ../alexandria-0.6.6-beta2/**spec/data/libraries//My > Library/) > so i may be causing the trouble to start with ;-) > > ras > > > >> Another way around these problems is to manually edit the broken YAML >> files, changing lines like: >> >> tags: >> >> to >> >> tags: [] >> >> >> - C. >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.11 (GNU/Linux) >> Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE >> >> iEYEARECAAYFAlC+**T4MACgkQfMAUnRdb+**8pdqwCeIYiIjN3E+**ulcZsPjkA6dEISP >> afIAoMv4YbyyCwV6gDOoZg2pQJSqPE**iW >> =2Bqy >> -----END PGP SIGNATURE----- >> > > ______________________________**_________________ > Alexandria-list mailing list > Alexandria-list at rubyforge.org > http://rubyforge.org/mailman/**listinfo/alexandria-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ras at acm.org Sun Dec 16 00:10:51 2012 From: ras at acm.org (Robert A. Schmied) Date: Sat, 15 Dec 2012 16:10:51 -0800 Subject: [Alexandria-list] hacks to ease odd-ball platform portability Message-ID: <50CD118B.5090200@acm.org> cathal, other interested readers this is mostly informational, but possibly useful too. ras some, most, but not all embedded os dependent commands (e.g. launched via backticks, exec or system) are hardcoded directly without being stored in a variable or with any provision for tweaking the environment for the command. normally such commands would be fully compatible with the environment being used for alexandria, but that isn't necessarily always the case as my odd-ball solaris platform demonstrates. for example, i need to run ruby and alexandria with /usr/local/lib early on the loader path, but the sun gnome stuff wants no part of the libs in that subdir (gnome-help (aka yelp) as an example). as for the utilities themselves, tar being the worst offender; sun's standard (/usr/bin) makes no provision for 'internal' compression of any sort, but the gnu version (/usr/sfw/bin/gtar) does. so in order to isolate these os portability issues into a central place for easy user alteration i've made a couple of hacks to the alexandria-0.6.9 source files that place such utility commands into ruby variables and define a couple of needed run-time related variables (that i at least need) to make alexandria portable to my os/platform. i decided the way to initialize these variables was to extend file lib/alexandria/config.rb; that may not be the best solution, but it seemed to be the most direct and least impactful ... likely there are other, better ways to accomplish this ... unfortunately, changing the contents of ./lib/alexandria/config.rb also requires changing the contents of both ./.config and Rakefile. that part of the problem/solution i did not investigate ... since i don't recall ever running Rakefile as is indicated in the INSTALL file, my solution was to just hack in the things i need directly into the distribution lib/alexandria/config.rb file and go. so now my hacked lib/alexandria/config.rb contains these additional (now alexandria global) ruby variables: OS_UTIL_LD_PATH = "LD_LIBRARY_PATH=''" OS_UTIL_RUN_PATH = "LD_RUN_PATH=''" OS_UTIL_PATHS = "#{OS_UTIL_LD_PATH} #{OS_UTIL_RUN_PATH}" GCONFTOOL = "#{OS_UTIL_PATHS} gconftool-2" TAR = "#{OS_UTIL_PATHS} gtar" UNAME = "#{OS_UTIL_PATHS} uname" ZIP = "#{OS_UTIL_PATHS} zip" INTLTOOL_MERGE = "#{OS_UTIL_PATHS} intltool-merge" GNOME_HELP = "#{OS_UTIL_PATHS} gnome-help" alexandria-0.6.9 files that use one of exec, system or backticks (``) to invoke some os/platform utility: + ./bin/alexandria =-= `uname` + ./lib/alexandria/config.rb =-= initialize newly added variables + ./lib/alexandria/export_library.rb =-= `tar` and `zip` -- see note 1) + ./lib/alexandria/preferences.rb =-= gconftool-2 (via #{GCONFTOOL} -- note 2) + ./lib/alexandria/ui/init.rb =-= `gnome-help` + ./lib/alexandria/ui/dialogs/book_properties_dialog_base.rb =-= `uname` + ./lib/alexandria/ui/dialogs/export_dialog.rb =-= `uname` + ./util/rake/gettextgenerate.rb =-= `intltool-merge` *** untested *** - ./lib/alexandria/ui/ui_manager.rb =-= the gconf command selection --- no change - ./Rakefile --- not studied for changes to implement these changes programmatically notes 1) with ruby-1.8.7 rexml/formatters/pretty.rb needed patch to 'wrap' method to avoid the following problem: Exception `TypeError' at /usr/local/lib/ruby/1.8/rexml/formatters/pretty.rb:131 - no implicit conversion from nil to integer see http://www.ruby-forum.com/topic/128842 at very bottom for the two lines that need to be added to 'wrap' method -=- newer rubies (more standard platforms) will likely not exhibit this issue 2) all reference to gconftool-2 are now via variable #{GCONFTOOL} which is initialized from #{Alexandria::GCONFTOOL} below are the diffs for these changes based on the alexandria-0.6.9 source distribution: ## ## note -- this file will have a large offset in line numbers between ## the original version and the patched version due to changes ## i've made that are not generally applicable ... ## --- ./bin/alexandria.orig 2009-12-12 12:58:08.000000000 -0800 +++ ./bin/alexandria 2012-12-14 14:38:24.154228000 -0800 @@ -42,7 +70,7 @@ Backtrace: #{e.backtrace.join("\n")} Release: #{Alexandria::VERSION}(#{Alexandria::DISPLAY_VERSION}) -Uname -a: #{`uname -a`.chomp} +Uname -a: #{`Alexandria::UNAME -a`.chomp} -- Please report this dump to '#{Alexandria::LIST}' with some additional information, such as the description of the crash and the steps to reproduce it --- ./lib/alexandria/config.rb.orig 2012-08-13 18:36:24.000000000 -0700 +++ ./lib/alexandria/config.rb 2012-12-14 08:22:45.144408000 -0800 @@ -2,6 +2,19 @@ # Do not edit it directly. module Alexandria + + OS_UTIL_LD_PATH = "LD_LIBRARY_PATH=``" + OS_UTIL_RUN_PATH = "LD_RUN_PATH=``" + OS_UTIL_PATHS = "#{OS_UTIL_LD_PATH} #{OS_UTIL_RUN_PATH}" + + GCONFTOOL = "#{OS_UTIL_PATHS} gconftool-2" + TAR = "#{OS_UTIL_PATHS} gtar" + UNAME = "#{OS_UTIL_PATHS} uname" + ZIP = "#{OS_UTIL_PATHS} zip" + + INTLTOOL_MERGE = "#{OS_UTIL_PATHS} intltool-merge" + GNOME_HELP = "#{OS_UTIL_PATHS} gnome-help" + module Config SHARE_DIR = '/usr/share' SOUNDS_DIR = "#{SHARE_DIR}/sounds/alexandria" --- ./lib/alexandria/export_library.rb.orig 2009-03-25 16:09:32.000000000 -0700 +++ ./lib/alexandria/export_library.rb 2012-12-14 15:32:50.745614000 -0800 @@ -151,7 +151,7 @@ end copy_covers(File.join(Dir.tmpdir, "images")) Dir.chdir(Dir.tmpdir) do - output = `tar -cjf \"#{filename}\" onix.xml images 2>&1` + output = `#{Alexandria::TAR} -cjf \"#{filename}\" onix.xml images 2>&1` raise output unless $?.success? end FileUtils.rm_rf(File.join(Dir.tmpdir, "images")) @@ -170,7 +170,7 @@ end copy_covers(File.join(Dir.tmpdir, "images")) Dir.chdir(Dir.tmpdir) do - output = `zip -q -r \"#{filename}\" tellico.xml images 2>&1` + output = `#{Alexandria::ZIP} -q -r \"#{filename}\" tellico.xml images 2>&1` raise output unless $?.success? end FileUtils.rm_rf(File.join(Dir.tmpdir, "images")) --- ./lib/alexandria/preferences.rb.orig 2011-11-19 06:48:14.000000000 -0800 +++ ./lib/alexandria/preferences.rb 2012-12-14 15:24:10.717142000 -0800 @@ -30,7 +30,7 @@ HTTP_PROXY_MODE = "/system/proxy/mode" URL_HANDLERS_DIR = "/desktop/gnome/url-handlers" - GCONFTOOL = "gconftool-2" + GCONFTOOL = "#{Alexandria::GCONFTOOL}" def initialize() @alexandria_settings = {} @@ -205,10 +205,10 @@ a = new_list[0] b = new_list[1] pair = "(#{a},#{b})" - `gconftool-2 --type pair --car-type int --cdr-type int --set #{var_path} "#{pair}"` + `#{GCONFTOOL} --type pair --car-type int --cdr-type int --set #{var_path} "#{pair}"` else list = make_list_string(new_list) - `gconftool-2 --type list --list-type #{list_type} --set #{var_path} "#{list}"` + `#{GCONFTOOL} --type list --list-type #{list_type} --set #{var_path} "#{list}"` end end @@ -235,7 +235,7 @@ if /cols_width/ =~ var_path puts value_str end - ret = `gconftool-2 --type #{type} --set #{var_path} #{value_str}` + ret = `#{GCONFTOOL} --type #{type} --set #{var_path} #{value_str}` end --- ./lib/alexandria/ui/init.rb.orig 2011-11-19 06:44:48.000000000 -0800 +++ ./lib/alexandria/ui/init.rb 2012-12-10 11:39:11.945572000 -0800 @@ -83,7 +83,14 @@ if section section_index = "##{section}" end - exec("gnome-help ghelp:alexandria#{section_index}") if fork.nil? + + log.info { + "about to launch gnome-help:\n"\ + " \"#{Alexandria::GNOME_HELP} ghelp:alexandria#{section_index}\"" + } if $DEBUG + + exec("#{Alexandria::GNOME_HELP} ghelp:alexandria#{section_index}") if fork.nil? + rescue Exception => e log.error(self) { "Unable to load help browser" } ErrorDialog.new(parent, _("Unable to launch the help browser"), --- ./lib/alexandria/ui/dialogs/book_properties_dialog_base.rb.orig 2011-11-19 06:45:26.000000000 -0800 +++ ./lib/alexandria/ui/dialogs/book_properties_dialog_base.rb 2012-12-14 15:39:46.692396000 -0800 @@ -277,7 +277,7 @@ @@latest_filechooser_directory = ENV['HOME'] def on_change_cover - backend = `uname`.chomp == "FreeBSD" ? "neant" : "gnome-vfs" + backend = `#{Alexandria::UNAME}`.chomp == "FreeBSD" ? "neant" : "gnome-vfs" dialog = Gtk::FileChooserDialog.new(_("Select a cover image"), @book_properties_dialog, Gtk::FileChooser::ACTION_OPEN, --- ./lib/alexandria/ui/dialogs/export_dialog.rb.orig 2009-03-25 16:09:32.000000000 -0700 +++ ./lib/alexandria/ui/dialogs/export_dialog.rb 2012-12-14 15:40:51.316104000 -0800 @@ -48,7 +48,7 @@ THEMES = Alexandria::WebTheme.all def initialize(parent, library, sort_order) - backend = `uname`.chomp == "FreeBSD" ? "neant" : "gnome-vfs" + backend = `#{Alexandria::UNAME}`.chomp == "FreeBSD" ? "neant" : "gnome-vfs" super(_("Export '%s'") % library.name, nil, Gtk::FileChooser::ACTION_SAVE, --- ./util/rake/gettextgenerate.rb.orig 2009-12-15 14:55:35.000000000 -0800 +++ ./util/rake/gettextgenerate.rb 2012-12-14 15:46:36.139199000 -0800 @@ -72,10 +72,11 @@ def generate_desktop(infile, outfile) @generated_files << outfile file outfile => [infile, *po_files] do |f| - unless `intltool-merge --version` + unless `#{Alexandria::INTLTOOL_MERGE} --version` raise Exception, "Need to install intltool" end - system("intltool-merge -d #{@po_dir} #{infile} #{outfile}") + system("#{Alexandria::INTLTOOL_MERGE} "\ + "-d #{@po_dir} #{infile} #{outfile}") end end From waldner at waldner.priv.at Sat Dec 29 00:27:44 2012 From: waldner at waldner.priv.at (Robert Waldner) Date: Sat, 29 Dec 2012 01:27:44 +0100 Subject: [Alexandria-list] Alexandria 0.6.9 AVAILABLE for Ubuntu 12.04 (precise) In-Reply-To: Your message of "Mon, 13 Aug 2012 02:46:55 +0100." <20120813024655.62d6947e@jadzia.dax> References: <20120812145417.7a6a1187@jadzia.dax> <20120813024655.62d6947e@jadzia.dax> Message-ID: <20121229002749.061FB1FEEEF@fsck.waldner.priv.at> On Mon, 13 Aug 2012 02:46:55 +0100, Cathal Mc Ginley writes: >I'll push an official release onto Rubyforge later on Monday, just to >be consistent. Please let me know if you get it working, or if you >encounter any problems. Well, you wanted to know: on Debian (testing), i386, with alexandria_0.6.9-2_all.deb from rubyforge, it reliably segfaults when double-clicking/"view properties" on a book entry: --------------------------------------------- waldner at fsck->~ $ alexandria ----------------------- Alexandria just crashed ----------------------- Timestamp: Sat Dec 29 01:21:11 +0100 2012 Message: undefined method `each' for nil:NilClass Backtrace: /usr/lib/ruby/1.8/alexandria/ui/completion_models.rb:198:in `rebuild_models' /usr/lib/ruby/1.8/alexandria/ui/completion_models.rb:192:in `each' /usr/lib/ruby/1.8/alexandria/ui/completion_models.rb:192:in `rebuild_models' /usr/lib/ruby/1.8/alexandria/ui/completion_models.rb:191:in `each' /usr/lib/ruby/1.8/alexandria/ui/completion_models.rb:191:in `rebuild_models' /usr/lib/ruby/1.8/alexandria/ui/completion_models.rb:142:in `models' /usr/lib/ruby/1.8/alexandria/ui/completion_models.rb:76:in `complete' /usr/lib/ruby/1.8/alexandria/ui/completion_models.rb:20:in `complete_titles' /usr/lib/ruby/1.8/alexandria/ui/dialogs/book_properties_dialog_base.rb:39:in `initialize' /usr/lib/ruby/1.8/alexandria/ui/dialogs/book_properties_dialog.rb:27:in `initialize' /usr/lib/ruby/1.8/alexandria/ui/callbacks.rb:158:in `new' /usr/lib/ruby/1.8/alexandria/ui/callbacks.rb:158:in `on_properties' /usr/lib/ruby/1.8/alexandria/ui/gtk_thread_help.rb:78:in `call' /usr/lib/ruby/1.8/alexandria/ui/gtk_thread_help.rb:78:in `main' /usr/lib/ruby/1.8/alexandria/ui/gtk_thread_help.rb:78:in `main_with_queue' /usr/lib/ruby/1.8/alexandria/ui.rb:45:in `start_gtk' /usr/lib/ruby/1.8/alexandria/ui.rb:50:in `main' /usr/lib/ruby/1.8/alexandria.rb:40:in `main' /usr/bin/alexandria:34 Release: 0.6.9(0.6.9) Uname -a: Linux fsck 3.6.2rw1 #1 SMP Sun Oct 21 18:30:45 CEST 2012 i686 GNU/Linux -- Please report this dump to 'alexandria-list at rubyforge.org' with some additional information, such as the description of the crash and the steps to reproduce it (if it's possible). /usr/bin/alexandria:51: [BUG] Segmentation fault ruby 1.8.7 (2012-02-08 patchlevel 358) [i486-linux] Aborted --------------------------------------------- (With a freshly-built-from-ISBN-list library) Missing a newer ruby or somesuch? cheers, &rw -- -- To emphasize the highly professional nature of Nmap, all instances -- of "fucked up" in error message text has been changed to "b0rked". -- - Fyodor announces nmap 3.50 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Digital Signature URL: