It’s been a hour around install indent decadency but still failed in
indent.texinfo; fi` Option number is ambiguous
or
/bin/sh: ./texinfo2man: No such file or directory
from latest version
it’s there’s guide to build from source indent package ?
Ok, just skip build indent … I could install it easily from centos 7 rpm. never knew it could install centos 7 rpm.
Anyway i think the last command was wrong
it’s return
error: Bad source: /home/haidar/rpmbuild/SOURCES/snapd_2.40.only-vendor.tar.xz: No such file or directory
Ok just download the vendor.tar but it’s error again
ln: failed to create symbolic link 'src/github.com/snapcore/snapd/..': File exists
Looks like %gobuild_static was not expanded. This is part of go-rpm-macros package. Normally you’d get those from Fedora repos (on Fedora) or from EPEL (on CentOS/RHEL).
AFAIK, Go was dropped from the main repositories. You may need to enable and install the proper go toolset. Hopefully it’ll come with RPM macros.
I enable some repo from RHEL 8 and It’s already Installed
Updating Subscription Management repositories.
Last metadata expiration check: 2:11:39 ago on Tue 06 Aug 2019 12:55:22 PM WIB.
Package cmake-rpm-macros-3.11.4-3.el8.noarch is already installed.
Package efi-srpm-macros-3-2.el8.noarch is already installed.
Package ghc-srpm-macros-1.4.2-7.el8.noarch is already installed.
Package go-srpm-macros-2-16.el8.noarch is already installed.
Package kernel-rpm-macros-116-1.el8.noarch is already installed.
Package ocaml-srpm-macros-5-4.el8.noarch is already installed.
Package openblas-srpm-macros-2-2.el8.noarch is already installed.
Package perl-srpm-macros-1-25.el8.noarch is already installed.
Package python-qt5-rpm-macros-5.11.2-3.el8.noarch is already installed.
Package python-rpm-macros-3-37.el8.noarch is already installed.
Package python-srpm-macros-3-37.el8.noarch is already installed.
Package python2-rpm-macros-3-38.module+el8.0.0+2961+596d0223.noarch is already installed.
Package python3-rpm-macros-3-37.el8.noarch is already installed.
Package python36-rpm-macros-3.6.8-2.module+el8.0.0+2975+e0f02136.noarch is already installed.
Package qt5-rpm-macros-5.11.1-2.el8.noarch is already installed.
Package qt5-srpm-macros-5.11.1-2.el8.noarch is already installed.
Package rust-srpm-macros-5-2.el8.noarch is already installed. Package go-toolset-1.11.6-1.module+el8.0.1+3226+60b863d2.x86_64 is already installed.
it’s that enough ?
how to check missing dependency ?
Sorry for the delay. I’m at https://flocktofedora.org/ currently and will be back next week. In the meantime, I’ll try to find out what’s the deal with go-rpm-macros and RHEL8.
I’ve opened a pull request to snapd with some fixes: https://github.com/snapcore/snapd/pull/7249.
Once that lands it will be possible to build the package on RHEL8 using the RPM spec directly form snapd source tree.
For future reference, in order to have all dependencies available, one needs to:
In place build seems to work differently than in Fedora. You should grab the source archives from the releases page: https://github.com/snapcore/snapd/releases/tag/2.40 Download the snapd_2.40.no-vendor.tar.xz and snapd_2.40.only-vendor.tar.xz and place them in ~/rpmbuild/SOURCES/.
Once you have that, you can use the spec from snapd tree if you additionally checkout the brach from my PR (or wait until it lands in master).
RPM build errors:
File not found: /home/my_user/rpmbuild/BUILDROOT/snapd-2.40-0.el8.x86_64/usr/lib/systemd/user/snapd.session-agent.service
File not found: /home/my_user/rpmbuild/BUILDROOT/snapd-2.40-0.el8.x86_64/usr/lib/systemd/user/snapd.session-agent.socket
These files are related to a newly merged feature that hasn’t appeared in a release yet. My guess at what is happening is that the spec file from git master is being used to try and build the 2.40 tarball release. I’m not sure what the best way forward for you is.
Unfortunately master is a bit of a moving target and the spec was already updated with entries that are in master only.
I’ve opened a PR to the 2.40 branch right here: https://github.com/snapcore/snapd/pull/7264 Once that lands, and you checkout release/2.40 branch locally, things should build fine.
Sorry for bothering you. I had tried several times to build snapd from source on Ubuntu 22.04(LTS) destop within the virtualbox according to HACKING. After installing the build dependencies, my ubuntu can’t login ubuntu destop but only login by shell session. I found that the /usr/share/xsession directory was disapeared. But i tried this on Ubuntu 18.04 successfully!