Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157765 - media-libs/libgphoto2-2.3.1 bump request
Summary: media-libs/libgphoto2-2.3.1 bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Alastair Tse (RETIRED)
URL: http://www.gphoto.org/proj/libgphoto2...
Whiteboard:
Keywords:
Depends on: 139884
Blocks: 157773 159609
  Show dependency tree
 
Reported: 2006-12-10 14:06 UTC by Bruno Roggeri
Modified: 2007-01-27 16:27 UTC (History)
11 users (show)

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


Attachments
personnal attempt at ebuild (libgphoto2-2.3.0.ebuild,4.09 KB, text/plain)
2006-12-10 14:11 UTC, Bruno Roggeri
Details
backported fixes to udev-rules as already applied to 2.2.1-r1 ebuild (libgphoto2-2.3.0-backported-udev-fixes.diff,5.04 KB, patch)
2006-12-11 08:30 UTC, Matthias Schwarzott
Details | Diff
media-libs/libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,4.05 KB, text/plain)
2007-01-01 02:04 UTC, Kalidarn
Details
libgphoto2-2.3.1-backported-udev-fixes.diff (libgphoto2-2.3.1-backported-udev-fixes.diff,5.04 KB, patch)
2007-01-01 02:09 UTC, Kalidarn
Details | Diff
libgphoto2-2.1.2-norpm.patch (libgphoto2-2.1.2-norpm.patch,533 bytes, patch)
2007-01-03 21:11 UTC, Kalidarn
Details | Diff
libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,3.98 KB, text/plain)
2007-01-03 21:12 UTC, Kalidarn
Details
alt-libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.02 KB, text/plain)
2007-01-12 18:58 UTC, Alon Bar-Lev (RETIRED)
Details
alt-libgphoto2-2.3.1-package.patch (libgphoto2-2.3.1-package.patch,961 bytes, patch)
2007-01-12 18:59 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
alt-libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.02 KB, text/plain)
2007-01-13 01:55 UTC, Alon Bar-Lev (RETIRED)
Details
alt-libgphoto2-2.3.1-package.patch (libgphoto2-2.3.1-package.patch,1.49 KB, patch)
2007-01-13 01:56 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
libgphoto2-2.3.1.ebuild, with correct doc behaviour (libgphoto2-2.3.1.ebuild,5.01 KB, text/plain)
2007-01-13 02:05 UTC, Bruno Roggeri
Details
libgphoto2-2.3.1.ebuild, with correct doc behaviour (libgphoto2-2.3.1.ebuild,4.98 KB, text/plain)
2007-01-13 02:07 UTC, Bruno Roggeri
Details
alt-libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.03 KB, text/plain)
2007-01-13 02:08 UTC, Alon Bar-Lev (RETIRED)
Details
alt-libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.09 KB, text/plain)
2007-01-13 13:07 UTC, Bruno Roggeri
Details
alt-libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.09 KB, text/plain)
2007-01-13 14:41 UTC, Bruno Roggeri
Details
alt-libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.04 KB, text/plain)
2007-01-13 16:51 UTC, Alon Bar-Lev (RETIRED)
Details
alt-libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,4.99 KB, text/plain)
2007-01-13 18:17 UTC, Alon Bar-Lev (RETIRED)
Details
libgphoto2-2.3.1-package.patch (libgphoto2-2.3.1-package.patch,899 bytes, patch)
2007-01-13 21:41 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.07 KB, text/plain)
2007-01-14 12:06 UTC, Alon Bar-Lev (RETIRED)
Details
media-libs/libgphoto2-2.3.1 (libgphoto2-2.3.1.ebuild,5.07 KB, text/plain)
2007-01-14 23:08 UTC, Kalidarn
Details
media-libs/libgphoto2-2.3.1 (libgphoto2-2.3.1.ebuild,5.07 KB, text/plain)
2007-01-14 23:08 UTC, Kalidarn
Details
libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.16 KB, text/plain)
2007-01-15 06:11 UTC, Alon Bar-Lev (RETIRED)
Details
libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.43 KB, text/plain)
2007-01-19 17:00 UTC, Luca Marturana
Details
libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,5.07 KB, text/plain)
2007-01-19 19:17 UTC, Alon Bar-Lev (RETIRED)
Details
libgphoto2-2.3.1.ebuild (libgphoto2-2.3.1.ebuild,4.09 KB, text/plain)
2007-01-24 22:15 UTC, Alon Bar-Lev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Roggeri 2006-12-10 14:06:20 UTC
2.3.0 is out since about 1 week, with support for MY new mp3 player ;)
Comment 1 Bruno Roggeri 2006-12-10 14:11:18 UTC
Created attachment 103763 [details]
personnal attempt at ebuild

Basically the same as libgphoto-2.2.1-r1, with 2 patch removed (since they were integrated upstream), and with the building of api docx through gtk-doc removed (it failed, plus on upstream's BTS they seem to say they want to ditch gtk-doc for doxygen). I put a couple of line to run doxygen, I'm not 100% sure about them though
Comment 2 Bruno Roggeri 2006-12-10 14:13:09 UTC
Additional, copying over gphoto2-2.2.0.ebuild to gphoto2-2.3.0.ebuild while changing the version requirement on libgphoto2 to 2.3.0 seems to work. 
Comment 3 Matthias Schwarzott gentoo-dev 2006-12-11 08:30:58 UTC
Created attachment 103810 [details, diff]
backported fixes to udev-rules as already applied to 2.2.1-r1 ebuild

This patch results in the same behaviour as approached with the patch already applied to 2.2.1-r1-ebuild.
It results in udev-rules working with 103 (more exactly >=0.98) and also finally working code to match PTP-USB-Class-type. (See Bug #153471).
Comment 4 Matthias Schwarzott gentoo-dev 2006-12-11 09:49:16 UTC
1. The resulting print-camera-list should then be called
print-camera-list udev-rules-0.98 mode 660 group plugdev

But the mode is also subject for discussion.
2. This perhaps makes the script /etc/hotplug/usb/usbcam redundant.
3. As udev is default perhaps depend to sys-apps/hotplug can disappear (or be use-flag based).
Comment 5 Kalidarn 2007-01-01 01:56:37 UTC
what about libgphoto2-2.1.2-norpm.patch its not attached but is still in the ebuild.
Comment 6 Kalidarn 2007-01-01 02:04:05 UTC
Created attachment 105068 [details]
media-libs/libgphoto2-2.3.1.ebuild

For the time being I removed the epatch line because you said they were integrated upstream and I am assuming that is why you did not attach them to this bug.

epatch ${FILESDIR}/${PN}-2.1.2-norpm.patch
Comment 7 Kalidarn 2007-01-01 02:09:41 UTC
Created attachment 105069 [details, diff]
libgphoto2-2.3.1-backported-udev-fixes.diff
Comment 8 Bruno Roggeri 2007-01-01 04:28:37 UTC
> For the time being I removed the epatch line because you said they were
> integrated upstream and I am assuming that is why you did not attach them to
> this bug.
> 
> epatch ${FILESDIR}/${PN}-2.1.2-norpm.patch
> 

No, the 2 patch that I said were integrated upstream were the ones mentionned in those lines (in the 2.2.1-r1 ebuild)
    epatch ${FILESDIR}/${PN}-2.2.0-includes.patch
    epatch ${FILESDIR}/libgphoto-2.2.1-new-dbus-api.patch 

The norpm patch still makes sense. I didn't attached it because it's already in the files directory in portage and works as is.
Comment 9 Kalidarn 2007-01-03 21:11:55 UTC
Created attachment 105348 [details, diff]
libgphoto2-2.1.2-norpm.patch
Comment 10 Kalidarn 2007-01-03 21:12:28 UTC
Created attachment 105349 [details]
libgphoto2-2.3.1.ebuild

re-added the norpm patch.
Comment 11 Jory A. Pratt 2007-01-08 02:13:05 UTC
(In reply to comment #10)
> Created an attachment (id=105349) [edit]
> libgphoto2-2.3.1.ebuild
> 
> re-added the norpm patch.
> 

Ebuild is alright for the most part, but as I was telling metalgod IUSE_CAMERA needs to expand to IUSE. confcache is dead and not supported so that could be removed from the list. Other then those two I would go ahead and recommend it for addition.
Comment 12 Bruno Roggeri 2007-01-08 02:55:53 UTC
> Other then those two I would go ahead and recommend it
> for addition.
> 

I'd add that the behaviour of the doc is useflag needs reviewing. I changed it from the 2.2.1-r1 ebuild, where it was running gtk-doc, and I made it run doxygen instead (according to some comments on upstream bts, gtk-doc is no longer maintained). But I have the impression that the generated documentation doesn't get installed, although some html pages do end up in /usr/share/doc/libgphoto, regardless of the doc use flag ... so I'm a bit lost and shouldn't be trusted to know what I'm doing.
Comment 13 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-12 18:57:15 UTC
I tried to make my camera work... without much success...

But I've created a new version of the ebuild, please review and merge your required modification to this base.

Since it did not work for me, all I can suggest an ebuild cleanup.
Comment 14 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-12 18:58:17 UTC
Created attachment 106716 [details]
alt-libgphoto2-2.3.1.ebuild
Comment 15 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-12 18:59:26 UTC
Created attachment 106718 [details, diff]
alt-libgphoto2-2.3.1-package.patch
Comment 16 Bruno Roggeri 2007-01-12 22:46:28 UTC
(In reply to comment #13)
> Since it did not work for me, all I can suggest an ebuild cleanup.
> 

Thank you, 

but ...

1. The ebuild fails to compile with the doc use flag.
The origin of the problem is described in upstream's BTS :
http://sourceforge.net/tracker/index.php?func=detail&aid=1487240&group_id=8874&atid=108874

and the last comment says "gtk-doc is being phased out in favour of doxygen, so this problem will go away without being actually fixed."

I don't know whether the transition phase is over and doxygen can be used or there is no usable documentation to build at the moment and the doc use flag should simply be removed

2. I see you didn't include the "norpm" patch. I /believe/ (as in "in reality I don't know" :) ) that it is needed to avoid building the rpm on gentoo systems where rpm is installed (which probably exists somewhere as rpm is in portage).

I'll try and ask upstream about the doc question...
Comment 17 Bruno Roggeri 2007-01-12 23:57:42 UTC
(In reply to comment #16)
> 
> I'll try and ask upstream about the doc question...
> 

Well I didn't have to ask, I found the answer in gphoto-user list archive :

http://sourceforge.net/mailarchive/message.php?msg_id=35442887

Straight from the dev's mouth :
"
In your build directory:
 $cd doc
 $doxygen Doxyfile
 The HTML documentation will be in doxygen-output/libgphoto2-api.html (relative to that directory you are in)
 Doxygen is a software available in most distributions.
"
 
So I got it almost right in my first ebuild, but it lacked the installation part... I'm not sure, which of the dodoc dodir or dowhatever calls should be used ?
Comment 18 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 00:43:10 UTC
(In reply to comment #16)
> 1. The ebuild fails to compile with the doc use flag.
> The origin of the problem is described in upstream's BTS :

True.
if use doc doxygen should be depended.

> 2. I see you didn't include the "norpm" patch. I /believe/ (as in "in reality 

I have... Just differently... More correctly in automake.

And regarding doc, if you contact upstream, please tell them that they have a bug in --disable-docs which actually enables it... They should fix the if statement in the m4m, m4 *_doc*.m4
Comment 19 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 01:55:51 UTC
Created attachment 106755 [details]
alt-libgphoto2-2.3.1.ebuild
Comment 20 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 01:56:29 UTC
Created attachment 106756 [details, diff]
alt-libgphoto2-2.3.1-package.patch

udev works now.
Comment 21 Bruno Roggeri 2007-01-13 02:05:36 UTC
Created attachment 106760 [details]
libgphoto2-2.3.1.ebuild, with correct doc behaviour

Ok, i finally got it : the documentation is build automatically if the configure script detects doxygen. 

The solution implemented in this ebuild is to "doc-use-depend" on doxygen, and in src_install, to delete the documentation if it was generated although we didn't want it.

A little bonus is that as we don't use the gtk-doc apidoc anymore, the "emake -j1" restriction goes away.

The not so nice thing is that if doxygen is present on a system, USE=-doc will make the ebuild build the documentation and then destroy it.

I've tried to see if we could avoid that but it seems difficult... It seems it needs a little configure patching, and then launching econf with a envvar like GENTOO_BUILD_DOC, or maybe a big configure patch (eeek! :( ).
Comment 22 Bruno Roggeri 2007-01-13 02:07:56 UTC
Created attachment 106761 [details]
libgphoto2-2.3.1.ebuild, with correct doc behaviour

Oops
Comment 23 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 02:08:47 UTC
Created attachment 106762 [details]
alt-libgphoto2-2.3.1.ebuild

Group fixup
Comment 24 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 02:10:07 UTC
(In reply to comment #21)
> Ok, i finally got it : the documentation is build automatically if the
> configure script detects doxygen. 

Already done in alt ebuild.
Can you please try to merge into the alt one?
I don't thing we need so many patches, and it seems to work, although it has some internal error with my camera.
Comment 25 Bruno Roggeri 2007-01-13 13:07:45 UTC
Created attachment 106792 [details]
alt-libgphoto2-2.3.1.ebuild

OK, here it is.

A litte patch is worth a thousand words of explanations :
--- libgphoto2-2.3.1.ebuild.orig        2007-01-13 12:47:35.000000000 +0100
+++ libgphoto2-2.3.1.ebuild     2007-01-13 12:55:25.000000000 +0100
@@ -89,18 +89,17 @@
                --with-html-dir=/usr/share/doc/${PF}/html \
                --with-hotplug-doc-dir=/usr/share/doc/${PF}/hotplug \
                $(use_enable nls) \
-               $(use_enable doc docs) \
                ${myconf} || die "econf failed"

-       # documentation breaks with -j1
-       emake -j1 || die "make failed"
+       emake || die "make failed"
 }

 src_install() {
        emake DESTDIR=${D} install || die "install failed"

-       # fixup autoconf bug
-       if ! use doc; then
+       # The doc is automatically generated if doxygen is found,
+       # so we remove it if we don't want it
+       if [[ -d "${D}/usr/share/doc/${PF}/apidocs.html" ]] && ! use doc; then
                rm -fr "${D}/usr/share/doc/${PF}/apidocs.html"
        fi
Comment 26 Kalidarn 2007-01-13 13:12:35 UTC
attach the bug please, do not use the comment field to post a patch.
Comment 27 Kalidarn 2007-01-13 13:13:57 UTC
patch i mean... Not bug.

/me goes to bed.
Comment 28 Bruno Roggeri 2007-01-13 13:17:43 UTC
(In reply to comment #27)
> patch i mean... Not bug.
> 

Well, I attached the full ebuild to the bug, i just posted the patch in the description to make it easier to see what I changed.

Good night :)
Comment 29 Bruno Roggeri 2007-01-13 14:41:44 UTC
Created attachment 106799 [details]
alt-libgphoto2-2.3.1.ebuild

alonbl, I don't think you intended this line :

sed -e 's:=plugdev:=plugdev:' -i packaging/linux-hotplug/usbcam.group

I turned it back to :

sed -e 's:=camera:=plugdev:' -i packaging/linux-hotplug/usbcam.group
Comment 30 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 16:51:37 UTC
Created attachment 106818 [details]
alt-libgphoto2-2.3.1.ebuild

Thanks!
Left the use during configure, so when upstream will fix their code the rm -fr will not be needed.
Comment 31 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 16:53:24 UTC
Kalidarn:
Can you please check if the alt* works for you?
We can focus on improving one branch.
Comment 32 Bruno Roggeri 2007-01-13 18:02:03 UTC
(In reply to comment #30)
> Left the use during configure, so when upstream will fix their code the rm -fr
> will not be needed.
> 

I understand your point, but --enable-doc makes the build fail for me, everytime. So it should be at least commented out for now.

It's because currently, --enable-docs makes it launch gtk-doc, but libgphoto2's gtk-doc documentation is broken. So it should be at least commented out. (see the URL i provided in comment #16)

Furthermore, as I understand it, upstream is happy with just autodetecting doxygen and building the doc if it's found, so the --enable-docs option might never be fixed, or maybe it will be simply removed. 
Comment 33 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 18:17:57 UTC
Created attachment 106825 [details]
alt-libgphoto2-2.3.1.ebuild

I see your point.
I also removed the previous include patch... I don't see it required.
Can you please confirm that it works for you?
I am working blind here... :)

Well... After something will work, I will work with upstream to:
1. Add --enable-rpm to configure.
2. Fix --enable-docs so that --disable-docs will work.
3. Fix udev stuff.
4. Fix package make file.
Comment 34 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 21:41:39 UTC
Created attachment 106851 [details, diff]
libgphoto2-2.3.1-package.patch

OK... We don't need the include fixups as-well.
Comment 35 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-13 21:44:11 UTC
Oh... And forgot to say that it works for me!
I had to use the ptp2 driver, which is generic ptp.
So I guess we have a working ebuild with minimal patches.
Comment 36 Bruno Roggeri 2007-01-13 22:59:04 UTC
(In reply to comment #35)
> Oh... And forgot to say that it works for me!

Good :)

Your latest ebuild+patches builds fine for me too.

I have some problems accessing my "iRiver T20 FM" audio player (regardless of the latest changes to the ebuild), but its support in gphoto2 is quite new so i guess its not a regression or a general malfunction.
Comment 37 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 12:06:39 UTC
Created attachment 106919 [details]
libgphoto2-2.3.1.ebuild

Some cleanups, and warning for users that upstream will not support them if they do not install all cameras.
Comment 38 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-14 12:09:47 UTC
Alastair: Please review and see if you can get this into portage.
Comment 39 Bruno Roggeri 2007-01-14 18:35:26 UTC
(In reply to comment #37)
> Created an attachment (id=106919) [edit]
> libgphoto2-2.3.1.ebuild
> 
> Some cleanups, and warning for users that upstream will not support them if
> they do not install all cameras.
> 

Not a native english speaker, but shouldn't 
"Upstream will not support you if you not compile all camera drivers first"
be :
"Upstream will not support you if you don't compile all camera drivers first"

Ah, striving for perfection ... :)
Comment 40 Kalidarn 2007-01-14 22:35:20 UTC
please change it to .tar.bz2 the developer supports these packages, all other related packages are .tar.bz2 (as in gtkam and gphoto2)
Comment 41 Kalidarn 2007-01-14 23:08:52 UTC
Created attachment 107013 [details]
media-libs/libgphoto2-2.3.1

BZ2 version.
Comment 42 Kalidarn 2007-01-14 23:08:59 UTC
Created attachment 107014 [details]
media-libs/libgphoto2-2.3.1

BZ2 version.
Comment 43 Kalidarn 2007-01-14 23:09:44 UTC
Comment on attachment 107013 [details]
media-libs/libgphoto2-2.3.1

gah double post.....
Comment 44 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-15 06:11:34 UTC
Created attachment 107035 [details]
libgphoto2-2.3.1.ebuild

You forgot the "don't"... :)
Comment 45 Jon Malachowski 2007-01-15 23:21:50 UTC
for the record, I think I had problems getting kipi-plugins to work with this version of libgphoto.  Does anyone have libgphoto2-2.3 and any version of kipi-plugins from portage working?
Comment 46 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-16 07:18:16 UTC
kamera also does not work with this version.... :(
But at least it works via the command-line :)
Comment 47 Luca Marturana 2007-01-19 17:00:56 UTC
Created attachment 107462 [details]
libgphoto2-2.3.1.ebuild

In this ebuild I have added support for USE-EXPAND (#139884). I also rebuilt the list of cameras according to subdirectories of "camlibs/" (on libgphoto2 sources), this is the command that I used:

on camlibs/
echo -e 'IUSE_CAMERAS="'$(find . -maxdepth 1 -mindepth 1 -type d -printf "cameras_%f ")'"' >> /path/ebuild

It works on my system.
Comment 48 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-19 19:17:35 UTC
Created attachment 107475 [details]
libgphoto2-2.3.1.ebuild

Thanks, some modifications.
Next time, please submit patch for a specific modification.
Please check.
Comment 49 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-24 22:15:33 UTC
Created attachment 108059 [details]
libgphoto2-2.3.1.ebuild

With help of upstream.
I removed the usb hotplug stuff... It works with udev only now.
Also no patch is actually required now!
So I am happy... :)

Just remember if you test this, you should add CAMERAS into:
/usr/portage/profiles/base/make.defaults::USE_EXPAND
Comment 50 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-27 16:27:55 UTC
Fixed, please CC me if you open new bug regarding this change.