Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20027 - ebuild for pybliographer-1.0.11
Summary: ebuild for pybliographer-1.0.11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Low enhancement (vote)
Assignee: Python Gentoo Team
URL: http://canvas.gnome.org:65348/pybliog...
Whiteboard:
Keywords: EBUILD
: 67760 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-27 01:07 UTC by John Steele Scott
Modified: 2004-12-16 08:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for pybliographer 1.0.11 (pybliographer-1.0.11.ebuild,423 bytes, text/plain)
2003-04-27 01:09 UTC, John Steele Scott
Details
stops configure from bombing out if recode is not version 3.5 (pybliographer-1.0.11-configure.diff,380 bytes, patch)
2003-04-27 01:10 UTC, John Steele Scott
Details | Diff
ebuild for recode-3.6 which works with pybliographic (recode-3.6-r1.ebuild,1.19 KB, text/plain)
2003-04-27 01:13 UTC, John Steele Scott
Details
debian's patch for recode with paths changed to work with gentoo autopatch (recode-3.6-debian.diff,65.37 KB, patch)
2003-04-27 01:15 UTC, John Steele Scott
Details | Diff
patch to have pybliographer use gnome/gtk 1.2 (pybliographer-1.0.11-pygtk-require-1.2.diff,1.08 KB, patch)
2003-09-06 21:25 UTC, John Steele Scott
Details | Diff
ebuild which uses recode patch and gtk-1.2 patch (pybliographer-1.0.11-r1.ebuild,474 bytes, patch)
2003-09-06 21:26 UTC, John Steele Scott
Details | Diff
ebuild for pybliographer-1.2.2 (app-misc/pybliographer/pybliographer-1.2.2.ebuild) (pybliographer-1.2.2.ebuild,2.68 KB, text/plain)
2004-02-29 04:04 UTC, Jean-Luc Jox
Details
dependency ebuild for pybliographer-1.2.2 (pyphon bibtext support) (python-bibtex-1.1.93.1.ebuild,1.25 KB, text/plain)
2004-02-29 04:09 UTC, Jean-Luc Jox
Details
tar ball of pybliographer-1.2.2 and dependency ebuild (portage.tar.bz2,2.73 KB, application/x-tbz)
2004-02-29 05:51 UTC, Jean-Luc Jox
Details
portage ebuilds for pybliographer-1.2.3 and python-bibtex-1.1.93.1 (pybliographer-1.2.3.portage.tar.bz2,3.10 KB, application/x-tbz)
2004-04-14 20:23 UTC, Ronny Haryanto
Details
ebuid for pybliographer 1.2.5 (pybliographer-1.2.5.ebuild,650 bytes, text/plain)
2004-12-16 08:32 UTC, marvin rouge
Details
patch for configure (pybliographer-1.2.5-gentoo.diff,1.22 KB, text/plain)
2004-12-16 08:34 UTC, marvin rouge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Steele Scott 2003-04-27 01:07:50 UTC
This is an ebuild for pybliographer, a program for managing a bibliographic
database.

This ebuild was a bit of a pain to make, so I'm putting it here for others who
may need it. There are a couple of quirks which may make it unsuitable for
incorporation into portage.

The first is that the graphical frontend (the pybliographic program) only works
if gnome-python has been emerged with the "gnome" USE flag.

The second quirk is that it needs a modified version of recode. The
pybliographic website claims that it works with recode-3.5, however I couldn't
get the program to start with this version of recode. With recode-3.6 which is
currently in portage, pybliographic will start, but it will not save files. In
order to make it work I have created a new recode ebuild which incorporates
Debian's patch from http://packages.debian.org/stable/text/recode.html. I have
not filed this as a bug against recode, because I don't at this stage know what
the bug is (and I really need to start writing my essay!).

Reproducible: Always
Steps to Reproduce:
Comment 1 John Steele Scott 2003-04-27 01:09:05 UTC
Created attachment 11209 [details]
ebuild for pybliographer 1.0.11
Comment 2 John Steele Scott 2003-04-27 01:10:48 UTC
Created attachment 11210 [details, diff]
stops configure from bombing out if recode is not version 3.5
Comment 3 John Steele Scott 2003-04-27 01:13:19 UTC
Created attachment 11211 [details]
ebuild for recode-3.6 which works with pybliographic
Comment 4 John Steele Scott 2003-04-27 01:15:22 UTC
Created attachment 11212 [details, diff]
debian's patch for recode with paths changed to work with gentoo autopatch
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-06-13 16:19:48 UTC
this will take a while because of the complexity of that recode patch that needs to be verified.
Comment 6 John Steele Scott 2003-06-13 23:00:18 UTC
No problem.

The recode patch may also be relevant to bug 20141 . . . it seems to fix that problem as well (UTF-8 encoding not working on PPC).
Comment 7 Gualter Barbas Baptista 2003-07-10 07:13:08 UTC
I applied all the patches, but still get the following error: 
 
checking for Gnome-Python... found 
checking for Gnome-Python threads... not found 
configure: error: this version is too old. Please install gnome-python, version >= 1.0.52 
 
!!! ERROR: app-sci/pybliographer-1.0.11 failed. 
!!! Function econf, Line 304, Exitcode 1 
!!! econf failed 
 
I have the latest ebuild of gnome-python (1.4.4). 
Comment 8 John Steele Scott 2003-07-10 15:38:38 UTC
Gualter,

Do you know if gnome-python was compiled with "USE=gnome"? I had a problem until I applied that flag, but I can't remember what it was exactly . . . actually I think it might have been something to do with gdk-pixbuf, not to do with threads . . . but it's just a thought.
Comment 9 Milo Thurston 2003-08-12 02:17:04 UTC
The ebuilds and patches work nicely, but I've run into the usual problems with pybliographer, e.g.

rzirzaraz% pybliographic                                                                       
Traceback (most recent call last):
  File "/usr/local/bin/pybliographer", line 168, in ?
    execfile (filename, user_global)
  File "/usr/local/share/pybliographer/pybliographic.py", line 26, in ?
    from Pyblio.GnomeUI.Pybliographic import Pybliographic
  File "/usr/local/share/pybliographer/Pyblio/GnomeUI/Pybliographic.py", line 28, in ?
  File "/usr/local/share/pybliographer/Pyblio/GnomeUI/Document.py", line 28, in ?
  File "/usr/local/share/pybliographer/Pyblio/GnomeUI/Index.py", line 29, in ?
  File "/usr/local/share/pybliographer/Pyblio/GnomeUI/Utils.py", line 57, in ?
  File "/usr/local/share/pybliographer/Pyblio/Config.py", line 159, in get
  File "/usr/local/share/pybliographer/Pyblio/Config.py", line 122, in __getitem__
KeyError: gnome/tooltips

I'd be interested to know if anyone else gets this, in case my gnome installation is at fault.
Comment 10 John Steele Scott 2003-09-06 20:42:06 UTC
After installing a gtk2 version of gnome-python, pybliographic stopped working. It would say this:
Traceback (most recent call last):
  File "/usr/share/pybliographer/pybliographic.py", line 26, in ?
    from Pyblio.GnomeUI.Pybliographic import Pybliographic
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Pybliographic.py", line 28, in ?
    from Pyblio.GnomeUI import Document
  File "/usr/share/pybliographer/Pyblio/GnomeUI/Document.py", line 26, in ?
    from gnome import config
ImportError: cannot import name config

It turns out that the gnome2 and gnome1 python bindings share the same namespace (i.e., gnome), and the gnome2 ones are taking precedence. The solution is at http://lists.debian.org/debian-python/2003/debian-python-200308/msg00053.html

I will attach a new patch and ebuild to deal with this bug. I think the pybliographic people are working on a Gnome2 compatible release, which will hopefully solve all the problems we have here and give us something which will fit into portage without any hackery.
Comment 11 John Steele Scott 2003-09-06 21:25:42 UTC
Created attachment 17208 [details, diff]
patch to have pybliographer use gnome/gtk 1.2
Comment 12 John Steele Scott 2003-09-06 21:26:27 UTC
Created attachment 17209 [details, diff]
ebuild which uses recode patch and gtk-1.2 patch
Comment 13 Jean-Luc Jox 2004-02-29 04:04:48 UTC
Created attachment 26576 [details]
ebuild for pybliographer-1.2.2 (app-misc/pybliographer/pybliographer-1.2.2.ebuild)

I can't beleive I spent time writing this ebuild when there is already one for 
it here.  I did do a search before writing it but I didn't find any thing for 
pybliographer.

I guess I should have learnt to use bugizilla before making my first ebuild.

Should I throw my ebuild in the garbage bin or should I post it?
I decided to post it only because it is for the latest stable version of 
pybliographer.

To use it, copy it in your
$PORTDIR_OVERLAY/app-misc/pybliographer/pybliographer-1.2.2.ebuild

You also need the dependency ebuild
$PORTDIR_OVERLAY/dev-python/python-bibtex/python-bibtex-1.1.93.1.ebuild
Comment 14 Jean-Luc Jox 2004-02-29 04:09:04 UTC
Created attachment 26577 [details]
dependency ebuild for pybliographer-1.2.2 (pyphon bibtext support)

This ebuild provides bibtext support for python.  The
pybliographer-1.2.2.ebuild needs it.
Comment 15 Jean-Luc Jox 2004-02-29 05:51:41 UTC
Created attachment 26585 [details]
tar ball of pybliographer-1.2.2 and dependency ebuild

This is the tar ball for the pybliographer-1.2.2 and its dependency ebuild.
To use just untar in your $PORTDIR_OVERLAY.

Eg.
# cd $PORTDIR_OVERLAY
# tar -xvjf portage.tar.bz2
Comment 16 Ronny Haryanto 2004-04-14 20:23:55 UTC
Created attachment 29310 [details]
portage ebuilds for pybliographer-1.2.3 and python-bibtex-1.1.93.1

Just an update to the 1.2.3 version.
Comment 17 Alastair Tse (RETIRED) gentoo-dev 2004-07-24 12:27:35 UTC
reassigning because i'm neglecting this onem hopefully more eyes on this might mean it wil lget added quicker. plus python-bibtex should probably be submitted as a seperate bug and assigned to python herd. 
Comment 18 Ben Cov 2004-08-19 03:38:12 UTC
A new version is available since 2004-07-18. Would it be possible to have a new ebuild with :
- an icon for the `task bar' (why not the same as the one in the menu)
- when relaunch, open the previously open bibliography
- save its configuration when logout (reopen automatically when re-login)
and add it to portage?
 
Comment 19 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-17 01:25:32 UTC
*** Bug 67760 has been marked as a duplicate of this bug. ***
Comment 20 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-17 04:04:32 UTC
Sorry for the delay. I added app-office/pybliographer-1.2.4 and
dev-python/python-bibtex-1.2.1. Basically I took your ebuilds, 
but made several modifications.

1. Changed Gentoo Technologies, Inc. to Gentoo Foundation in
the ebuild header. See /usr/portage/skel.ebuild for the latest
header you should use.

2. Removed comments. It is a good habit to make your own
ebuild from /usr/portage/skel.ebuild, but remember to 
delete comment lines from skel.ebuild before you submit it.
Commens to help other developers and users are welcomed,
but comments from skel.ebuild aren't needed.

3. python-bibtex could use distutils.eclass. I removed 
src_compile() and src_install() from python-bibtex ebuild
you submitted earlier. See man distutils.eclass (and
/usr/portage/eclass/distutils.eclass) for detail.

4. I removed pkg_preinst() from pybliographer ebuild
because it seems it is not needed (compile succeeded
without setting X. Probablly configure script had been
changed?). Also, if you want to let users know something
before configure, you should use pkg_setup() instead
of pkg_preinst(). pkg_preinst() is executed *after*
src_compile() (and before src_install()) while pkg_setup()
is called before src_compile(). See man 5 ebuild for detail.

Thanks for your contribution.
Comment 21 Ronny Haryanto 2004-10-17 05:44:56 UTC
Thanks for the fixes, Mamoru. Just a quick note that I merely modified the existing ebuilds from Jean-Luc to work with the latest versions. My apologies for not cleaning up the ebuilds before submitting, I will be more careful in the future.
Comment 22 Ben Cov 2004-10-20 09:55:42 UTC
Hi, 
There seems to be a problem with this ebuild. When emerging, I got:

scrollkeeper-update -p /var/lib/scrollkeeper -o /var/tmp/portage/pybliographer-1.2.4/image//usr/share/omf/pybliographer
ACCESS DENIED  open_wr:   /var/lib/scrollkeeper/scrollkeeper_docs
ACCESS DENIED  open_wr:   /var/lib/scrollkeeper/scrollkeeper_docs
/var/lib/scrollkeeper/scrollkeeper_docs: Permission denied
make[4]: [install-data-hook-omf] Error 1 (ignored)

(skip...)

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-office_-_pybliographer-1.2.4-26300.log"

open_wr:   /var/lib/scrollkeeper/scrollkeeper_docs
open_wr:   /var/lib/scrollkeeper/scrollkeeper_docs

After googling, a solution to a very similar error seems to be explained in:
http://forums.gentoo.org/viewtopic.php?t=18773

Is this a bug and if yes, could the ebuild be corrected?

Regards, Ben
Comment 23 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-20 20:20:32 UTC
Thanks for the bug report. Fixed in CVS.
Comment 24 marvin rouge 2004-12-16 08:32:17 UTC
Created attachment 46131 [details]
ebuid for pybliographer 1.2.5


app-office/pybliographer-1.2.5 ebuild. I installed it on amd64, should I open a
new bug for that ?
Comment 25 marvin rouge 2004-12-16 08:34:00 UTC
Created attachment 46133 [details]
patch for configure


app-office/pybliographer/files/pybliographer-1.2.5-gentoo.diff 

file to patch configure.