Author Topic: Re: problem using pkgutils :solved  (Read 2859 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #15 on: April 03, 2010, 09:04:17 AM »
Martin,
Test this, please. http://nbrks.com/neal/RPM/


Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: problem using pkgutils :solved
« Reply #16 on: April 04, 2010, 01:28:24 PM »
Does anyone (Joble?) have a copy of the srpms that i posted a link to here:

http://www.pclinuxos.com/forum/index.php/topic,62579.msg512810.html#msg512810

..I just replaced that server two days ago and didn't save the files.


The reason I ask, is if I recall correctly, there were quiet a few things that were fixed..  most of the scripting was removed that rewrote the sources.list, and the packages that were installed were moved to a metapackage so that the script should not have to be updated.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #17 on: April 04, 2010, 01:36:53 PM »
Travis,
I've been attempting to fix mkrepo. I've not looked at the other scripts yet. The current SRPM I've done is on my site --> http://nbrks.com/neal/RPM/pkgutils-0.1.4-3pclos20102010.src.rpm

I wish I could provide the one you're looking for, but this is what I have, though.


Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: problem using pkgutils :solved
« Reply #18 on: April 04, 2010, 03:35:39 PM »
Thanks neal..

I downloaded /installed the one on your server..  it appears to be based on an older version and still generates errors on my install.  I was hoping someone might have the more recent one, as it would save some time in the fixing.  
 :-\

..I'll check with Joble, as he had it at one time, and also do some checking in a few of my old VM's.  :)
« Last Edit: April 04, 2010, 03:46:21 PM by travisn000 »

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: problem using pkgutils :solved
« Reply #19 on: April 04, 2010, 04:27:16 PM »
Hi Travis,

I've just tested Neal's mkrepo in LXDE beta 2 - all is fine here now,

it is in srpm in dropbox,

/MBantz

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #20 on: April 04, 2010, 05:24:27 PM »
Travis,
I used the SRPM from the 2010 repo. Why would I use the old script? ???

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: problem using pkgutils :solved
« Reply #21 on: April 04, 2010, 07:54:07 PM »
..sorry, I should clarify:

Awhile back I did a pretty significant re-write of mkrepo, and also fixed the bugs that are popping up again in it and the other pkgutils scripts.  Unfortunately I no longer have a copy of those updates (I wiped that install to make room for 2010 beta testing).  The version that is in the 2010 repo is older than the rewrite that I made (which joble submitted to tex for me at that time).  

Some of the changes included taking out much of the code that overwrites the users sources.list, updating the list of packages installed by mkrepo, and moving this list out of mkrepo and into a separate metapackage.  I also created a metapackage named task-packaging that would install both the packages needed for packaging and the pkgutils package directly from synaptic..  that way the mkrepo script only had to create the packaging directories and add the local repo to the users existing sources.list (and the script would not have to be updated every time new or additional versions of the packaging packages were released..  a simple rebuild of the metapackage could be performed without altering the script)

PS..  I searched through my old VMs and I don't seem to have a copy of my re-writes.  :'( :-\


FYI:
Hey tex-

I'm getting started on updating the pkgutils scripts so that they work with the new updated bash..  in the process I had a few questions that needed "official" answers:

1)  Does testing need to be enabled before installing the packages below?

2)  Is the package list still accurate / up to date:
      autoconf2.1
      autoconf2.5
      automake1.7
      automake
      rpm-build

3)  Would it be better to just have a metapackage for these so that the script doesn't have to be updated if / when the list changes?


I'm also going to update synaptic-repair..  part of the script has a hard-coded list of repositories.  I was thinking a better solution might be to have the script offer to download & install an "apt-sources-list" package using wget & rpm (as apt/synaptic may not be working), so that the script doesn't have to be updated every time official repos are added or removed.

IIRC synaptic-repair also needs to be updates so that it preserves pass & local repo's when re-writing the sources.list.




Testing does not have to  be enabled. I guess a meta package would be helpful. I can store the latest sources.list on a folder at ibiblio.


« Last Edit: April 04, 2010, 08:00:00 PM by travisn000 »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #22 on: April 04, 2010, 09:19:35 PM »
Travis,
I checked on my site in Joble's folder but no luck. :(

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: problem using pkgutils :solved
« Reply #23 on: April 05, 2010, 06:34:19 AM »

I downloaded this only a day or 2 ago. It may or may not be what ur looking for. This is a box.net link.
http://www.box.net/shared/3iy508tiq5




Any chance you have the other files as well?  ..that one is a metapackage (it doesn't actually contain the scripts, just gives instructions to install a group of other packages), we are looking for the pkgutils package that was with it.  :D :D

If you happen to have installed the pkgutils package that was with it, and don't have the package, posting the scripts from your install would also be helpful.
« Last Edit: April 05, 2010, 06:37:35 AM by travisn000 »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #24 on: April 05, 2010, 06:59:52 AM »
That is one I did, ongoto.

Travis,
Have you checked YouCanToo's KDE3 repo?


Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: problem using pkgutils :solved
« Reply #25 on: April 05, 2010, 06:05:13 PM »
I have not..  but I did drop Joble a message (still waiting to hear back).


If need be I can help out and we can re-do it again..   I will be pretty busy over the next week or so; my availability will be hit and miss.  :-\

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #26 on: April 05, 2010, 06:09:21 PM »
I'll be trying to find the files, Travis. Maybe with some luck.........

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: problem using pkgutils :solved
« Reply #27 on: April 05, 2010, 09:27:18 PM »
Here is a mostly fixed / finished / updated version of mkrepo (attached)..  the script still contains the list of packages to install, as I have not remade a metapackage to define them as a group.  It no longer re-writes the apt-sources.list, instead it just appends the newly created local repo (if it isn't already there).


« Last Edit: April 05, 2010, 11:24:15 PM by travisn000 »

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: problem using pkgutils :solved
« Reply #28 on: April 06, 2010, 05:56:58 AM »
Thanks Travis!

Beautiful code you have there :-)


I small request for change in addpkg in pkgutils: When installing dependencies, I keep to abort the script when it asks for "The following packages will be installed" and the default is No. I suggest it changed to default to Yes like this:


/usr/bin/addpkg
Code: [Select]
...snip...snip...
echo -e "\nThe following ${#ar[@]} packages will be installed:\n"
echo -e "${ar[@]}\n"
if [ "$(yorn y "Are you sure? [Y/n] ")" = "Y" ]; then
aname=""
savelist "$1"
...snip...snip...

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: problem using pkgutils :solved
« Reply #29 on: April 06, 2010, 06:27:06 AM »
Having a look at mkrepo2 this morning. :D Have you had a look at the metapackage a-task-packager-minimal?