Author Topic: Trying to package skype 4 but having errors...  (Read 1809 times)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Trying to package skype 4 but having errors...
« Reply #15 on: June 28, 2012, 06:57:45 PM »
Agent Smith is one of our packagers. It would be a good course of action if he takes a look at naoliveira's Skype4 and Agent Smith can inform us what his opinions are. Kinda like what I did for him.  ;)
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11541
  • ----IOFLU----
Re: Trying to package skype 4 but having errors...
« Reply #16 on: June 28, 2012, 11:11:56 PM »
naoliveira,
Despite your insistence on it, studying spec files from other distros is not how to learn to package for PCLinuxOS.     
And I don't understand why you continue focus on "other distros specs" instead of "converting to pclinuxos format".
I gave you the skype 4 example, the dependency problem that I had I resolved it looking in PCLinuxOS spec's format, not in Mandriva spec's format.
I never intended to studied "others distros specs", I just tried to grab a "other distro specs" and converting to PCLinuxOS format, and I did with skype 4, maybe is not 100% but it is working. If you think this is a bad idea, you should explain why converting shouldn't be used instead of saying that studied "other distros specs" are wrong.
In the RPM manual the 1st option to make a PCLinusOS spec file is to grab a already created one from other distro and convert it.

What you propose is the last resort method, for when there is no past PCLinuxOS build of a specific application. We have had successful builds of Skype packages for years, so starting with our own package's existing spec file is the most likely successful way to accomplish the build for PCLinuxOS. Even our own spec files need to be modified when newer versions of applications require different dependencies because of new features, code rewrites, or package naming conventions. If you want to be a successful and productive packager, you don't look for the most difficult path to follow; you look for the easiest, and most likely to succeed.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Trying to package skype 4 but having errors...
« Reply #17 on: June 29, 2012, 12:20:27 AM »
naoliveira,
Despite your insistence on it, studying spec files from other distros is not how to learn to package for PCLinuxOS.     

And I don't understand why you continue focus on "other distros specs" instead of "converting to pclinuxos format".
I gave you the skype 4 example, the dependency problem that I had I resolved it looking in PCLinuxOS spec's format, not in Mandriva spec's format.
I never intended to studied "others distros specs", I just tried to grab a "other distro specs" and converting to PCLinuxOS format, and I did with skype 4, maybe is not 100% but it is working. If you think this is a bad idea, you should explain why converting shouldn't be used instead of saying that studied "other distros specs" are wrong.
     
I see. You misunderstand. We do not start with the spec of some other distro and then convert. We start with a PCLinuxOS spec and rewrite parts of it as needed in order to package the update. When creating a new (not currently in the repository) package, it is acceptable to start with a spec from another distro and convert, but it is preferable to write a new spec from scratch.         
Have a look at the skype4 SRPM submitted by Agent Smith.     
Take Archie's suggestion seriously and ask Agent Smith to have a look at your spec.     

Quote
In the RPM manual the 1st option to make a PCLinusOS spec file is to grab a already created one from other distro and convert it.
     
That manual was written many years ago. That option was not intended as "the first option" but rather as "an option." (Yes, I do remember those early days when the manual was created.)     

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Trying to package skype 4 but having errors...
« Reply #18 on: June 29, 2012, 12:59:07 AM »
Here's what I start with for new packages. Plain and simple and some commands already in place but they are not fixed. I had the commands there so I didn't have to keep retyping them when packing KDE-related packages.

Feel free to use it on new packages.

Quote
# PCLinuxOS Copyright by Bill Reynolds (Texstar)

%define name         
%define version      
%define release      %mkrel 1


Name:         %{name}
Version:      %{version}
Release:      %{release}
Summary:      
URL:         
Group:         
License:      GPL v3
Source:         %{name}-%{version}.tar.xz
BuildRequires:    
Requires:      
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}

%description


%prep
%setup -q

%build
%cmake_kde4
export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
%make

%install
%__rm -rf %buildroot
%makeinstall_std -C build

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root,-)

%changelog
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline naoliveira

  • Jr. Member
  • **
  • Posts: 26
    • Doces Salgados
Re: Trying to package skype 4 but having errors...
« Reply #19 on: July 02, 2012, 03:28:25 PM »
Have a look at the skype4 SRPM submitted by Agent Smith.

Ok, I will do that.

Take Archie's suggestion seriously and ask Agent Smith to have a look at your spec.

How can I do that?

   
That manual was written many years ago. That option was not intended as "the first option" but rather as "an option." (Yes, I do remember those early days when the manual was created.)

Ok, I have to adapt to nowadays.

Here's what I start with for new packages.


Thanks for sharing

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Trying to package skype 4 but having errors...
« Reply #20 on: July 02, 2012, 04:35:28 PM »
Take Archie's suggestion seriously and ask Agent Smith to have a look at your spec.
How can I do that?
     
Via PM (personal message). At the top of this page, on the toolbar, click Messages. Click New Message in the left side menu. Type Agent Smith into the send to field.     

Offline naoliveira

  • Jr. Member
  • **
  • Posts: 26
    • Doces Salgados
Re: Trying to package skype 4 but having errors...
« Reply #21 on: July 04, 2012, 01:03:04 PM »
Via PM (personal message). At the top of this page, on the toolbar, click Messages. Click New Message in the left side menu. Type Agent Smith into the send to field.     
Thanks  Neal, but for this package I will not do this because as I told you before I grab the MIB SRPM and change only 2 lines of the SPEC file. And I already compared with Agent Smith SPEC file where I learned how to add the package to the PCLinuxOS menu (I was having difficult how to do it in MIB SPEC).

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!

Offline Agent Smith

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 317
    • Brazilian PCLinuxOS Community
Re: Trying to package skype 4 but having errors...
« Reply #23 on: July 19, 2012, 10:17:12 AM »
Dear friends,

I was not aware of this discussion. If I can make a statement to help our friend naoliveira, get srpms already in our repos and try to update them/upgrade them.
One can learn a lot from this.
And regarding what our dear friend Archie wrote, yes, with time you are going to make a generic spec, that will work most of the times.
I have one like that, and it is serving me well with many packages.

Naoliveira,
Don't give up. There's still lots of great programs to bring over to PCLinuxOS repos.

Hoping to find all of our colleagues in good health and good mood,

I send my best regards,


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Trying to package skype 4 but having errors...
« Reply #24 on: July 19, 2012, 07:53:22 PM »
Dear friends,

I was not aware of this discussion. If I can make a statement to help our friend naoliveira, get srpms already in our repos and try to update them/upgrade them.
One can learn a lot from this.
And regarding what our dear friend Archie wrote, yes, with time you are going to make a generic spec, that will work most of the times.
I have one like that, and it is serving me well with many packages.

Hoping to find all of our colleagues in good health and good mood,

I send my best regards,



Hey Alessandro,

Our friend naoliveira was advised to contact you via PM. Just as you, in your desire to help the Brazilian PCLOS community and help with the packaging, have shown your drive and commitment, you are requested by both Neal and me to access and evaluate our friend. Your recommendation is given the highest consideration.

Peace and much respect,
Archie

Naoliveira,
Don't give up. There's still lots of great programs to bring over to PCLinuxOS repos.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Agent Smith

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 317
    • Brazilian PCLinuxOS Community
Re: Trying to package skype 4 but having errors...
« Reply #25 on: July 21, 2012, 01:52:09 PM »

Hey Alessandro,

Our friend naoliveira was advised to contact you via PM. Just as you, in your desire to help the Brazilian PCLOS community and help with the packaging, have shown your drive and commitment, you are requested by both Neal and me to access and evaluate our friend. Your recommendation is given the highest consideration.

Peace and much respect,
Archie


Hi Archie,
I still have a long way to go, to be considered in the same league of you, Leiche or Mr. Neal.
But I want to help.
Thank you for your kind words about me.

I am awaiting for Naoliveira contact.

Best regards,


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Trying to package skype 4 but having errors...
« Reply #26 on: July 21, 2012, 06:52:04 PM »
Hi Archie,
I still have a long way to go, to be considered in the same league of you, Leiche or Mr. Neal.
But I want to help.
Thank you for your kind words about me.

I am awaiting for Naoliveira contact.

Best regards,

Don't belittle yourself, meu bom amigo. We all need more experiences to become good but it is the learning how that gives us the better understanding. You are not only the average user; you are also a representative of a bigger PCLinuxOS community and an honorable packager. I take my hat off for you.

We all have our roles to play ... yours are important.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Trying to package skype 4 but having errors...
« Reply #27 on: July 22, 2012, 01:59:31 AM »
It is up to you what you do on your system, but installing from outside sources -- including the use of alien --- renders your system officially unsupported.     

We do not accept 'converted' SRPMs created by alien for inclusion in our repo.     

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Trying to package skype 4 but having errors...
« Reply #28 on: July 22, 2012, 06:43:36 AM »
There are lots of ways of doing the same things in Linux.

I've converted package for Debian 32bit by alien and I've installed it from local repository. It works. Run as root:
...
Package for OpenSUSE had unmet dependencies.
Post deleted.

This way is definitely not the way we accept for our packages, and we discourage it. It is not helpful to the PCLinuxOS community as a whole and potential next gen packagers to learn things this way.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42