From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 30 18:34:22 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2CEC874C for ; Wed, 30 Oct 2013 18:34:22 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-vb0-x234.google.com (mail-vb0-x234.google.com [IPv6:2607:f8b0:400c:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E134829A2 for ; Wed, 30 Oct 2013 18:34:21 +0000 (UTC) Received: by mail-vb0-f52.google.com with SMTP id f13so1288643vbg.25 for ; Wed, 30 Oct 2013 11:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/IdJBigvxJaNgB1nXNeWGrHad4yIV4uxYHKBcyC1+XQ=; b=FvVPI2UAKRgygTXcmjLPpr/T7TsYfYrsYHm96zBAp6TylReP3M5pwPWRTPO4Ex9QaX W7QzchFuLV+GKjp/DjSaMMaR9s3dtbN09IfCsfGn0no1Ee6SfVaryiDEmlJfFR0h5vMh /+SwAQ8P/c/XMatHhXiXj03qgyhx3XbkIM/62MvNRhUUGH9YE9/+P163Fc3SGks9fsbn bomOVnP191JKCbx6pJvxLcmdLGsZA3W1rTh/SujKKzcf5yFgn69NdqRLkOew6Av1GvN3 fJlya5yRwWY0r5Q5Pe32KLofk4oOul0G95pAv5ynHEgenfj9S8aSstXOcK4rBwNi45DE Pjvg== MIME-Version: 1.0 X-Received: by 10.58.46.171 with SMTP id w11mr3980345vem.5.1383158060888; Wed, 30 Oct 2013 11:34:20 -0700 (PDT) Received: by 10.220.30.130 with HTTP; Wed, 30 Oct 2013 11:34:20 -0700 (PDT) Date: Wed, 30 Oct 2013 14:34:20 -0400 Message-ID: Subject: Two interesting things that broke in the package system while I wasn't looking. From: Zaphod Beeblebrox To: FreeBSD Hackers Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 18:34:22 -0000 The life-cycle of a machine often runs something like: - Machine gets installed/configured/put online for a purpose. - Someone pays attention for awihle. - It largely gets ignored - Then something breaks - Then someone has to pay attention Recently, I have encountered a hassle with a bunch of 7.2 machines that need upgrading. Two things, really, that are broken. I realize that 7.2 isn't supported... but these two things are errors that don't need to be errors --- it's just sloppy. The first is the code that recognizes a library is installed. I don't know where this is, but it recently changed s.t. it gives an error on 7.2 machines. Looks like sloppy shell code that doesn't work on 7.2's /bin/sh. The second is pkg itself. Not especially needed on 7.2, but one little check instead of just OS is FreeBSD for posix_fallocate(), is should be OS is FreeBSD _and_ OS_VERSION > something. I'm not sure what version posix_fallocate(0 appeared ... but that should be there.