[Mageia-dev] failure to install a src.rpm in a user build directory
sardine
sardine213 at sfr.fr
Wed Dec 5 23:50:05 CET 2012
Hi,
I've installed cauldron in a vmware vm, and wanting to rebuild a rpm as a user in my /home I've setup the build environment as usual (I've done that a lot of times in the past and even a few weeks ago). For me everything is OK but a src.rpm install gives this output :
[jerome at localhost Téléchargements]$ LC_ALL=C rpm -i getmail-4.35.0-1.mga3.src.rpm
error: failed to create directory %{_topdir}: / /home/jerome/rpm: Permission denied
error: getmail-4.35.0-1.mga3.src.rpm cannot be installed
The topdir is correctly defined in the .rpmmacros file :
[jerome at localhost ~]$ rpm --showrc | grep topdir
-14: _builddir %{_topdir}/BUILD
-14: _buildrootdir %{_topdir}/BUILDROOT
-14: _rpmdir %{_topdir}/RPMS
-14: _sourcedir %{_topdir}/SOURCES
-14: _specdir %{_topdir}/SPECS
-14: _srcrpmdir %{_topdir}/SRPMS
-14: _topdir /home/jerome/rpm
-14: git_repository_cache %_topdir/%{name}.git
The build tree is correctly created with the correct permissions :
[jerome at localhost ~]$ ls -l /home/jerome | grep rpm
drwxr-xr-x 9 jerome jerome 4096 déc. 5 23:02 rpm/
[jerome at localhost ~]$ ls -l /home/jerome/rpm
total 28
drwxr-xr-x 2 jerome jerome 4096 déc. 5 23:02 BUILD/
drwxr-xr-x 2 jerome jerome 4096 déc. 5 23:02 BUILDROOT/
drwxr-xr-x 4 jerome jerome 4096 déc. 5 23:02 RPMS/
drwxr-xr-x 2 jerome jerome 4096 déc. 5 23:02 SOURCES/
drwxr-xr-x 2 jerome jerome 4096 déc. 5 23:02 SPECS/
drwxr-xr-x 2 jerome jerome 4096 déc. 5 23:02 SRPMS/
drwxr-xr-x 2 jerome jerome 4096 déc. 5 23:02 tmp/
So I don't understand what is wrong. Any idea ?
Thanks.
More information about the Mageia-dev
mailing list