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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to