From owner-freebsd-questions@FreeBSD.ORG Fri Jun 6 02:07:14 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2467EB2 for ; Fri, 6 Jun 2014 02:07:14 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0183.outbound.protection.outlook.com [207.46.163.183]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DA16F2482 for ; Fri, 6 Jun 2014 02:07:12 +0000 (UTC) Received: from SN2PRD0310HT005.namprd03.prod.outlook.com (10.255.112.40) by BL2PR03MB241.namprd03.prod.outlook.com (10.255.231.15) with Microsoft SMTP Server (TLS) id 15.0.954.9; Fri, 6 Jun 2014 02:07:10 +0000 Received: from [10.0.0.114] (98.240.141.71) by pod51008.outlook.com (10.255.112.40) with Microsoft SMTP Server (TLS) id 14.16.459.0; Fri, 6 Jun 2014 02:07:09 +0000 Message-ID: <5391224C.10305@my.hennepintech.edu> Date: Thu, 5 Jun 2014 21:07:08 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Subject: Re: pkg upgrade dependencies and failures References: <20140606015036.GA4348@kilik.tpo.is> In-Reply-To: <20140606015036.GA4348@kilik.tpo.is> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [98.240.141.71] X-Microsoft-Antispam: BL:0; ACTION:Default; RISK:Low; SCL:0; SPMLVL:NotSpam; PCL:0; RULEID: X-Forefront-PRVS: 023495660C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(428001)(51704005)(199002)(189002)(87936001)(20776003)(86362001)(81342001)(75432001)(21056001)(77982001)(33656002)(83322001)(76482001)(23676002)(47776003)(79102001)(46102001)(83072002)(88552001)(65806001)(80022001)(92566001)(83506001)(64706001)(85852003)(65956001)(50466002)(64126003)(74662001)(102836001)(92726001)(65816999)(50986999)(66066001)(81542001)(101416001)(54356999)(76176999)(74502001)(4396001)(31966008)(77096999)(99396002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB241; H:SN2PRD0310HT005.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; A:0; MX:1; LANG:en; Received-SPF: None (: my.HennepinTech.edu does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aberg010@my.HennepinTech.edu; X-OriginatorOrg: my.hennepintech.edu X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2014 02:07:14 -0000 On 2014.06.05 20:50, Andrew Lewman wrote: > Hi, > > Just a question on how others handle pkg upgrade failures. On FreeBSD > 10.0-RELEASE-p2, I ran "pkg upgrade" today, and get this: > > "pkg: WARNING: locally installed lua-5.1.5_6 conflicts on /usr/local/include/lua51/lauxlib.h with: > - lua51-5.1.5_7" > > pkg -f upgrade returns the same error. I can either uninstall lua-5.1.5_6 > and all dependent packages to upgrade, or just not upgrade anything. > > uninstalling everything dependent on lua seems a sledgehammer approach. > > What do others do? Things like this are covered in /usr/ports/UPDATING (which is admittedly awkward and not obvious for those using only binary packages). However, AFAIK, the pkg developers are working on a way to make pkg handle origin changes without manual intervention (or have already done this for the upcoming version of pkg). > 20140526: > AFFECTS: users of lang/lua > > lang/lua has been relaced by lang/lua51 > > For port builds system please follow the following instructions: > > # portmaster -o lang/lua51 lang/lua > or > # portupgrade -fo lang/lua51 lang/lua > or > # pkg set -o lang/lua:lang/lua51