From owner-freebsd-stable@FreeBSD.ORG Wed Jul 7 21:39:26 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C62D1065673; Wed, 7 Jul 2010 21:39:26 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3458FC17; Wed, 7 Jul 2010 21:39:25 +0000 (UTC) Received: by gyd8 with SMTP id 8so84823gyd.13 for ; Wed, 07 Jul 2010 14:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=NZp6G3TlAXQwdwZAKzt9MN5Z6RL2/WvuA1bC2iI86qE=; b=WEEbycJZkQAFfLn8qPN8i2x7+M0D9X/QQL85WgPxL31U+cIpDmmfmVXYyfLGTeNRrI XEaG7UkBz7gFaQ5Qd34JD/GdsDa8tyewghbGIC+hugzw2xoxIiC4xHA4faqY1cx8SQUN rJymnVenZ6bS02BWIJHcgyP9cq/sKJ+A85kww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=F/41B7M282H1RnrMv+eLxlRJzvmmU+Orujm70RIyRtjyavDfyHmO08SAdNitTAG00D zPRqejPG+6tE0zwnpB6iFG3oX4QL69w6bZKXNhSIZ+2yfqzGbrwzGfAlgfE3bVZbanDL 3XOBdxg8D+izM6ANUu1J6awcYgG0mj+XFfK80= MIME-Version: 1.0 Received: by 10.229.221.137 with SMTP id ic9mr4257988qcb.209.1278538760208; Wed, 07 Jul 2010 14:39:20 -0700 (PDT) Received: by 10.229.192.201 with HTTP; Wed, 7 Jul 2010 14:39:20 -0700 (PDT) In-Reply-To: <4C34E0E6.9070801@aldan.algebra.com> References: <4C34C5DE.7040007@aldan.algebra.com> <20100707185928.GA16180@icarus.home.lan> <4C34E0E6.9070801@aldan.algebra.com> Date: Wed, 7 Jul 2010 14:39:20 -0700 Message-ID: From: Garrett Cooper To: "Mikhail T." Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org, tom@hur.st, re@freebsd.org, freebsd-usb@freebsd.org, Jeremy Chadwick Subject: Re: 8.x grudges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2010 21:39:26 -0000 On Wed, Jul 7, 2010 at 1:17 PM, Mikhail T. wrot= e: > 07.07.2010 14:59, Jeremy Chadwick ???????(??): >>> >>> =A0 =A0 =A0FREEBSD_COMPAT7 kernel option is, apparently, a requirement = (and >>> =A0 =A0 =A0thus not an "option") -- the kernel-config files, that worke= d with >>> =A0 =A0 =A07.x, break without this option in them (in addition to all t= he >>> =A0 =A0 =A0nuisance, that's documented in UPDATING -- which, somehow, m= akes >>> =A0 =A0 =A0the breakage acceptable). config(8) would not warn about thi= s, but >>> =A0 =A0 =A0kernel build fails. >>> >> >> We don't use this option (meaning it's removed from our kernels). =A0It'= s >> definitely not required. =A0All it does is ensure your kernel can >> comprehend executables/binaries built on 7.x. >> > > Attached is the kernel config-file (i386), that worked fine under 7.x. Th= e > kernel-compile will break (some *freebsd7* structs undefined), without th= e > COMPAT_FREEBSD7 option. Try it for yourself... options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores Those require COMPAT_FREEBSD7. This does seem like a bug: static struct syscall_helper_data shm_syscalls[] =3D { SYSCALL_INIT_HELPER(shmat), SYSCALL_INIT_HELPER(shmctl), SYSCALL_INIT_HELPER(shmdt), SYSCALL_INIT_HELPER(shmget), #if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \ defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7) SYSCALL_INIT_HELPER(freebsd7_shmctl), #endif The check should be for COMPAT_FREEBSD7 only I would think. Apart from that, everything else should work without it I would think. Thanks, -Garrett