Created attachment 317584 [details, diff] openafs-kernel-1.6.1.ebuild.patch net-fs/openafs-kernel cannot build and install well on Gentoo/FreeBSD due to some build errors and lack of FreeBSD module installation process. The attached is ebuild patch changing: - Call linux-mod_pkg_setup only on Linux system - Apply FreeBSD patch - Add FreeBSD's module installtion process - Call /usr/sbin/kldxref to update linker.hints
Created attachment 317586 [details, diff] openafs patch for Gentoo/FreeBSD This patch change: - Support CHOST=i?86-*-freebsd* case. - Link to libfl instead of libl - Drop -mno-align-long-string, which is not implemented on our toolchains Note that this patch confirmed only for building net-fs/openafs-kernel. We may need more change to build net-fs/openafs.
cc fbsd arches back once this is fixed
I had made several changes to ebuilds. Please test, if it works for fbsd. the tarball contains 2 ebuilds and a patch tarball, which needs to be copieds to distfiles. When it's confirmed to work, I will commit the changes.
Created attachment 324690 [details] 1.6.1-r1 ebuilds and patch tarball
bumped as requested, but you need to fix: net-fs/openafs/openafs-1.6.1-r1.ebuild: ~amd64-fbsd(default/bsd/fbsd/amd64/9.1) ['sys-libs/pam'] net-fs/openafs/openafs-1.6.1-r1.ebuild: ~amd64-fbsd(default/bsd/fbsd/amd64/9.0) ['sys-libs/pam']
(In reply to comment #5) > bumped as requested, but you need to fix: > > net-fs/openafs/openafs-1.6.1-r1.ebuild: > ~amd64-fbsd(default/bsd/fbsd/amd64/9.1) ['sys-libs/pam'] > net-fs/openafs/openafs-1.6.1-r1.ebuild: > ~amd64-fbsd(default/bsd/fbsd/amd64/9.0) ['sys-libs/pam'] virtual/pam ???
(In reply to comment #5) > bumped as requested, but you need to fix: > > net-fs/openafs/openafs-1.6.1-r1.ebuild: > ~amd64-fbsd(default/bsd/fbsd/amd64/9.1) ['sys-libs/pam'] > net-fs/openafs/openafs-1.6.1-r1.ebuild: > ~amd64-fbsd(default/bsd/fbsd/amd64/9.0) ['sys-libs/pam'] It also failed to build due to missing -lresolv, which is available on glibc. "-lresolv" is added by gentoo/patches/014_all_lresolv.patch I'm dropping *-fbsd KEYWORD for now.
Created attachment 327278 [details, diff] New 014_all_lresolv.patch (In reply to comment #7) > It also failed to build due to missing -lresolv, which is available on > glibc. "-lresolv" is added by gentoo/patches/014_all_lresolv.patch Could you replace 014_all_lresolv.patch with attached one? It just add "-lresolv" only on linux system (actually, it should be glibc system..) I've confirmed /usr/lib64/libafsauthent.so is linked against "libresolve" on Linux and it get build fine on FreeBSD.
Please test openafs-1.6.11 and openafs-kernel-1.6.11 on ~amd64-fbsd and ~x86-fbsd. Right now we have a ticklish issue: openafs is not keyworded on fbsd, but openafs-kernel is. And openafs-kernel is useless without openafs. So either both packages should be keyworded or both have fbsd keywords removed. Please send patches if needed. If there is no interest in openafs support for fbsd, let me know so that keywords and related code may be dropped.
I have it functioning with patches over here on amd64-freebsd10. Will upload asap.
Resolved in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=526f3a75301840d7e04e436ca06aaa341b006d2c