Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573632 - x11-plugins/pidgin-skypeweb - add ebuild
Summary: x11-plugins/pidgin-skypeweb - add ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adam Feldman
URL:
Whiteboard:
Keywords: EBUILD
: 257832 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-02 03:00 UTC by Igor Mikeshin
Modified: 2016-02-11 03:38 UTC (History)
4 users (show)

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


Attachments
pidgin-skypeweb-9999.ebuild (pidgin-skypeweb-9999.ebuild,455 bytes, text/plain)
2016-02-02 03:00 UTC, Igor Mikeshin
Details
pidgin-skypeweb-1.1.ebuild (pidgin-skypeweb-1.1.ebuild,481 bytes, text/plain)
2016-02-02 15:39 UTC, Igor Mikeshin
Details
pidgin-skypeweb-9999.ebuild (pidgin-skypeweb-9999.ebuild,442 bytes, text/plain)
2016-02-05 03:39 UTC, Igor Mikeshin
Details
pidgin-skypeweb-1.1.ebuild (pidgin-skypeweb-1.1.ebuild,506 bytes, text/plain)
2016-02-05 03:40 UTC, Igor Mikeshin
Details
pidgin-skypeweb-1.1.ebuild (pidgin-skypeweb-1.1.ebuild,531 bytes, text/plain)
2016-02-06 16:40 UTC, Igor Mikeshin
Details
pidgin-skypeweb-9999.ebuild (pidgin-skypeweb-9999.ebuild,466 bytes, text/plain)
2016-02-06 16:40 UTC, Igor Mikeshin
Details
metadata (metadata.xml,752 bytes, text/plain)
2016-02-06 16:44 UTC, Igor Mikeshin
Details
pidgin-skypeweb-1.1.ebuild (pidgin-skypeweb-1.1.ebuild,480 bytes, text/plain)
2016-02-07 09:53 UTC, Igor Mikeshin
Details
pidgin-skypeweb-9999.ebuild (pidgin-skypeweb-9999.ebuild,415 bytes, text/plain)
2016-02-07 09:55 UTC, Igor Mikeshin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Mikeshin 2016-02-02 03:00:57 UTC
Created attachment 424438 [details]
pidgin-skypeweb-9999.ebuild

Plugin for skype chat.
Web version used - no skype application needed.
Comment 1 Adam Feldman gentoo-dev 2016-02-02 03:36:04 UTC
Are you by chance interested in proxy maintaining this?
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers#What_it_takes_to_be_a_Proxied_Maintainer

Additionally, I'd highly recommend have a versioned ebuild as well.  Looks like upstream has version 1.1 as their latest.
Comment 2 Igor Mikeshin 2016-02-02 15:39:55 UTC
Created attachment 424480 [details]
pidgin-skypeweb-1.1.ebuild

Here is lastest release ebuild.
And yes, I'm interested in proxy maintaining
Comment 3 Göktürk Yüksek archtester gentoo-dev 2016-02-02 19:27:57 UTC
*** Bug 257832 has been marked as a duplicate of this bug. ***
Comment 4 Igor Mikeshin 2016-02-04 14:00:14 UTC
(In reply to NP-Hardass from comment #1)
> Are you by chance interested in proxy maintaining this?
> https://wiki.gentoo.org/wiki/Project:
> Proxy_Maintainers#What_it_takes_to_be_a_Proxied_Maintainer
> 
> Additionally, I'd highly recommend have a versioned ebuild as well.  Looks
> like upstream has version 1.1 as their latest.

Thank you for your feedback
Comment 5 Igor Mikeshin 2016-02-04 14:05:26 UTC
(In reply to NP-Hardass from comment #1)
> Are you by chance interested in proxy maintaining this?
> https://wiki.gentoo.org/wiki/Project:
> Proxy_Maintainers#What_it_takes_to_be_a_Proxied_Maintainer
> 
> Additionally, I'd highly recommend have a versioned ebuild as well.  Looks
> like upstream has version 1.1 as their latest.

Thank you for your feedback. Can you review my ebuilds for pushing it to the sunrise?
Comment 6 eroen 2016-02-04 21:19:43 UTC
I did not test this, but here's some comments :)

> SRC_URI="https://github.com/EionRobb/skype4pidgin/archive/${PV}.tar.gz"

Please don't do this, it produces a file named '1.1.tar.gz' in users' DISTDIR. Rather use EAPI 2 style renaming like this:

  SRC_URI=".../${PV}.tar.gz -> ${P}.tar.gz"

> LICENSE="GPL-3"

Afaict it is supposed to be GPL-3+ (... or later version).

> KEYWORDS="~amd64 ~x86"

In a live (git checkout) ebuild you should not set KEYWORDS.
Comment 7 Igor Mikeshin 2016-02-05 03:39:13 UTC
Created attachment 424646 [details]
pidgin-skypeweb-9999.ebuild

license fixed, keywords removed
Comment 8 Igor Mikeshin 2016-02-05 03:40:58 UTC
Created attachment 424648 [details]
pidgin-skypeweb-1.1.ebuild

license fixed, distfile renamed.
Also EAPI="5" included
Comment 9 Adam Feldman gentoo-dev 2016-02-05 20:02:56 UTC
(In reply to Igor Mikeshin from comment #8)
> Created attachment 424648 [details]
> pidgin-skypeweb-1.1.ebuild
> 
> license fixed, distfile renamed.
> Also EAPI="5" included

Hey Igor, sorry for the delay in responding.

A couple of things to keep in mind:

The header that all ebuilds in Gentoo have is 

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

(you do need to assign copyright to the foundation, I can get materials on this subject if need be)

A couple of minor aesthetic things that should be fixed: your second line in RDEPEND should only be indented once as it is only one level in, your spacing in the description as well as a stray capital 'L' in there.

General rule, you should always run repoman to check for QA issues.  It's a great tool.  So in your pkg directory in your local overlay, just run `repoman full` and it'll mention all sorts of things (Like I keep forgetting to update the copyright year from 2015 to 2016 :P)

I'll await your update :)
Comment 10 Igor Mikeshin 2016-02-06 16:40:05 UTC
Created attachment 424746 [details]
pidgin-skypeweb-1.1.ebuild

gentoo header and presentation fixes
Comment 11 Igor Mikeshin 2016-02-06 16:40:51 UTC
Created attachment 424748 [details]
pidgin-skypeweb-9999.ebuild

gentoo header and presentation fixes
Comment 12 Igor Mikeshin 2016-02-06 16:44:24 UTC
Created attachment 424750 [details]
metadata

repoman also asks for metadata.xml !
Comment 13 Göktürk Yüksek archtester gentoo-dev 2016-02-06 22:17:32 UTC
Hi, I apologize for the long scary comment before I begin :)

$ ls
Manifest  metadata.xml  pidgin-skypeweb-1.1.ebuild  pidgin-skypeweb-9999.ebuild
$ repoman full
RepoMan scours the neighborhood...
RepoMan sez: "If everyone were like you, I'd be out of business!"

$ ebuild pidgin-skypeweb-1.1.ebuild install
>>> Completed installing pidgin-skypeweb-1.1 into /var/tmp/portage/x11-plugins/pidgin-skypeweb-1.1/image/

Compiles and installs just fine. I think we need to look at the dependencies a bit more closely however. The Makefile has:

GLIB_CFLAGS = `pkg-config --cflags glib-2.0` -I/usr/include
  $ equery b /usr/lib64/pkgconfig/glib-2.0.pc
  dev-libs/glib-2.44.1-r1 (/usr/lib64/pkgconfig/glib-2.0.pc)

X11_LIBS = `pkg-config --libs x11`
  $ equery b /usr/lib64/pkgconfig/x11.pc
  x11-libs/libX11-1.6.3 (/usr/lib64/pkgconfig/x11.pc)

At a first glance, this has a runtime dependency for both glib and libX11. However, I checked with scanelf and the .so file doesn't seem to link against libX11, but because it's part of the Makefile you have to depend on it I think. Because 'pkg-config' is used to find these flags, you need a build-time dependency for 'virtual/pkgconfig'.

To my limited understanding, this ebuild does not install the dbus variation of the library (libskype_dbus.so). So DBUS dependencies are not needed.

As-is, the Makefile does not respect the $(CC) variable and overrides it with gcc. However, that is an issue that needs to be fixed upstream I think.

good luck!
Comment 14 Igor Mikeshin 2016-02-07 09:09:23 UTC
(In reply to Göktürk Yüksek from comment #13)
> Hi, I apologize for the long scary comment before I begin :)
> 
> $ ls
> Manifest  metadata.xml  pidgin-skypeweb-1.1.ebuild 
> pidgin-skypeweb-9999.ebuild
> $ repoman full
> RepoMan scours the neighborhood...
> RepoMan sez: "If everyone were like you, I'd be out of business!"
> 
> $ ebuild pidgin-skypeweb-1.1.ebuild install
> >>> Completed installing pidgin-skypeweb-1.1 into /var/tmp/portage/x11-plugins/pidgin-skypeweb-1.1/image/
> 
> Compiles and installs just fine. I think we need to look at the dependencies
> a bit more closely however. The Makefile has:
> 
> GLIB_CFLAGS = `pkg-config --cflags glib-2.0` -I/usr/include
>   $ equery b /usr/lib64/pkgconfig/glib-2.0.pc
>   dev-libs/glib-2.44.1-r1 (/usr/lib64/pkgconfig/glib-2.0.pc)
> 
> X11_LIBS = `pkg-config --libs x11`
>   $ equery b /usr/lib64/pkgconfig/x11.pc
>   x11-libs/libX11-1.6.3 (/usr/lib64/pkgconfig/x11.pc)
> 
> At a first glance, this has a runtime dependency for both glib and libX11.
> However, I checked with scanelf and the .so file doesn't seem to link
> against libX11, but because it's part of the Makefile you have to depend on
> it I think. Because 'pkg-config' is used to find these flags, you need a
> build-time dependency for 'virtual/pkgconfig'.
> 
> To my limited understanding, this ebuild does not install the dbus variation
> of the library (libskype_dbus.so). So DBUS dependencies are not needed.
> 
> As-is, the Makefile does not respect the $(CC) variable and overrides it
> with gcc. However, that is an issue that needs to be fixed upstream I think.
> 
> good luck!
Hi,
Makefile in the root of skype4pidgin directory is not used. 
skype4pidgin is old plugin, which uses dbus to talk with skype using skype API.
skypeweb is only subdir and it has own Makefile.
I changed ${S} dir to work inside skypeweb subdir. Please tell me if there is better way to work with only part of distfile archive.
Btw, I found out that I did not install icons! Thanks for aiming.
Comment 15 Göktürk Yüksek archtester gentoo-dev 2016-02-07 09:26:57 UTC
> Hi,
> Makefile in the root of skype4pidgin directory is not used. 
> skype4pidgin is old plugin, which uses dbus to talk with skype using skype
> API.
> skypeweb is only subdir and it has own Makefile.
> I changed ${S} dir to work inside skypeweb subdir. Please tell me if there
> is better way to work with only part of distfile archive.
> Btw, I found out that I did not install icons! Thanks for aiming.

Sorry for confusing you. If the cmake lists the deps correctly, then you have all of them. You still need the DEPEND="virtual/pkgconfig" I think:
  https://github.com/EionRobb/skype4pidgin/blob/master/skypeweb/CMakeLists.txt#L54
Comment 16 Igor Mikeshin 2016-02-07 09:53:11 UTC
Created attachment 424824 [details]
pidgin-skypeweb-1.1.ebuild

new dep virtual/pkgconfig, switch to default "make install" (with readme and icons)
Comment 17 Igor Mikeshin 2016-02-07 09:55:35 UTC
Created attachment 424826 [details]
pidgin-skypeweb-9999.ebuild

new dep virtual/pkgconfig, switch to default "make install" (with readme and icons)
Comment 18 Göktürk Yüksek archtester gentoo-dev 2016-02-10 07:19:13 UTC
> As-is, the Makefile does not respect the $(CC) variable and overrides it
> with gcc. However, that is an issue that needs to be fixed upstream I think.
> 

Ignore this bit too. The package directory has both cmake and Makefile. The Makefile seems to respect CC so it's all good.

There's one minor issue that there's an empty checkbox in the preferences window. I've created a PR for it: https://github.com/EionRobb/skype4pidgin/pull/409 We'll see. If they accept it, we can do a revision in the future and backport it.

I think as-is this looks good. My pidgin is still alive. Good job!
Comment 19 Adam Feldman gentoo-dev 2016-02-10 08:26:40 UTC
(In reply to Igor Mikeshin from comment #5)
> (In reply to NP-Hardass from comment #1)
> > Are you by chance interested in proxy maintaining this?
> > https://wiki.gentoo.org/wiki/Project:
> > Proxy_Maintainers#What_it_takes_to_be_a_Proxied_Maintainer
> > 
> > Additionally, I'd highly recommend have a versioned ebuild as well.  Looks
> > like upstream has version 1.1 as their latest.
> 
> Thank you for your feedback. Can you review my ebuilds for pushing it to the
> sunrise?

Hello Igor,
Just wanted to clarify before commit.  You want to proxy-maint this in the main gentoo repo and not the sunrise project, correct?  Proxy-maintainers are reachable via cc on bugzilla to proxy-maint@gentoo.org, email to proxy-maint@gentoo.org, and the #gentoo-proxy-maint IRC channel on Freenode.  Sunrise is mostly defunct at present.  Anytime you have an ebuild to commit, you just bring us in, and we help make sure the ebuild is good to go.
Comment 20 Igor Mikeshin 2016-02-11 03:11:06 UTC
(In reply to NP-Hardass from comment #19)
> (In reply to Igor Mikeshin from comment #5)
> > Thank you for your feedback. Can you review my ebuilds for pushing it to the
> > sunrise?
> 
> Hello Igor,
> Just wanted to clarify before commit.  You want to proxy-maint this in the
> main gentoo repo and not the sunrise project, correct?  Proxy-maintainers
> are reachable via cc on bugzilla to proxy-maint@gentoo.org, email to
> proxy-maint@gentoo.org, and the #gentoo-proxy-maint IRC channel on Freenode.
> Sunrise is mostly defunct at present.  Anytime you have an ebuild to commit,
> you just bring us in, and we help make sure the ebuild is good to go.
It is correct. I was misunderstood that proxy-maintaining is the step after the sunrise. Now its clear that it is alternative.
Comment 21 Adam Feldman gentoo-dev 2016-02-11 03:38:58 UTC
Resolved in e3d757b90a16e0511865592685ce2a0249c484b9.

I am please to officially welcome you to the proxy-maint family :)