Author Topic: New packager guide  (Read 9316 times)

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #45 on: August 02, 2010, 08:33:29 PM »

because when I write my packages from the Synaptic history...


..this feature is not meant to work with Synaptic's history; it is designed to work with .remove files created by one of the other pkgutils scripts (essentially a log of apt-get output for a particular package).
« Last Edit: August 02, 2010, 08:35:46 PM by travisn000 »

Offline maik3531

  • Full Member
  • ***
  • Posts: 129
Re: New packager guide
« Reply #46 on: August 02, 2010, 10:07:17 PM »
Yes, but if you take a "virtual package" installed with a lot of dependencies via synaptic because addpkg must not know what to install?
then all installed packages for the RPM creation need to remove individually via Synaptic?

It would be better if the script supports both possibilities.
« Last Edit: August 02, 2010, 10:10:26 PM by maik3531 »
Please excuse my English

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: New packager guide
« Reply #47 on: August 21, 2010, 03:36:36 AM »
I noticed the updated packager packages that came in one of the updates recently which opened a little gui box asking me a few questions for setting up my build environment which I thought was fantastic! Great job guys!  ;)

I just have a question about it though. I had already set up my packaging environment manually with help from the posts in this thread and now my CHECKED repositories look like this.

http://ftp.jaist.ac.jp/pub/Linux/PCLinuxOS/apt/  <---------------- this is my normal PCLinuxOS repo. No problem there.
file:/home/tim/src/apt/  <----------------------------------------------this is the environment I set up manually.
file:/home//src/apt/       <----------------------------------------------this is the new one that was set up through the synaptic update I think.

The problem (I think) is the bottom two. In the environment I set up, there's no apt in the src folder but there is in the environment set up by the synaptic upgrade. But either way, I get this error from both of them when I reload synaptic.

Quote
Could not download all repository indexes

The repository might be no longer available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and the correct writing of the repository address in the preferences.


Any ideas?

宜しくお願いします > Yoroshiku Onegaishimasu > I humbly and respectfully ask for your kindness.  |   My graphics blog

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: New packager guide
« Reply #48 on: August 21, 2010, 03:41:24 AM »
Do not use the repo you created, and the error will go away. At least, that is what works for me.

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: New packager guide
« Reply #49 on: August 21, 2010, 03:51:45 AM »
Thanks Neal.  ;)

I got rid of the repo I created but still getting this error with the other one. Is it because there is nothing in those folders at the moment?

Quote
file:/home//src/apt/pclinuxos/2010/base/pkglist.athlon: File not found
file:/home//src/apt/pclinuxos/2010/base/pkglist.i586: File not found
file:/home//src/apt/pclinuxos/2010/base/pkglist.noarch: File not found
宜しくお願いします > Yoroshiku Onegaishimasu > I humbly and respectfully ask for your kindness.  |   My graphics blog

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: New packager guide
« Reply #50 on: August 21, 2010, 04:19:31 AM »
Hmm...... build a package, so that something gets added. Then give it a try.
« Last Edit: August 21, 2010, 02:11:44 PM by Neal »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #51 on: August 21, 2010, 07:57:03 AM »
Thanks Neal.  ;)

I got rid of the repo I created but still getting this error with the other one. Is it because there is nothing in those folders at the moment?

Quote
file:/home//src/apt/pclinuxos/2010/base/pkglist.athlon: File not found
file:/home//src/apt/pclinuxos/2010/base/pkglist.i586: File not found
file:/home//src/apt/pclinuxos/2010/base/pkglist.noarch: File not found


..it appears that you are missing the package lists for your local repo; try using the gbd script from the pkgutils package to create them (..or genbasedir if you don't have pkgutils).  

This needs to be done when you first set up your repo, and again every time you add / change packages in it.  gbd makes it easy if you are using our recommended setup (..it appears that you are); one command, no arguments gets it done!  ;D


EDIT:  I just realized that your username is not in those paths...  I'll have to take a look at the script and see what went wrong.
« Last Edit: September 19, 2010, 12:24:14 PM by travisn000 »

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: New packager guide
« Reply #52 on: September 05, 2010, 08:08:19 AM »
Hello,
       I managed to build a first package from a mandriva source in May.Slow I know.My point is things have moved on and there have been many changes.I used RPM_Build_Manual_Rev2.pdfas recommended by Joble.I need to be able to follow consistent guidelines till I get the hang of this packaging.Am I to understand this no longer is current practice and if so what is.Having built my package I have had it working and it seems ok.However it has not progressed from that as I have found the packager development just overloads my capabilities and leads to confusion.
Where is a current single source of information that newbies like myself can learn from and refer to for guidence.Perhaps someone could point me in the correct direction please.It seems as if trying to package could not be more confusing if you tried.I wonder how many others have given up in the face of such contradiction and chaos.I have been using PCLOS for quite a while and really would like to package.
Thanks.
trustytrev. :)
If there's a harder way to do something I'll probably find it.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #53 on: September 05, 2010, 09:08:14 AM »
I think this is the most current that we have...  I had started transcribing that PDF onto the wiki, updating as needed, but unfortunatly we lost the wiki with a hackers attack on the site.

IIRC, that pdf does not have updated info about setting up your build environment and the current pkgutils scripts, but otherwise the process is generally the same.  ...installing the latest pkgutils package for your preferred file manager will take care of these issues automatically, so it shouldn't be much of an problem.


Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: New packager guide
« Reply #54 on: September 06, 2010, 02:29:02 AM »
Hello,
         Thanks for the reply travisn000 .These damned hackers should find something better to do with their time.
Will the wiki be fixed?Is there any information or guidance on what one does with a package once it is working?
I have seen mention of "dropbox"Any guidance would be appreciated on how to correctly use this to submit ones package for testing.
trustytrev.
If there's a harder way to do something I'll probably find it.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #55 on: September 07, 2010, 09:49:54 PM »
I'm not sure what the future of the wiki is...  it is entirely up to Tex.

The dropbox you see mention of is a shared directory in Tex's personal dropbox.  You have to send him a PM and request access..  

Install DropBox from the repo, create a free account, and send your dropbox user name / email to Tex with a short note!  ;)
« Last Edit: September 07, 2010, 09:51:37 PM by travisn000 »

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12514
Re: New packager guide
« Reply #56 on: September 08, 2010, 12:22:47 AM »
I'm not sure what the future of the wiki is...  it is entirely up to Tex.

The dropbox you see mention of is a shared directory in Tex's personal dropbox.  You have to send him a PM and request access..  

Install DropBox from the repo, create a free account, and send your dropbox user name / email to Tex with a short note!  ;)

I'll know more about the wiki when I get time to look into it. Website security is my top priority at the moment. I can tell you it will be hosted offsite probably on pclinuxonline.com server.


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