LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Build RPM packages in chrooted system (https://www.linuxquestions.org/questions/suse-opensuse-60/build-rpm-packages-in-chrooted-system-375847/)

yapp 10-22-2005 03:23 PM

Build RPM packages in chrooted system
 
Hi,

I've read some topics about "y2pmbuild" and "build" to create SuSE RPM packages in a chroot. I haven't found any clear tutorial on this (the pages at opensuse.org don't explain which commands to type.. :confused:).

How can I create a chroot with the minimal set of required packages?

unSpawn 10-24-2005 11:47 AM

I usually build rpm's as an unpriv user. If you think that's enough read IBM developerWorks, Packaging software with RPM, Part 2: Building without root, patching software, and distributing RPMs. Or are there specific requirements why you need a chroot env for building rpm's?

yapp 10-24-2005 01:04 PM

Yes, I have upgraded KDE at my system, but need want to compile my application with a clean system (or it will crash at other systems). I also want to use a chroot so I can compile for other SuSE versions at the same system.

unSpawn 10-24-2005 08:51 PM

want to compile my application with a clean system (or it will crash at other systems). I also want to use a chroot so I can compile for other SuSE versions at the same system.
Well, then install GPG and the y2pmsh rpm and head over to the SUSE Build Tutorial.


the pages at opensuse.org don't explain which commands to type
At the bottom of the SUSE Build Tutorial are some links to good tutorials about building rpm's and you should read them even if y2pmbuild is a wrapper for most of the commands.


All times are GMT -5. The time now is 04:50 AM.