Author Topic: mkrepo problem  (Read 6650 times)

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: mkrepo problem
« Reply #30 on: October 09, 2009, 12:35:46 PM »
Hey travis, might wanna look at this, it's way kool!
http://www.pclinuxos.com/forum/index.php?topic=62417.0

I'll fire up my kde4 tonight and test them out.  I'll upload them to, if someone else doesn't do it first.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: mkrepo problem
« Reply #31 on: October 09, 2009, 12:39:03 PM »
Travis,
Install DropBox. Set up your free account and add the folder SRPM to your DropBox folder. Share your folder with Texstar. Put your SRPMs in the ~/DropBox/SRPM/ folder. (Check the DropBox thread here.)
This is the quick and easy way to submit your packages.


Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: mkrepo problem
« Reply #32 on: October 09, 2009, 12:47:04 PM »
Before I had a "packaging" profile in konqueror that had one tab with a split window set to my SRPM folder and sftp://user@pclos..whatever and used kwallet to automatically log in..  I never used any additional ftp / dropbox programs, etc.  When I wanted to upload I just dragged the SRPMs from one half of the window to the other..

..If it is still supported, a PM with the ftp url & password would be appreciated!  (or if all else fails I can boot up one of the old packaging VM's..  I just need to transfer them / convert them to this install)
« Last Edit: October 09, 2009, 12:49:36 PM by travisn000 »

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: mkrepo problem
« Reply #33 on: October 10, 2009, 08:36:59 AM »
Working Great!  Sent them in for ya.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: mkrepo problem
« Reply #34 on: June 16, 2010, 01:17:40 AM »
Managed  to save the file and it now runs.However when it finishes and asks'choose a repo to make active',it gives me a choice of repos but I cant get it to run.Doesn't seem to list a-whatever as before but perhaps it's me not adding the correct command??



Hi folks,

I was just reading through this thread because I'm trying to set up my first build environment but I'm having a problem related to the one I quoted above. I'm running the build environment setup command in a terminal and it's getting through it ok and when I  get up to the part that asks me to choose which repo to make active, the list it gives me is different to the sources.list I have in /etc/apt.  It's a much shorter list of repos and if I choose one of them and continue, it fails and says it couldn't connect. This also creates a new sources.list in /etc/apt which if I use it with synaptic, fails to connect to any repo I select and I have to revert to the sources.list.old that was created which then fixes the connection through synaptic.

Does anyone know what's happening here?

Thanks.  

EDIT:   Ok, I just found Travis' updated mkrepo script here >
Quote
http://www.pclinuxos.com/forum/index.php/topic,57631.msg603482.html#msg603482


...not sure where I should stick it though.... ???   Could someone please tell me where to stick it?   :D   
« Last Edit: June 16, 2010, 01:33:22 AM by timeth »
宜しくお願いします > 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: mkrepo problem
« Reply #35 on: June 16, 2010, 02:25:35 AM »
Quote
Could someone please tell me where to stick it?

Ya had ta say it, didn't ya? ;) ;D

/usr/bin, Tim.

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: mkrepo problem
« Reply #36 on: June 16, 2010, 05:57:41 AM »
Quote
Could someone please tell me where to stick it?


Ya had ta say it, didn't ya? ;) ;D

/usr/bin, Tim.



Thanks Neal, that's where I'll stick it.  :)

EDIT:
  Well, I replaced the mkrepo file with Travis' updated one and made it executable but still having the same problem. In the terminal, I'm given this list of repos to choose from which is many less than the current number of active repos and the one I use isn't included there. And, one of them is 2007, is that correct??  I can't see how I can choose one of them to make it active without it changing my sources.list file. Obviously if I do, my synaptic will connect with the newly activated repo right?  ???

Quote
http://ftp.heanet.ie/pub/pclinuxos/apt/ \\
ftp://ftp.belnet.be/pub/mirror/pclinuxonline.com/apt/ \\
http://cesium.di.uminho.pt/pub/pclinuxos/apt/pclinuxos/2007/ \\
ftp://ftp.ch.debian.org/mirror/pclinuxos/apt/ \\
http://ftp.sh.cvut.cz/MIRRORS/pclinuxos/apt/ \\
http://ftp.nl.freebsd.org/os/Linux/distr/texstar/pclinuxos/apt/ \\
ftp://ftp.pbone.net/pub/pclinuxos/apt/ \\
ftp://rm.mirror.garr.it/mirrors/pclinuxos/apt/ \\
http://mirrors.lastdot.org:1280/pclos/apt/ \\
http://pclosusers.com/pclosusers/pclosfiles/ \\
http://ftp.leg.uct.ac.za/pub/linux/pclinuxos/apt/ \\
http://mirror.pacific.net.au/pub1/linux/texstar/pclinuxos/apt/ \\
ftp://mirror.internode.on.net/pub/pclinuxos/apt/ \\


« Last Edit: June 16, 2010, 06:21:04 AM by timeth »
宜しくお願いします > 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: mkrepo problem
« Reply #37 on: June 16, 2010, 07:29:41 AM »
 ??? ??? ??? mkrepo should set up a build environment for you and create a local repo in your /home.
Did you install task-packaging-kde4? pkgutils-thunar? Or was it a-task-packager-minimal? I think the last of these may still be set up for 2009. It does sound like that is what is happening.

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: mkrepo problem
« Reply #38 on: June 16, 2010, 07:53:34 AM »
Yes, I installed task-packaging-kde4 which also installed these dependencies >

pkgutils-kde4
rpm-build
rpm-pclinuxos-setup-build
autoconf2.1
autoconf
automake1.7
automake

I then downloaded Travis' mkrepo script and put it into /etc/apt (replacing the one that was in there) and then ran the first time config command >

mkrepo -a -d PCLinuxOS -v PCLinuxOS -s <pclos, or your PCLOS user name> -p <your PCLOS user name>

and yes, the files and folders are created in my  /home/name  but after that, the terminal asks me to choose a repo to activate and I'm only given the list of repos I listed a couple of posts above, but if I go ahead and select one, I'm pretty sure my sources.list will change but the list above is completely different to my current sources.list file. Not sure what I should do from here.   :-\
宜しくお願いします > 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: mkrepo problem
« Reply #39 on: June 16, 2010, 08:08:19 AM »
Keep your sources list with the exception of adding your /home/repo to it.

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: mkrepo problem
« Reply #40 on: June 16, 2010, 08:54:00 AM »
Sorry, should have posted this before.

Code: [Select]
$ mkrepo -a -d PCLinuxOS -v PCLinuxOS -s pclos -p timeth

Using /home/tim as base for src tree.
These lines will be written to ~/.rpmmacros:

%_topdir        /home/tim/src/rpm
%_tmppath       /home/tim/src/tmp
%packager       timeth
%distribution   PCLinuxOS
%distsuffix     pclos
%vendor PCLinuxOS

Build packages will be downloaded and installed

Continue? [Y/n] y
Please enter root Password:

PCLinuxOS official repositories:
  \141) http://ftp.heanet.ie
  \142) ftp://ftp.belnet.be
  \143) http://cesium.di.uminho.pt
  \144) ftp://ftp.ch.debian.org
  \145) http://ftp.sh.cvut.cz
  \146) http://ftp.nl.freebsd.org
  \147) ftp://ftp.pbone.net
  \150) ftp://rm.mirror.garr.it
  \151) http://mirrors.lastdot.org:1280
  \152) http://pclosusers.com
  \153) http://ftp.leg.uct.ac.za
  \154) http://mirror.pacific.net.au
  \155) ftp://mirror.internode.on.net
Choose a repo to make active [a-\155]

Would this be the correct repositories list? Because it's very different from mine. When I try to choose one by typing a-\155 or whichever one I choose, it just gives me the same line again >  Choose a repo to make active [a-\155]     I even tried editing the mkrepo file by putting my currently active repository into that list above and tried selecting it, but same result no matter what I type.
Choose a repo to make active [a-\155]  a-\155
Choose a repo to make active [a-\155]  a-\154
Choose a repo to make active [a-\155]  \155
Choose a repo to make active [a-\155]  \154
Choose a repo to make active [a-\155]  155
Choose a repo to make active [a-\155]  154

Nothing seems to work, I just have to shut the terminal. Maybe I'm doing it wrong?  ::)

宜しくお願いします > 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: mkrepo problem
« Reply #41 on: June 16, 2010, 09:05:05 AM »
Hmm...... maybe Travis needs to respond? I didn't have this problem, so I'm kind of trouble-shooting in the dark.
I think I'd just accept the defaults with that and then edit the sources list to make corrections.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: mkrepo problem
« Reply #42 on: June 16, 2010, 03:41:57 PM »
Hi guys...  sorry for the slow response..

That error looks like the same one that occured with with the change from bash 3.x to v4...

Regardless, mkrepo is in need of a complete rewrite as there really is no good reason that it should be completely re-writing the sources.list file.  I thought I had completed the rewrite around the same time I did the repo-speed-test, but I cannot find it.  I was hoping to redo it last weekend, but other responsibilities prevailed; it probably won't happen this comming weekend either, as I will be busy with family activities.

For now, it is probably best to set up your build environment manually from konsole (..based on mkrepo):

(as regular user)
Code: [Select]
cd ~
PKGR_HOME_DIR=$HOME
mkdir -p $HOME/src/{apt/pclinuxos/2010/base,rpm/{BUILD,SOURCES,SPECS,SRPMS,RPMS/{athlon,i386,i486,i586,i686,noarch}},tmp}
cd $HOME/src/apt/pclinuxos/2010
ln -sf $HOME/src/rpm/RPMS/athlon/ RPMS.athlon
ln -sf $HOME/src/rpm/RPMS/i586/ RPMS.i586
ln -sf $HOME/src/rpm/RPMS/noarch/ RPMS.noarch
cd ~



(..the following is one command; copy and paste in entirety as regular user)
Code: [Select]
cat > .rpmrc << EOF
buildarchtranslate: i386: i586
buildarchtranslate: i486: i586
buildarchtranslate: i586: i586
buildarchtranslate: i686: i586
EOF

(..the following is one command; copy and paste in entirety as regular user)
Code: [Select]
cat > .rpmmacros << EOF
%_topdir        $HOME/src/rpm
%_tmppath    $HOME/src/tmp

%_enable_debug_packages %{nil}
%debug_package %{nil}

%distribution    PCLinuxOS
%vendor        PCLinuxOS
%distsuffix    pclos
EOF

(..as root)
Code: [Select]
echo -e "rpm file:/$PKGR_HOME_DIR/src/apt/ pclinuxos/2010 athlon i586 noarch\n" >> /etc/apt/sources.list
« Last Edit: June 17, 2010, 07:21:12 AM by travisn000 »

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: mkrepo problem
« Reply #43 on: June 16, 2010, 05:49:14 PM »
Hi Travis,

Thanks!  ;D  Slow response?  I couldn't have gotten a quicker online response even if the support was paid for!  :D  Same goes for Neal  ;)

I'll get stuck into this tonight.

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

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: mkrepo problem
« Reply #44 on: June 17, 2010, 07:37:18 PM »
All done!  :)

I just have a couple more questions.

1. I ran the following command to create the repo entry in my sources.list >

Code: [Select]
echo -e "rpm file:/$PKGR_HOME_DIR/src/apt/ pclinuxos/2010 athlon i586 noarch\n" >> /etc/apt/sources.list
and my entry looks like this  
Code: [Select]
rpm file:/home/tim/src/apt/pclinuxos/2010 athlon i586 noarchn
Is that correct with the noarchn at the end?  Should it just be noarch?

2.  When I right click on an srpm, I don't have a menu entry for  "Install source rpm for build".  I'm pretty sure I have everything installed that I need.

task-packaging-kde4 dependencies >
Quote
pkgutils-kde4
rpm-build
rpm-pclinuxos-setup-build
autoconf2.1
autoconf
automake1.7
automake
 





« Last Edit: June 17, 2010, 07:39:12 PM by timeth »
宜しくお願いします > Yoroshiku Onegaishimasu > I humbly and respectfully ask for your kindness.  |   My graphics blog