From owner-freebsd-ports@FreeBSD.ORG Sat Feb 7 12:52:44 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A9E425EE; Sat, 7 Feb 2015 12:52:44 +0000 (UTC) Received: from mail-qc0-x22d.google.com (mail-qc0-x22d.google.com [IPv6:2607:f8b0:400d:c01::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 77B205FA; Sat, 7 Feb 2015 12:52:44 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id m20so16044646qcx.4; Sat, 07 Feb 2015 04:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6QF+99qj3W/uS4/BSeVjTDKiqqhbPv5i1yRNvOA8mE4=; b=beWOTKmCLdDrsa9Y/9O7Z1+iukcULUqUGamMpXigs6v4bJvXzcSNJkZbcZMuWYGd1t cqhioJG1gQsUGOLCzHdGgcU3wbTjr6MtBFdvoN21a31X1ZT6jBukjkbBOFnWaRiSn5mZ x+PjMsZxeLaA2ombnwzYMufc1bpHcxKDFiTNZ1RwPNMDpP8ppJVJMS8wORxYcRB+wE0F hmGR6hmeBSoAnGmHWqmYtLQU1JBictGSLhBPoQh2hWYSzo35+oCHe6f2zZSylpVlp8LH lSzNlqk5QMGz42ujUMFXxDT1U9G+OUAP/HCM3rcLwgicxIwtgcghKZF2SvBTCCBGsGQe rVvg== MIME-Version: 1.0 X-Received: by 10.140.38.114 with SMTP id s105mr18478339qgs.106.1423313562859; Sat, 07 Feb 2015 04:52:42 -0800 (PST) Received: by 10.96.158.137 with HTTP; Sat, 7 Feb 2015 04:52:42 -0800 (PST) In-Reply-To: <54D5D34C.20302@FreeBSD.org> References: <54D5D34C.20302@FreeBSD.org> Date: Sat, 7 Feb 2015 14:52:42 +0200 Message-ID: Subject: Re: Is NO_PKG_REGISTER still supposed to work? From: Kimmo Paasiala To: Matthew Seaman Content-Type: text/plain; charset=UTF-8 Cc: freebsd-ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2015 12:52:44 -0000 On Sat, Feb 7, 2015 at 10:56 AM, Matthew Seaman wrote: > On 2015/02/07 01:31, Kimmo Paasiala wrote: >> From bsd.port.mk: >> >> # NO_PKG_REGISTER >> # - Don't register a port installation as a package. >> >> However, testing this with a port results in the port installation >> performing the staging part only and the final installation from the >> stage directory on to the system being skipped when NO_PKG_REGISTER is >> set. Is this still supposed to work? > > I doubt it. pkg(8) doesn't have the capability to install a package > without updating the package database. Plus why would you even want to > do that nowadays? As I recall NO_PKG_REGISTER was a work-around for not > having staging or tools like poudriere where you can build a package > without scribbling on your live system. > > Cheers, > > Matthew > > Would it be a good idea to remove it completely from bsd.port.mk for clarity and simplifying the code? I can see a few places in the file where it it's used in conditions and those look like no-ops now assuming NO_PKG_REGISTER is not used by anyone anymore. -Kimmo