Author Topic: Packagers Packagers Packagers!  (Read 2963 times)

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12506
Packagers Packagers Packagers!
« on: March 28, 2011, 01:31:53 PM »
Refresher course.

1. Name your specfile - pclos-name-of-package.spec (example: pclos-doxygen.spec)

Why? - This makes it handy if you are updating a package and encounter a build error. You can install another distributions source package and kompare their spec file with yours to see if they added a patch or a different build option to make the new version build.

2. Convert your source tarball to tar.xz from tar.gz and tar.bz2.

Why? The public server ibiblio does not have infinite space and bandwidth. By re-compressing your source tarball with tar.xz you will generate a much smaller SRPM. This saves space on ibiblio and makes uploading the SRPMs from the build server to go much faster as there is less to upload.

3. Use proper versions of your package release.

Why? If this is a new package going into the PCLinuxOS repository even if it has been based on another distributions specfile then your release macro for PCLinuxOS is %mkrel 1

4. Make a complete changelog

Why? This gives me information as to when the package was built, who built it , an email contact, version number. and a description of what you did to the package. If you are importing a package from another distribution then all you need to do is add in the description area based on original specfile from fedora, Opensuse, mdv etc...

Example:
* Mon Mar 28 2011 Texstar <texstar at gmail.com> 1.7.4-1pclos2011
- 1.7.4
- add requires for new glibc

5. gcc/glibc updates needs additional requires.

Why? When you update your gcc/glibc you will need to add the following to your specfile to force the user to update the following 2 packages to ensure the new programs compiled with gcc 4.5.2 will install and run properly on their existing system.

Requires:   glibc >= 2.12.1
Requires:   libstdc++6 >= 4.5.2

Thanks for assisting our members with PCLinuxOS packaging. It is very much appreciated by me and the members of this distribution.

Tex

Thanks to everyone who donates. You keep the servers running.

Offline Sproggy

  • Hero Member
  • *****
  • Posts: 1484
Re: Packagers Packagers Packagers!
« Reply #1 on: March 28, 2011, 01:48:57 PM »
Puts hand up ... sorry boss .... goes and sits in naughty corner lol ...

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Packagers Packagers Packagers!
« Reply #2 on: March 28, 2011, 02:02:10 PM »
should i now all package rebuild with

Requires:   glibc >= 2.12.1
Requires:   libstdc++6 >= 4.5.2

?
And when will glibc, libstdc++6 available in our repo?

Sorry for my silly question  ::)

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12506
Re: Packagers Packagers Packagers!
« Reply #3 on: March 28, 2011, 02:04:54 PM »
should i now all package rebuild with

Requires:   glibc >= 2.12.1
Requires:   libstdc++6 >= 4.5.2

?
And when will glibc, libstdc++6 available in our repo?

Sorry for my silly question  ::)

When you update your gcc/glibc from the repos you should start adding.

Requires:   glibc >= 2.12.1
Requires:   libstdc++6 >= 4.5.2

gcc/glibc updates are currently in the testing section and being discussed on the testers mailing list.


Thanks to everyone who donates. You keep the servers running.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Packagers Packagers Packagers!
« Reply #4 on: March 28, 2011, 02:10:20 PM »
okay, thank you!

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Packagers Packagers Packagers!
« Reply #5 on: March 28, 2011, 02:32:07 PM »
Puts hand up ... sorry boss .... goes and sits in naughty corner lol ...

Watch out! :o Don't sit on me! :o ::)

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3791
Re: Packagers Packagers Packagers!
« Reply #6 on: March 28, 2011, 02:59:53 PM »
 :-[ ::)

Galen

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: Packagers Packagers Packagers!
« Reply #7 on: October 18, 2011, 02:21:50 PM »
I am trying to build a package and i am getting an error msg that says:

error: line 4: Tag takes single token only: Release: 1pclos -OR- muungwana2011

when i have below line in the release section.

Release: %mkrel 1

Am i missing a macro or something?, i just installed the build package task package and i think i am missing something but i dont know what it is.

edit:
my ~/.rpmmacros has the following in it.

%_topdir        /home/ink/src/rpm
%_tmppath       /home/ink/src/tmp
%packager       muungwana
%distribution   PCLinuxOS
%distsuffix     pclos -OR- muungwana
%vendor PCLinuxOS
« Last Edit: October 18, 2011, 02:25:09 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Packagers Packagers Packagers!
« Reply #8 on: October 18, 2011, 02:29:01 PM »
Change in your .rpmmacros as sample

Code: [Select]
%_topdir /home/daniel/src/rpm
%_tmppath /home/daniel/src/tmp
%packager leiche
%distribution PCLinuxOS
%distsuffix leiche
%vendor PCLinuxOS

and all will gone

Edit:
%distsuffix   leiche,

only pclos or muungwana ;)
« Last Edit: October 18, 2011, 02:30:47 PM by Leiche »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Packagers Packagers Packagers!
« Reply #9 on: October 18, 2011, 02:34:54 PM »
muungwana,     
That message is telling you that you can not have an option statement (--- or ---) as your %distsuffix. Follow Leiche's advice and choose one or the other.     

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6235
Re: Packagers Packagers Packagers!
« Reply #10 on: October 18, 2011, 03:05:06 PM »

which one is more appropriate/recommended for packaging for pclinuxos?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3984
Re: Packagers Packagers Packagers!
« Reply #11 on: October 18, 2011, 04:03:09 PM »
It makes no difference.When Texstar builds it for the servers it will be replaced with his .rpmmacros data.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Packagers Packagers Packagers!
« Reply #12 on: October 18, 2011, 04:35:52 PM »
I'd recommend using your name. When Tex is preparing the SRPM for our repos, he will know at a glance that it is your package.