freight
freight copied to clipboard
CentOS 7 support
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
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.
@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.
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 could you please update this?
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 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
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