Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 207092
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: John Keeping <john.keeping@lineone.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
alexandria-0.6.2.ebuild ebuild for alexandria 0.6.2 text/plain John Keeping 2008-01-22 23:32 0000 1.09 KB Details
alexandria-rakefile.patch Patch to fix problems with the alexandria Rakefile patch John Keeping 2008-01-22 23:34 0000 1.51 KB Details | Diff
alexandria-0.6.2.ebuild Updated ebuild text/plain John Keeping 2008-01-23 00:04 0000 1.29 KB Details
alexandria-rakefile.patch Updated patch to fix Rakefile patch John Keeping 2008-01-23 22:33 0000 447 bytes Details | Diff
alexandria-0.6.2.ebuild Yet another updated ebuild text/plain John Keeping 2008-01-23 22:52 0000 1.36 KB Details
alexandria-0.6.2-rake-0.8.1.patch Patch from upstream svn to allow compilation with rake 0.8.1 patch John Keeping 2008-02-07 11:49 0000 5.16 KB Details | Diff
alexandria-0.6.2.ebuild Updated ebuild to integrate patch for rake 0.8.1 text/plain John Keeping 2008-02-07 11:50 0000 1.41 KB Details
alexandria-0.6.2.ebuild The other ebuild for 0.6.2 text/plain Sergey Zolotorev 2008-02-10 20:44 0000 1.08 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 207092 depends on: Show dependency tree
Bug 207092 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-01-22 23:30 0000
Alexandria-0.6.2 has been released using rake as a build system. I will attach
a preliminary ebuild.

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From John Keeping 2008-01-22 23:32:09 0000 -------
Created an attachment (id=141620) [details]
ebuild for alexandria 0.6.2

Initial ebuild for alexandria 0.6.2 - it works but I'm sure there's a better
way to use rake within an ebuild.

------- Comment #2 From John Keeping 2008-01-22 23:34:50 0000 -------
Created an attachment (id=141621) [details]
Patch to fix problems with the alexandria Rakefile

Patch to fix problems in the alexandria 0.6.2 Rakefile:
1. There seems to be a syntax error if GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL is
set when it tries to call return not from within a function, but I don't know
enough ruby to be certain that this is the problem
2. Stop rake attempting to update the gtk icon cache since as the original file
notes it's a hack and portage does it later anyway

------- Comment #3 From John Keeping 2008-01-23 00:04:02 0000 -------
Created an attachment (id=141624) [details]
Updated ebuild

Updated ebuild that installs docs properly (it looks like the 0.6.1 ebuild
lists them but doesn't actually install). However, the rake script still
installs some docs, but in /usr/share/alexandria NOT
/usr/share/alexandria-0.6.2 and I don't know enough about rake/portage to be
able to fix this elegantly...

------- Comment #4 From Hans de Graaff 2008-01-23 21:01:03 0000 -------
app-misc/alexandria seems to be more or less maintainer-needed, as evidenced by
bug 117488. I had a quick look at your ebuild, though.

The gconf task (using return) seems to work fine for me with Rake 0.8.0. Which
version of Rake are you using, and what is the error?

The Rakefile patch could be further simplified by just removing the target from
the :post_install line, which then becomes (like in your patch):

task :post_install => [:scrollkeeper, :gconf]

It would also be great if you could also run the specs, although that seems to
be broken as it wants to write directly into /usr/share/alexandria... Yikes.

Letting the documentation be installed in /usr/share/doc/alexandria-0.6.2
requires patching of tasks.rb, where the location is determined in the
documentation_installation method. Or you could just move them in the ebuild
after "rake install".

------- Comment #5 From John Keeping 2008-01-23 22:29:08 0000 -------
Did you test the install after exporting
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1? I've just tried with rake 0.8.0 and
get the same error:

/usr/bin/scrollkeeper-update
rake aborted!
unexpected return
/home/user/alexandria-0.6.2/Rakefile:207
(See full trace by running task with --trace)

I also tried with rake 0.8.1 and get a completely different error that I
haven't looked into yet:

Installing lib/alexandria/ui/dialogs/new_smart_library_dialog.rb to
/home/john/temp/alexandria/lib64/ruby/site_ruby/1.8/alexandria/ui/dialogs
rake aborted!
private method `install' called for File:Class

(See full trace by running task with --trace)

I've tried running the specs, which fails when I do it from rake 0.7.3 but
passes when I run the ruby command from a terminal. I can't see anything about
it wanting to write to /usr/share/alexandria though.

------- Comment #6 From John Keeping 2008-01-23 22:33:27 0000 -------
Created an attachment (id=141685) [details]
Updated patch to fix Rakefile

Updated patch which simply removes all post install tasks because they run when
the files aren't fully installed and result in access violations. Besides,
portage does exactly the same tasks at the end of the install process anyway!

------- Comment #7 From John Keeping 2008-01-23 22:52:09 0000 -------
Created an attachment (id=141688) [details]
Yet another updated ebuild

New ebuild which installs docs to the right location and removes an export
which is no longer necessary with my latest patch.

------- Comment #8 From Hans de Graaff 2008-01-26 08:04:58 0000 -------
(In reply to comment #5)
> Did you test the install after exporting
> GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1? I've just tried with rake 0.8.0 and
> get the same error:

Ah, I did not set the environment variable. Setting it gets me the same result.
I'm also seeing the install problem with rake 0.8.1:


>>> Install alexandria-0.6.2 into /var/tmp/portage/app-misc/alexandria-0.6.2/image/ category app-misc
(in /var/tmp/portage/app-misc/alexandria-0.6.2/work/alexandria-0.6.2)
Installing lib/alexandria.rb to
/var/tmp/portage/app-misc/alexandria-0.6.2/image//usr/lib64/ruby/site_ruby/1.8
rake aborted!
private method `install' called for File:Class

This will probably need to be fixed upstream.


Would you be willing to be a proxy maintainer for this ebuild, given that it is
current maintainer-needed and you've been putting work into it?

------- Comment #9 From John Keeping 2008-01-29 19:36:16 0000 -------
(In reply to comment #8)
> Would you be willing to be a proxy maintainer for this ebuild, given that it is
> current maintainer-needed and you've been putting work into it?

What exactly would be involved in this? I'm not convinced I know enough ruby to
do this, although I would be prepared to put some time into it.

------- Comment #10 From Hans de Graaff 2008-02-02 07:18:10 0000 -------
Here's an overview of it: http://dev.gentoo.org/~antarus/projects/proxy-maint/

Basically your name will be associated with the package (along with the ruby
herd as committer). Bugs will land in your inbox and we'll rely on you for
version bumps and testing. Obviously we'll be happy to help along with any ruby
gotcha's.

------- Comment #11 From John Keeping 2008-02-03 15:06:26 0000 -------
Yes, I think I could do that.

Also, the rake-0.8.1 issue seems to have been fixed upstream. Should I create a
patch for that and update the ebuild?

------- Comment #12 From Hans de Graaff 2008-02-07 07:19:46 0000 -------
(In reply to comment #11)
> Yes, I think I could do that.

Great!

> Also, the rake-0.8.1 issue seems to have been fixed upstream. Should I create a
> patch for that and update the ebuild?

That would be great as well. I think after that the ebuild should be ready to
go into portage. I won't have time until after next week to do so, though.

------- Comment #13 From John Keeping 2008-02-07 11:49:22 0000 -------
Created an attachment (id=142871) [details]
Patch from upstream svn to allow compilation with rake 0.8.1

------- Comment #14 From John Keeping 2008-02-07 11:50:03 0000 -------
Created an attachment (id=142873) [details]
Updated ebuild to integrate patch for rake 0.8.1

------- Comment #15 From Sergey Zolotorev 2008-02-10 20:44:58 0000 -------
Created an attachment (id=143161) [details]
The other ebuild for 0.6.2

I have explored ebuild in this bug after I wrote own one for 0.6.2... It seems
worked :) and it supports optional USE flags (for access via Amazon etc). Maybe
it will be useful too.

I just added "moved docs" code from your version to own.

------- Comment #16 From Hans de Graaff 2008-03-09 10:25:01 0000 -------
Finally I've added the ebuild and patches to Gentoo CVS. In my defense I can
say I had a great vacation. :-)

John, as discussed I've also added you as proxy maintainer. Feel free to ping
me with updates or improvements, either through a bug or directly by email. It
may also be useful to integrate Sergey's improvements into your ebuild.

Thanks everyone!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug