[opensuse-packaging] Newbie trying to figure out how y2pmbuild sets up the build environment
Hi, I am trying to create my first RPM and have a bit problems understanding the setup of the build environment as described in the build tutorial: http://en.opensuse.org/SUSE_Build_Tutorial#Configuration I read the explanation about how to use the y2pmbuild tool and it talks about that the y2pmbuild tool will setup up the build environment at a given place. I looked in the file: /etc/y2pmbuild/dists_common and it sets: add_sources="suse" url_suse="file:/srv/ftp/pub/suse/$BUILD_DIST/CD1/"
From the description in the build tutorial it sounded like y2pmbuild will somehow copy the necessary files of a distribution there, but when I call y2pmbuild with my spec file, it looks like it is expecting the distribution already being there.
My question is now what I need to copy there. As the path information has the $BUILD_DIST option, it sounds like only the respective distribution needs to be copied there. So if I build for x86_64, can I just copy the whole content from the x86_64 folder of my suse 10.1 DVD into the 10.1-x86_64/CD1 folder? Thanks for any help. Cheers, Guenter --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging-help@opensuse.org
On 2006-07-30 15:50:07 +0200, Günter Dannoritzer wrote:
Hi,
I am trying to create my first RPM and have a bit problems understanding the setup of the build environment as described in the build tutorial:
http://en.opensuse.org/SUSE_Build_Tutorial#Configuration
I read the explanation about how to use the y2pmbuild tool and it talks about that the y2pmbuild tool will setup up the build environment at a given place. I looked in the file:
/etc/y2pmbuild/dists_common
and it sets:
add_sources="suse"
url_suse="file:/srv/ftp/pub/suse/$BUILD_DIST/CD1/"
From the description in the build tutorial it sounded like y2pmbuild will somehow copy the necessary files of a distribution there, but when I call y2pmbuild with my spec file, it looks like it is expecting the distribution already being there.
No. y2pmbuild will create a chroot environment where the the packages will be build later (the packages aren't build on your "real" system) The "url_suse" variable should contain the path to your cd/dvd for example: url_suse="file:/media/dvd" You can also use an online inst-source.
My question is now what I need to copy there. As the path information has the $BUILD_DIST option, it sounds like only the respective distribution needs to be copied there. So if I build for x86_64, can I just copy the whole content from the x86_64 folder of my suse 10.1 DVD into the 10.1-x86_64/CD1 folder?
No - you need the repodata information or a yast-source (you can't copy the folder only). Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging-help@opensuse.org
On Jul 30, 06 16:33:57 +0200, Marcus Hüwe wrote:
I am trying to create my first RPM and have a bit problems understanding the setup of the build environment as described in the build tutorial:
http://en.opensuse.org/SUSE_Build_Tutorial#Configuration
I read the explanation about how to use the y2pmbuild tool and it talks about that the y2pmbuild tool will setup up the build environment at a given place. I looked in the file:
Forget about y2pmbuild. osc can do builds natively. Yes, the wiki urgently needs reflecting that.
No. y2pmbuild will create a chroot environment where the the packages will be build later (the packages aren't build on your "real" system)
This is still valid for osc build. Matthias -- Matthias Hopf <mhopf@suse.de> __ __ __ Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat@mshopf.de Phone +49-911-74053-715 __) |_| __) |__ labs www.mshopf.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging-help@opensuse.org
On 2006-07-31 16:47:51 +0200, Matthias Hopf wrote:
Date: Mon, 31 Jul 2006 16:47:51 +0200 From: Matthias Hopf <mhopf@suse.de> Subject: Re: [opensuse-packaging] Newbie trying to figure out how y2pmbuild sets up the build environment To: opensuse-packaging@opensuse.org
On Jul 30, 06 16:33:57 +0200, Marcus Hüwe wrote:
I am trying to create my first RPM and have a bit problems understanding the setup of the build environment as described in the build tutorial:
http://en.opensuse.org/SUSE_Build_Tutorial#Configuration
I read the explanation about how to use the y2pmbuild tool and it talks about that the y2pmbuild tool will setup up the build environment at a given place. I looked in the file:
Forget about y2pmbuild. osc can do builds natively. Yes, the wiki urgently needs reflecting that.
No. y2pmbuild will create a chroot environment where the the packages will be build later (the packages aren't build on your "real" system)
This is still valid for osc build.
osc build requires biuldservice access. which might not always be the case. y2pmbuild can be used by everyone. :) but yes both are building in a chroot. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging-help@opensuse.org
On Jul 31, 06 19:39:22 +0200, Marcus Rueckert wrote:
osc build requires biuldservice access. which might not always be the case. y2pmbuild can be used by everyone. :)
Ok, learnt something more :) What where the !@#$ do I actually get y2pmbuild from? I searched approximately any possible location, and obviously overlooked the obvious one? Matthias -- Matthias Hopf <mhopf@suse.de> __ __ __ Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat@mshopf.de Phone +49-911-74053-715 __) |_| __) |__ labs www.mshopf.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging-help@opensuse.org
On 2006-08-03 15:43:37 +0200, Matthias Hopf wrote:
On Jul 31, 06 19:39:22 +0200, Marcus Rueckert wrote:
osc build requires biuldservice access. which might not always be the case. y2pmbuild can be used by everyone. :)
Ok, learnt something more :) What where the !@#$ do I actually get y2pmbuild from? I searched approximately any possible location, and obviously overlooked the obvious one?
yast2 -i y2pmsh darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging-help@opensuse.org
participants (4)
-
Günter Dannoritzer
-
Marcus Hüwe
-
Marcus Rueckert
-
Matthias Hopf