freight icon indicating copy to clipboard operation
freight copied to clipboard

CentOS 7 support

Open mperham opened this issue 10 years ago • 7 comments

Alas, your EPEL instructions don't work for CentOS 7. Any chance we can get a freight el/7 rpm?

$ sudo yum repolist
repo id                                                  repo name                                                                              status
base/7/x86_64                                            CentOS-7 - Base                                                                        8,465
epel/x86_64                                              Extra Packages for Enterprise Linux 7 - x86_64                                         5,617
extras/7/x86_64                                          CentOS-7 - Extras                                                                         44
updates/7/x86_64                                         CentOS-7 - Updates                                                                       774
repolist: 14,900
$ sudo yum -y install freight
No package freight available.
Error: Nothing to do

mperham avatar Sep 12 '14 20:09 mperham

I was able to hack around this by installing the el/6 package on el/7.

$ cd /etc/yum.repos.d
$ more freight.repo 
[freight]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=0
$ sudo yum install freight
$ sudo rm freight.repo

The binaries run but who knows how reliable they'll be.

mperham avatar Sep 24 '14 21:09 mperham

@domcleal can you chime in here, please? I don't use or have any Red Hat boxen so I can't help debug this issue.

rcrowley avatar Oct 05 '14 00:10 rcrowley

Looks like EPEL7 was missing a dpkg build, so freight hadn't been pushed (due to the RPM dep). I've requested the dpkg maintainer build + publish it, then I can push freight.

https://bugzilla.redhat.com/show_bug.cgi?id=1149590

Sorry about that!

domcleal avatar Oct 06 '14 07:10 domcleal

@domcleal could you please update this?

bstrdsmkr avatar Jun 03 '15 17:06 bstrdsmkr

Thanks for the reminder. I've built it again in EPEL, fixed a bug and the update is now here: https://admin.fedoraproject.org/updates/freight-0.3.5-6.el7

It'll be published in the epel-testing repo in a few days I expect, or grab it from koji in the meantime. If it works, please give karma on the above updates page so it gets into the main EPEL7 repo.

domcleal avatar Jun 04 '15 09:06 domcleal

@domcleal thanks for the quick response!

it looks like line 78 of freight-cache still uses dirname $(dirname $0) but once I changed that to /usr/share/ all was good

bstrdsmkr avatar Jun 04 '15 12:06 bstrdsmkr

Good catch, I fixed a couple more too. I'll try and write a reusable patch to submit to this repo soon, probably reusing the libdir from the Makefile somehow.

Resubmitted as https://admin.fedoraproject.org/updates/freight-0.3.5-7.el7

domcleal avatar Jun 04 '15 13:06 domcleal