Lachu
February 19, 2022, 9:29pm
1
I’ve read https://forums.opensuse.org/showthread.php/464077-directories-not-owned-by-a-package .
Hi.
This is my spec:
Name: libread-config
Version: 0.0.2
Release: 0.0.1
Summary: This package providces simple configuration library
License: GPL-3.0-or-later
BuildRequires: make gcc filesystem
Requires: filesystem
URL: https://sourceforge.net/projects/libreadconfig
Source0: https://sourceforge.net/projects/libreadconfig/files/libreadconfig-%{version}.tar.gz
%description
libreadconfig aims to be simple and powerful, extensible configuration library.
%prep
%setup -q
%build
%make_build
strip libreadconfig.so
%install
install -D -m 0755 libreadconfig.so %{buildroot}/%{_libdir}/libreadconfig.so
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%{_libdir}/libreadconfig.so
%changelog
* Thu Apr 22 2021 Sławomir Lach <slawek@lach.art.pl>
First rpm package
It complains /usr/lib64 is not owned by a package. When adding it to files list, it complains standard directory is owned by a package. I try with %dir macro as prefix and the same. As you can see, i added filesystem package as an dependence (rpm -q --whatprovides /usr/lib64 was helpful). It do not solve problem. Any suggestions?
Lachu:
I’ve read https://forums.opensuse.org/showthread.php/464077-directories-not-owned-by-a-package .
Hi.
This is my spec:
Name: libread-config
Version: 0.0.2
Release: 0.0.1
Summary: This package providces simple configuration library
License: GPL-3.0-or-later
BuildRequires: make gcc filesystem
Requires: filesystem
URL: https://sourceforge.net/projects/libreadconfig
Source0: https://sourceforge.net/projects/libreadconfig/files/libreadconfig-%{version}.tar.gz
%description
libreadconfig aims to be simple and powerful, extensible configuration library.
%prep
%setup -q
%build
%make_build
strip libreadconfig.so
%install
install -D -m 0755 libreadconfig.so %{buildroot}/%{_libdir}/libreadconfig.so
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%{_libdir}/libreadconfig.so
%changelog
* Thu Apr 22 2021 Sławomir Lach <slawek@lach.art.pl>
First rpm package
It complains /usr/lib64 is not owned by a package. When adding it to files list, it complains standard directory is owned by a package. I try with %dir macro as prefix and the same. As you can see, i added filesystem package as an dependence (rpm -q --whatprovides /usr/lib64 was helpful). It do not solve problem. Any suggestions?
Hi
Use
%files
%dir %{_libdir}/
%{_libdir}/libreadconfig.so
If you build on OBS, post link to your project.
malcolmlewis:
Hi
Use
%files
%dir %{_libdir}/
No, that should not be needed. Standard directory /usr/lib64 belongs to filesystem which is installed automatically in every build environment when using OBS. Build logs are needed.
Unless user attempts to build locally, but we do not really know it - no information was provided at all.
Lachu
February 20, 2022, 10:38am
5
Project:
home:Lachu:Utility-libraries
Package:
libreadconfig
was uploaded to OBS.
It does not build due to some internal OBS problem. Trigger rebuild and make sure build was actually attempted.
P.S. Is it that difficult to provide link to your package (as requested)?
Hi
What build targets, just tried here with Tumbleweed and all good no errors?
There are OBS build issues at present…
Lachu
February 20, 2022, 4:14pm
8
https://sourceforge.net/projects/libreadconfig/files/libreadconfig-0.0.2.tar.gz
I cannot provide rpm package, because it does not build on my machine too. I use osc build command.
What do you mean “too”? Your package is built just fine on OBS.
Hi
Sounds like your local setup is not correct?
Lachu
February 20, 2022, 8:22pm
11
I accepted someone’s changes.
Where did I mistake?
Mistake was I do not create directory, where I place files?
Lachu:
I accepted someone’s changes.
Where did I mistake?
Mistake was I do not create directory, where I place files?
Hi
I think your just using rpm build and not osc tools?
Lachu:
Where did I mistake?
How do you expect us to answer this when you never even described what you did?
Lachu
February 21, 2022, 5:58pm
14
As I wrote, some ones provided changes to me. Changes were send to OBS service. I apply these changes and package build.
https://build.opensuse.org/package/show/home:Lachu:Utility-libraries/libreadconfig
Changes were applied to spec file. I will try check what was wrong by self (removing and applying different changes suggested by person, who provided patches). I think problem was, I do not create standard directories by mkdir, but install.
Lachu
February 21, 2022, 6:01pm
15
Hi.
I made osc up and osc build. Problem still occur on my PC.
EDIT:
After performing:
sudo rm -rf /var/tmp/build-root/openSUSE_Tumbleweed-x86_64/
And osc build packages were build.
Thanks.
Lachu:
Hi.
I made osc up and osc build. Problem still occur on my PC.
EDIT:
After performing:
sudo rm -rf /var/tmp/build-root/openSUSE_Tumbleweed-x86_64/
And osc build packages were build.
Thanks.
Hi
Use the commands;
osc build --clean
Then can use (once packages installed in build-root)
osc build -o
For subsequent builds of the package