Author Topic: I seem completely lost  (Read 3140 times)

Online Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: I seem completely lost
« Reply #15 on: December 30, 2011, 06:20:03 PM »
Yes, you can package in vbox. Personally I prefer a dedicated partition, but that's me.     
After you have practiced packaging a few themes, as per Archie's advice, practice packaging a few of our in-house apps. For a list, check the knowledge base (wiki).     

That's what you would have advised me when I was starting out, Neal. So it's really you giving longtom jr the sound advice. ;)
     
 :D It is you passing it on, Archie. And when the time comes, LTJR will pass it on in his turn. :D     

Offline longtom jr

  • Full Member
  • ***
  • Posts: 170
  • Skateboarding through the neighborhood
    • My Deviantart page
Re: I seem completely lost
« Reply #16 on: January 01, 2012, 04:15:24 AM »
OK I got my LXDE-mini running in vbox and I downloaded a theme...

Now what do I do next... I looked at the tut. but it wasn't clear to me...

I anyone can help...

Regards LTJR

PS: May the theme contain GTK

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: I seem completely lost
« Reply #17 on: January 01, 2012, 04:19:47 AM »
OK I got my LXDE-mini running in vbox and I downloaded a theme...

Now what do I do next... I looked at the tut. but it wasn't clear to me...

I anyone can help...

Regards LTJR

PS: May the theme contain GTK

Have you installed pkgutils-thunar?
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Online Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: I seem completely lost
« Reply #18 on: January 01, 2012, 04:23:48 AM »
As you are using LXDE-Mini, I suppose you installed pkgutils-thunar, as it works best with LXDE. So, open thunar, navigate to your Downloads folder, right-click the src.rpm and choose the extract for build option. Next, navigate to your /src/rpm/SPECS folder and open the spec file.    

edit: Archie is faster than me. :D     

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: I seem completely lost
« Reply #19 on: January 01, 2012, 05:09:15 AM »
But you did give instructions for the next step. ;)

After following Neal's instructions, the folder to watch are SOURCES and SPECS.

On SOURCES, extract the archive. If the file is tar.gz or tar.bz2, you'll need to recompress it as tar.xz. Tex prefers this format. There should be an entry on the context menu. Right-click on the folder and select Compress > As XZ/Tar archive.

Look at the contents of the archive folder. Themes are straight-forward and only needed to be copied to %_datadir (a file path macro which is /usr/share on an working install). Stumpy842 put together a great list of the file path macros.

At the SPECS, open the app.spec with your favorite raw text editor. Geany or Leafpad on your install should be good. Take a look at the different sections - %description, %prep, %build, %install, %post, %postun, %clean, %files and %changelog. Ask questions on what you do not understand.

That's all for now.
« Last Edit: January 01, 2012, 05:21:10 AM by Archie »
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Online Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: I seem completely lost
« Reply #20 on: January 01, 2012, 05:43:55 AM »
One thing further, gedit is a better text editor for spec files than geany, IMO. Geany is better for writing code. :)     

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: I seem completely lost
« Reply #21 on: January 01, 2012, 05:49:27 AM »
One thing further, gedit is a better text editor for spec files than geany, IMO. Geany is better for writing code. :)     

So Geany ss kinda like Kate, and Gedit and Leafpad is like KWrite
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: I seem completely lost
« Reply #22 on: January 25, 2012, 01:48:00 AM »
Just a follow-up, longtom, jr. How's it going?
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline on4aa

  • Jr. Member
  • **
  • Posts: 14
  • Are my methods unsound?
    • hamwaves.com
Re: I seem completely lost
« Reply #23 on: February 03, 2012, 08:36:51 AM »
It would be great to have this and other packager info summarised on the wiki !

... another new packager wannabe

Have you ever considered any real freedoms? Freedoms from the opinion of others... even the opinions of yourself?
Colonel Walter E. Kurtz in "Apocalypse Now"

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: I seem completely lost
« Reply #24 on: February 03, 2012, 06:34:20 PM »
It would be great to have this and other packager info summarised on the wiki !

... another new packager wannabe

Bring you on, on4aa!

Any help you need, just ask. And welcome to the community.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline clarms

  • Full Member
  • ***
  • Posts: 72
Re: I seem completely lost
« Reply #25 on: February 03, 2012, 06:38:55 PM »
I'm not sure with what you want start, i started with a own script-tool (system-info), and read this sorry found it only in german, this link will not longer work http://www.montanalinux.org/files/RPM_Build_Manual_Rev2.pdf.


The link works without the period.  ;D

A long time ago there was a manual called Maximum Rpm and no idea if it was ever updated.

I just use a cheat sheet.
« Last Edit: February 03, 2012, 06:52:41 PM by clarms »

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: I seem completely lost
« Reply #26 on: February 03, 2012, 07:16:41 PM »
What is needed to be done is to update any HowTos on Packaging for PCLinuxOS based on the current tools and commands that are available in PCLinuxOS and centered on travisN000's collection of packaging scripts (from Stumpy842 and Leiche) aptly called pkgutils. Currently, setting up a build environment can be based on former PCLOS packager, gettinther's instructions with modifications - i.e. some of the packages required are no longer necessary or had been updated, some of the commands used are slightly different (rpm -ba vs rpmbuild -ba), the aliases definitions are incomplete on previous documents, category values were absent ... etc.

We need documentations on, e.g. the difference between:

%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install

and

%makeinstall_std C               // <-- test ;)

... well, I guess what I am trying to point out is (1) we have tools that make it easy, (2) understanding what the tools are, and when and how to use them, (3) so many stuff will not be covered on any single documentation and that anyone who wish to learn (and help out in) packaging should ALWAYS read the SOURCE accompanying README.

If anyone is interested I could post a cheat sheet.

Please do. If it conforms to the PCLinuxOS packaging specifications, it will be helpful. If however, it will create confusion and is inconsistent and different ...

Peace and much respect,
Archie
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: I seem completely lost
« Reply #27 on: February 03, 2012, 07:28:48 PM »
What is needed to be done is to update any HowTos on Packaging for PCLinuxOS based on the current tools and commands that are available in PCLinuxOS and centered on travisN000's collection of packaging scripts (from Stumpy842 and Leiche) aptly called pkgutils. Currently, setting up a build environment can be based on former PCLOS packager, gettinther's instructions with modifications - i.e. some of the packages required are no longer necessary or had been updated, some of the commands used are slightly different (rpm -ba vs rpmbuild -ba), the aliases definitions are incomplete on previous documents, category values were absent ... etc.

We need documentations on, e.g. the difference between:

%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install

and

%makeinstall_std C               // <-- test ;)

... well, I guess what I am trying to point out is (1) we have tools that make it easy, (2) understanding what the tools are, and when and how to use them, (3) so many stuff will not be covered on any single documentation and that anyone who wish to learn (and help out in) packaging should ALWAYS read the SOURCE accompanying README.


As I see you are very skilled, I want to thank you in advance for your voluntary job of writing a new guide  ;D  :D

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: I seem completely lost
« Reply #28 on: February 03, 2012, 07:33:15 PM »
As I see you are very skilled, I want to thank you in advance for your voluntary job of writing a new guide  ;D  :D

Don't push it ...  >:(    ;)    ;D
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Rudge

  • Hero Member
  • *****
  • Posts: 9711
  • I'm Just A Dog.
Re: I seem completely lost
« Reply #29 on: February 03, 2012, 09:07:50 PM »
You guys are a mess. LOL  ;D ;D


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan