Installing MATE from source

Issues related to applications and software problems and general support
aussie
Posts: 101
Joined: 2018/06/30 12:21:31

Re: Installing MATE from source

Post by aussie » 2021/06/14 09:01:40

I downloaded the MATE fedora 30 some time ago. I'm compiling the dependencies. I downloaded the srpms from Fedora 33 but actually need the Fedora 30 srpms because Fedora 33 requires newer modules than Centos 8 has. I know Fedora 30 srpms are in the vault somewhere, but I can't find them. Can someone give me a link?

Aussie

owl102
Posts: 413
Joined: 2014/06/10 19:13:41

Re: Installing MATE from source

Post by owl102 » 2021/06/14 16:48:06

aussie wrote:
2021/06/14 09:01:40
I know Fedora 30 srpms are in the vault somewhere, but I can't find them. Can someone give me a link?
https://dl.fedoraproject.org/pub/archiv ... urce/tree/
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

aussie
Posts: 101
Joined: 2018/06/30 12:21:31

Re: Installing MATE from source

Post by aussie » 2021/06/15 07:19:48

Thanks owl102. I was able to download all the fc30 srpms that I need.

Aussie

aussie
Posts: 101
Joined: 2018/06/30 12:21:31

Re: Installing MATE from source

Post by aussie » 2021/06/16 04:21:18

I have a few problem with the compiles, but maybe someone can help me with this problem.

Code: Select all

root@192-168-1-102 MATE-fc30-src-depend]# rpmbuild --rebuild gucharmap-12.0.1-1.fc30.src.rpm
Installing gucharmap-12.0.1-1.fc30.src.rpm
warning: gucharmap-12.0.1-1.fc30.src.rpm: Header V3 RSA/SHA256 Signature, key ID cfc659b9: NOKEY
error: Failed build dependencies:
	unicode-ucd = 11.0.0 is needed by gucharmap-12.0.1-1.el8.x86_64
	unicode-ucd-unihan = 11.0.0 is needed by gucharmap-12.0.1-1.el8.x86_64
[root@192-168-1-102 MATE-fc30-src-depend]# 
But the fc30 version is 12.0.0.1 for unicode-ucd:
unicode-ucd-12.0.0-1.fc30.src.rpm

Is this an error in the spec file or am I missing something? If this is an error in the spec file is there a utility to modify gucharmap-12.0.1-1.fc30.src.rpm?

Aussie

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Installing MATE from source

Post by jlehtone » 2021/06/16 06:45:57

CentOS 8 has unicode-ucd-11.0.0-1.el8 in AppStream. There does not seem to be unicode-ucd-han.

You can "install" srpms: rpm -i gucharmap-12.0.1-1.fc30.src.rpm
That will probably place a tarball into rpmbuild/SOURCES/ and the spec-file into rpmbuild/SPECS/
Dependencies are usually defined in the spec-file.
However, meddling in those details tends to be a rabbit hole.

Have you tried mock (from EPEL)?
Mock takes an SRPM and builds it in a chroot.
Like yum or pip it fetches necessary dependencies (into the chroot) -- assuming it can find them.

aussie
Posts: 101
Joined: 2018/06/30 12:21:31

Re: Installing MATE from source

Post by aussie » 2021/06/16 08:00:13

Thanks jlehtone for the info on unicode-ucd-11.0.0-1.el8 being the in AppStream. When you build unicode-ucd you also get a rpm for unicode-ucd-han.

Thanks for the tip on mock. I'll give it a try. I don't know what I'm doing, I'm learning as I go.

Aussie

aussie
Posts: 101
Joined: 2018/06/30 12:21:31

Re: Installing MATE from source

Post by aussie » 2021/06/21 05:22:30

I'm getting build error for mate-settings-daemon:

Code: Select all

error: Bad file: /builddir/build/SOURCES/mate-settings-daemon_fix-xrdb-plugin-for-rhel.patch: No such file or directory
    Bad file: /builddir/build/SOURCES/mate-settings-daemon_fix-xrdb-plugin-for-rhel.patch: No such file or directory
I searched on the web for the patch and found this:

Code: Select all

http://pkgs.fedoraproject.org/cgit/rpms/mate-settings-daemon.git/tree/mate-settings-daemon_fix-xrdb-plugin-for-rhel.patch
But the page is not found. Can someone help locate this patch? I'm using fc30 mate-settings-daemon. Once I get the patch do I just copy it into /builddir/build/SOURCES and try the build again?

Aussie

owl102
Posts: 413
Joined: 2014/06/10 19:13:41

Re: Installing MATE from source

Post by owl102 » 2021/06/21 07:02:28

aussie wrote:
2021/06/21 05:22:30
But the page is not found. Can someone help locate this patch?
I have found the file here:
https://src.fedoraproject.org/rpms/mate ... n/tree/f30
->
https://src.fedoraproject.org/rpms/mate ... rhel.patch
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

aussie
Posts: 101
Joined: 2018/06/30 12:21:31

Re: Installing MATE from source

Post by aussie » 2021/06/21 13:01:06

Many thanks owl102 for the link. I have downloaded the patch.

Aussie

aussie
Posts: 101
Joined: 2018/06/30 12:21:31

Re: Installing MATE from source

Post by aussie » 2021/06/22 06:33:41

I'm having errors processing the patch. I downloaded the patch twice, but get the same result.

Code: Select all

+ cd mate-settings-daemon-1.22.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /root/rpmbuild/SOURCES/mate-settings-daemon_fix-xrdb-plugin-for-rhel.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
1 out of 1 hunk FAILED -- saving rejects to file plugins/xrdb/msd-xrdb-manager.c.rej
patch unexpectedly ends in middle of line
error: Bad exit status from /var/tmp/rpm-tmp.9Ri3MX (%prep)
I thought I would try mock. I tried the --copyin to copy the patch to /builddir/build/SOURCES. Mock does seem to understand the --rebuild option after --copyin. If I specify the --rebuild first mock doesn't understand the --copyin. What is the correct method to get mock to process the patch?

Aussie

Post Reply