From owner-freebsd-pkg@freebsd.org Wed Apr 6 14:01:59 2016 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C11B0B05873 for ; Wed, 6 Apr 2016 14:01:59 +0000 (UTC) (envelope-from zsolt.ero@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id A3B4B133D for ; Wed, 6 Apr 2016 14:01:59 +0000 (UTC) (envelope-from zsolt.ero@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id A30BEB05872; Wed, 6 Apr 2016 14:01:59 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2BAEB05871 for ; Wed, 6 Apr 2016 14:01:59 +0000 (UTC) (envelope-from zsolt.ero@gmail.com) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::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 6F811133B; Wed, 6 Apr 2016 14:01:59 +0000 (UTC) (envelope-from zsolt.ero@gmail.com) Received: by mail-ig0-x22d.google.com with SMTP id gy3so78842832igb.0; Wed, 06 Apr 2016 07:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eVKCXXfAlUGKwX+HdWIdlZvG2JWeDQ16GEqrD/oq4DA=; b=sDmiumTzAHmE4/nTCkLhHFxSLD5TY4RlgiLj1Hq4//9IRZLpV8PND+IZldjVatPYoq 1D7D5jFd49vNYgrA6i3fxyca+Gu7GLWqhubDkrrvwe3hyTwueg1CldxDz8yjCoNzocnL 9sevH0lWPLwFFnT56gxByVwaixTt0xwbfhOge6G3Wk1DYoN4Bs33ws6tJcMvyinz+5Mo tRMINRaR560xImBIbB7GiTnR9ckVtyWJ/KeGL1W8LpU8hUfErrkyjfRb3EsqWwSF+/+6 Xbr/ixhMpYhhzZw/yIDpjAX1V8TGLmvl5yNltnsbF6CMxzPHgDL1W7/VN6e7x1m3z+XE qEFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eVKCXXfAlUGKwX+HdWIdlZvG2JWeDQ16GEqrD/oq4DA=; b=VkIDke4FWLeowQpy4BGxbkLjsRuhVQOfZZRCHISPi+lSyp5pnDzSgKz3yOpvTg+C0P jl4Ulz3Z4DBGTXK/LNLLJqE8BGoh2gBiMri+LauVpdILFY6mY8Dxznox0sRwVENMJatB rSGly4fgLAjepbp7DvHCiJXgkRumLJh4KbcEBk02W0QVxft4yIhxgBeuD/HquLRBWyDS XOW14cUM5kzXV6tbZCNNGwk04JTbQnIDfff00R4OLWUlxkuKh31Ib36CdI07gE4qRU+R j/LLb/iYmwz6SfwFewfU+e2UJksRWdmf8Gst2z/rfWMdlYVDz2gmfRy9ghn9arQMSnee arLw== X-Gm-Message-State: AD7BkJId5UgeY3Q19nL39MybcKzZiDw7jrtZZuE7vrhETjeV5Nyh5W+R9iq/2IwZyHt471yee5sV7W2D/6xtTA== X-Received: by 10.50.132.102 with SMTP id ot6mr20522079igb.97.1459951318587; Wed, 06 Apr 2016 07:01:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.46.165 with HTTP; Wed, 6 Apr 2016 07:01:19 -0700 (PDT) In-Reply-To: References: <20160405034626.GA1875@corpmail.liquidneon.com> From: Zsolt Ero Date: Wed, 6 Apr 2016 16:01:19 +0200 Message-ID: Subject: Re: FreeBSD Port: ports-mgmt/pkg To: Brad Davis Cc: pkg@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2016 14:01:59 -0000 Thanks for the 1.7.2 update, do you know when will it appear on quarterly? On 5 April 2016 at 12:28, Zsolt Ero wrote: > I don't know how those tools internally check the state of packages, > but anyone who self manages a server usually writes a long line of > "pkg install -y pkg1 pkg2 pkg3" in a script. I would think that 99% of > server deployment scripts are structured like this. > > Those lines are used in the sense of "make sure that pkg1, pkg2 and > pkg3 are all installed after this command". Now the new change totally > breaks this behaviour. > > Also, it breaks convention with known package managers from OS X or > the linux world, where ... install is usually used as "make sure that > ... is installed". > > Even if FreeBSD believes that such a huge change is somehow justified > at a minor point release, it should be clearly communicated with the > community. I would strongly recommend going back to the pre-1.7 way of > "make sure that ... is installed" behaviour. > > Since this is such a fresh change, I believe there will be many more > user reports coming in from broken install scripts soon. > > Zsolt > > On 5 April 2016 at 05:46, Brad Davis wrote: >> On Tue, Apr 05, 2016 at 02:20:49AM +0200, Zsolt Ero wrote: >>> Hi, >>> >>> There is quite a serious regression in pkg 1.7.1: pkg install fails >>> with error code 70 if any of the listed packages is already installed. >> >> Most tools like Puppet, Salt Stack, etc look at the output of `pkg list`. >> What tool are you using? >> >> I don't think this is a regression at all. pkg was not able to install >> something, thus it should exit with a proper error code. >> >> >> Regards, >> Brad Davis >>