[opensuse-factory] Building rpms as normal user
What is the easiest way I can (re)build rpm packages as normal user on openSUSE 10.3? Thanks! -- Igor Jagec
Den Thursday 27 September 2007 13:09:07 skrev Igor Jagec:
What is the easiest way I can (re)build rpm packages as normal user on openSUSE 10.3?
Install the srpm .. modify the spec at /usr/src/packages/SPECS/.. Then see man rpmbuild .. or other documentation. But that is off topic here. This is not the support list, this is the dev release-list. Join opensuse@opensuse.org or use other support options (irc, fora etc.).. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Martin Schlander wrote:
Den Thursday 27 September 2007 13:09:07 skrev Igor Jagec:
What is the easiest way I can (re)build rpm packages as normal user on openSUSE 10.3? Install the srpm .. modify the spec at /usr/src/packages/SPECS/.. Then see man rpmbuild .. or other documentation.
I know how to (re)build a rpm package as root user, but I don't know how to build it as normal user. I don't think that rpmbuild(8) can provide me that information, but thanks anyway. There is a utility fakeroot, but I haven't find it on openSUSE repos.
But that is off topic here. This is not the support list, this is the dev release-list. Join opensuse@opensuse.org or use other support options (irc, fora etc.)..
Ok, I'll see some other support options, thanks. -- Igor Jagec
Igor Jagec wrote:
Martin Schlander wrote:
Den Thursday 27 September 2007 13:09:07 skrev Igor Jagec:
What is the easiest way I can (re)build rpm packages as normal user on openSUSE 10.3? Install the srpm .. modify the spec at /usr/src/packages/SPECS/.. Then see man rpmbuild .. or other documentation.
I know how to (re)build a rpm package as root user, but I don't know how to build it as normal user.
Did you try it? Only a very few openSUSE packages need to be built as root, most of the packages build as user just fine. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Čet, 2007-09-27 at 15:32 +0200, Michal Marek wrote:
I know how to (re)build a rpm package as root user, but I don't know how to build it as normal user. Did you try it?
Not before I've made mess on my system with Fedora's script for creating build directory :) But I edited my ~/.rpmmacros and everything seems to work fine.
Only a very few openSUSE packages need to be built as root, most of the packages build as user just fine.
I didn't know that, thanks. I'll try that with clean install of openSUSE when it becomes stable. Cheers! -- Igor Jagec
Igor Jagec wrote:
What is the easiest way I can (re)build rpm packages as normal user on openSUSE 10.3?
Thanks!
Rebuild or build ? Rebuilding should be a matter of just running rpmbuild --rebuild against the src.rpm package. Building is a science, in my opinion. If you would like to build a rpm from a source release, which uses the "./configure;make;make install" approach, and does not include a .spec file, checkinstall makes the process easy. That is, use "./configure;make;checkinstall" instead. As a normal user, you might want to add the --pakdir argument to point to a path where this user have write permission, instead of the default /usr/src/packages/RPMS --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Čet, 2007-09-27 at 13:23 +0200, Sylvester Lykkehus wrote:
Igor Jagec wrote:
What is the easiest way I can (re)build rpm packages as normal user on openSUSE 10.3? Rebuild or build ?
Both.
Building is a science, in my opinion.
Yes, it indeed is :)
As a normal user, you might want to add the --pakdir argument to point to a path where this user have write permission, instead of the default /usr/src/packages/RPMS
I didn't know for the --pakdir option, thanks. But I solved the problem. I've run the rpmdev-setuptree srcipt from Fedora's rpmdev-tools package (see the attach) and the script has created build directory and ~/.rpmmacros file. And here's how it looks like: ------------ begin ------------ %_topdir %(echo $HOME)/rpmbuild %_smp_mflags -j3 #% __arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot %_tmppath /home/igor/rpmbuild/tmp %_buildroot /home/igor/rpmbuild %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch} #% __arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot --------- end ------------------ I've just commented out 2 lines and that was it. Thanks for the answer anyway. Cheers! -- Igor Jagec
participants (4)
-
Igor Jagec
-
Martin Schlander
-
Michal Marek
-
Sylvester Lykkehus