
On 22/07/2019 20.20, Andrei Borzenkov wrote:
22.07.2019 20:31, Carlos E. R. пишет:
On 22/07/2019 19.10, Andrei Borzenkov wrote:
22.07.2019 12:46, Carlos E. R. пишет:
On 22/07/2019 08.59, David C. Rankin wrote:
On 07/21/2019 07:03 AM, Andrei Borzenkov wrote:
> what I did: > > - downloaded kuickshow-0.9.2-4.1.src.rpm from > http://download.opensuse.org/repositories/home:/mad_soft/openSUSE_Leap_42.3/... > > > (tried to install it directly instead of downloading it, but nothing was > installed, Installing source RPM just copies files under %buildroot which by default is ~/rpmbuild for non-root user; for root user this is /usr/src/packages. I am not sure how you checked what was installed.
When you install rpmbuild and the suse build tools, then will create the rpmbuild directory in your $HOME directory:
$ tree rpmbuild/ rpmbuild/ ├── BUILD ├── BUILDROOT ├── OTHER ├── RPMS ├── SOURCES ├── SPECS └── SRPMS
On home? I have them on the root. /usr/src/packages/.
What was not clear in "for root user this is /usr/src/packages"?
Then what creates the build structure for user, and how on earth do I install a source rpm into my home that structure? YaST will not do it.
Because he said:
]> When you install rpmbuild and the suse build tools, then will create ]> the rpmbuild directory in your $HOME directory:
HOW?
rpm -i foo.src.rpm
as normal user.
Ok, so you, and the distribution designers, are telling me not to use YaST to install source packages. Interesting! :-/ And at the same way, YaST installs source packages in a manner that I should never use, because it needs being root. A security problem/malpractice created by YaST! Nice. No, I'm not pointing at you particularly. I'm trying to point out the inconsistency. Similarly, the kernel sources as installed by YaST have to be compiled by root. I managed to do it as user in the past, but it is extra work. As they come, using them is a security risk, developers insist to tell me.
Or you can simply copy necessary files there. The only directories you need are SOURCES and SPECS; everything else will be created by rpmbuild as needed.
And actually I am not even sure that you need SPECS unless you want to recreate SRPM.
Yes, it is needed, AFAIR. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)