Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425352 - net-fs/openafs-kernel ~{x86,amd64}-fbsd keyword request
Summary: net-fs/openafs-kernel ~{x86,amd64}-fbsd keyword request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on: 435990
Blocks: 424571
  Show dependency tree
 
Reported: 2012-07-08 16:40 UTC by Naohiro Aota
Modified: 2015-08-13 23:24 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openafs-kernel-1.6.1.ebuild.patch (openafs-kernel-1.6.1.ebuild.patch,1.82 KB, patch)
2012-07-08 16:40 UTC, Naohiro Aota
Details | Diff
openafs patch for Gentoo/FreeBSD (patch,1.96 KB, patch)
2012-07-08 16:44 UTC, Naohiro Aota
Details | Diff
1.6.1-r1 ebuilds and patch tarball (oafs.tar.bz2,16.42 KB, text/plain)
2012-09-23 11:34 UTC, Andrej Filipcic
Details
New 014_all_lresolv.patch (patch,346 bytes, patch)
2012-10-24 05:36 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2012-07-08 16:40:59 UTC
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
Comment 1 Naohiro Aota gentoo-dev 2012-07-08 16:44:30 UTC
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.
Comment 2 Alexis Ballier gentoo-dev 2012-08-06 21:50:03 UTC
cc fbsd arches back once this is fixed
Comment 3 Andrej Filipcic 2012-09-23 11:34:08 UTC
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.
Comment 4 Andrej Filipcic 2012-09-23 11:34:43 UTC
Created attachment 324690 [details]
1.6.1-r1 ebuilds and patch tarball
Comment 5 SpanKY gentoo-dev 2012-09-25 00:20:41 UTC
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']
Comment 6 Alexis Ballier gentoo-dev 2012-09-25 11:33:00 UTC
(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 ???
Comment 7 Naohiro Aota gentoo-dev 2012-10-02 23:09:33 UTC
(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.
Comment 8 Naohiro Aota gentoo-dev 2012-10-24 05:36:13 UTC
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.
Comment 9 Andrew Savchenko gentoo-dev 2015-03-22 21:32:46 UTC
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.
Comment 10 Adam Feldman gentoo-dev 2015-05-08 17:55:42 UTC
I have it functioning with patches over here on amd64-freebsd10. Will upload asap.