From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 577E11387FD for ; Sun, 6 Apr 2014 20:57:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F36A5E0AA3; Sun, 6 Apr 2014 20:57:11 +0000 (UTC) Received: from QMTA11.westchester.pa.mail.comcast.net (qmta11.westchester.pa.mail.comcast.net [76.96.59.211]) by pigeon.gentoo.org (Postfix) with ESMTP id 05A8CE0A5F for ; Sun, 6 Apr 2014 20:57:10 +0000 (UTC) Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74]) by QMTA11.westchester.pa.mail.comcast.net with comcast id mkSx1n0041c6gX85BkxAMA; Sun, 06 Apr 2014 20:57:10 +0000 Received: from [192.168.1.13] ([50.190.84.14]) by omta23.westchester.pa.mail.comcast.net with comcast id mkxA1n00C0JZ7Re3jkxANs; Sun, 06 Apr 2014 20:57:10 +0000 Message-ID: <5341BFA6.6010306@gentoo.org> Date: Sun, 06 Apr 2014 16:57:10 -0400 From: Joshua Kinard User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] virtual/sctp to choose the right SCTP lib for Linux/FreeBSD? References: <53409E77.90707@gentoo.org> <21313.5394.955075.507483@a1i15.kph.uni-mainz.de> <5341B3CA.3060408@gentoo.org> In-Reply-To: <5341B3CA.3060408@gentoo.org> X-Enigmail-Version: 1.6 Content-Type: multipart/mixed; boundary="------------090405050502010205000401" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1396817830; bh=aJJ5dj1ODSfay0l3h5qIq69cKhIIVAB6n4xU8aOjFC8=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=fFpj6GC/BC7b5gTyDIQnlctR+H45Pl9qi+YntpMZDepKkx1qtLoL5Opg5DwiJEWgv J50uIgzAZYXsoq8vdCe8R0JNToVwDyBC37ubwz1/fx30fHAHnNJrbPeeHOKmS4cNMl uMeSvf/TDrVF+xKEma3nj7ztxZZjg2JPEKMPaRwT0FbRJaiu/NWSe2vOmYlIEMbBXQ 5QX8LY9rsMNXxSXE5itwAyFxZL6vFARQxr9xf866xjbhd+HGaLHNEnWztGmfZc2Soa C1hTE6Ik4eKkUjiMlK26Oojp2YWnrbe/ZhuX64yBv+Ni5ycaMiOIacfBpKfUJwWksI L12EzYutCf8qA== X-Archives-Salt: 1da5f629-7893-4a53-88ef-2294195b1720 X-Archives-Hash: 54438cb814a8bb09e39dd94991c2268f This is a multi-part message in MIME format. --------------090405050502010205000401 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 04/06/2014 16:06, Joshua Kinard wrote: > On 04/06/2014 04:49, Ulrich Mueller wrote: >>>>>>> On Sat, 05 Apr 2014, Joshua Kinard wrote: >> >>> I've attached a first draft of virtual/sctp/sctp-0.ebuild, which >>> passes repoman checks, but I think it needs to be made >>> multilib-aware. Additionally, that means lksctp-tools probably needs >>> some multilib-magic applied. I am not finding a solid guide on >>> properly upgrading an ebuild to become multilib-aware. Can one of >>> the multilib experts check things and let me know what is needed if >>> people agree this is a good way to go down? >> >> This doesn't answer your multilib question, but I believe that >> kernel_* is not needed in IUSE: >> >>> IUSE="kernel_linux kernel_FreeBSD static-libs" >> >> KERNEL is both in USE_EXPAND and USE_EXPAND_IMPLICIT of >> profiles/base/make.defaults, therefore it's implicit in EAPI 5. > > Thanks, I removed those and IUSE as well, since it's empty. > > >> I'd also omit all empty variable assignments (like HOMEPAGE=""), >> they are no longer necessary. > > I derived this ebuild from virtual/udev's (as the leftover comment implied). > Someone might want to remove the empty vars there as well. Perhaps repoman > should check for empty vars like HOMEPAGE/SRC_URI/IUSE and flag as a warning? > Derp, since this is a virtual for a linkable library, set DEPEND first, then RDEPEND to ${DEPEND}. While FBSD is the only other official non-Linux port (I think OBSD/NBSD are still only in Prefix?), should REQUIRED_USE be set to limit this virtual to kernel_linux and kernel_FreeBSD? Hmm, and further thinking, if we had a kFreeBSD variant, things would get more interesting. Someone would probably have to abstract the SCTP lib code out of freebsd-lib to work in that environment, since everything would be running on top of a glibc userland. I wonder if Debian's run into that yet... -- Joshua Kinard Gentoo/MIPS kumba@gentoo.org 4096R/D25D95E3 2011-03-28 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic --------------090405050502010205000401 Content-Type: text/plain; charset=windows-1252; name="sctp-0.ebuild" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sctp-0.ebuild" # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 DESCRIPTION="Virtual to select net-misc/lksctp-tools or sys-freebsd/freebsd-lib for userland SCTP lib support" SLOT="0" KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" DEPEND="|| ( kernel_linux? ( net-misc/lksctp-tools ) kernel_FreeBSD? ( sys-freebsd/freebsd-lib ) )" RDEPEND="${DEPEND}" --------------090405050502010205000401--