From owner-freebsd-ports@freebsd.org Wed Aug 1 00:30:19 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE590106AA5A for ; Wed, 1 Aug 2018 00:30:19 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (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 7B3D28B76B for ; Wed, 1 Aug 2018 00:30:19 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oi0-x22c.google.com with SMTP id k12-v6so31408321oiw.8 for ; Tue, 31 Jul 2018 17:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=K63MhQz6zb/po8TS35OyThIv3Pl+RF5qKW6mxCk7Xm0=; b=RvObgqlcfLopFK45hfdtOwFwZpiDyR4HCxwuaIZA6uG50ghfBLT8eE1p3KVZ0UKBEi Rcq9v8Mz69mjB2XHIFfrLybf43ph2bd9jgQGOH3Kj2cmDwtKj6tULPbwObiLRPuOH9nr ySiSn3cZrrf4YrXYM0I0Av9a74JGsD+kWo969C62T/rYoWu5LmyRuP8gao04n+C7v8ad 9nSAGC+iuyi2tobaTdKmzioXrzTbyYST9TV0C1k0rI8PwrxCKUbH5sKNyET/yVrXbzrX twyTWfM6RSzNAd9VOF+UhrrMjNqayXcdHRl4GLbSXueExJ9PmdkoQzr/6AsClj+zW8o6 Cr7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=K63MhQz6zb/po8TS35OyThIv3Pl+RF5qKW6mxCk7Xm0=; b=P2+yVeCxdqxlj4oNiBB5hJk6POVbfPDXkAppOmnzNsJbh09O17faL7tvsbrBh82yuB /1NJJYt8Wdyd/3xfRIj3RGCqhbVgybENoViqjrF/Chx3vtSEIMEG/yb2vXEJ8ZAiY0nE 0VSHzfgM4GKWDch4QLOK4MjAW1+2xDB8p9jV90WgPt1g0sGFq7uhRO8usJunyG1Z2KAf aMZ8ZYSZ5tH3upRNQ6pRrw+itMQjxuCwJGrg17RkFvIDFNuYqZsByUGiBopABgQkl/XG LzzyEN1PV5XBQBnnjcS3t597kxOlfFBTD1DnjmYNhUosjKHIfpP8Jo82qNIu6XrsGTMJ kF3w== X-Gm-Message-State: AOUpUlHy1CqDa63eIu0LrP9qR8H3Kuuqmoc6lhYZsb2b75xgwIxQd1zX zsSGVDSA5An+ypn48ZvBEsTV0x3smTvNWmSdoUQ= X-Google-Smtp-Source: AAOMgpeeOLq7aWA9y70m4koZ/MwmjdfK6guUBDxaWtytpFbstVhhMaMKk4Pw0Zp6zS1LrVNRNB2vXM1ba0lFue6h05Q= X-Received: by 2002:aca:5004:: with SMTP id e4-v6mr1326119oib.111.1533083418503; Tue, 31 Jul 2018 17:30:18 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 2002:ac9:2c55:0:0:0:0:0 with HTTP; Tue, 31 Jul 2018 17:30:17 -0700 (PDT) In-Reply-To: References: <949ee823-3a20-4809-8468-0859c692aeef@utanet.at> From: Kevin Oberman Date: Tue, 31 Jul 2018 17:30:17 -0700 X-Google-Sender-Auth: h_U6PO46R3hCRLJEO2lnvLeuPkk Message-ID: Subject: Re: xproto merge To: Tatsuki Makino Cc: "freebsd-ports@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 00:30:20 -0000 On Tue, Jul 31, 2018 at 3:25 PM, Tatsuki Makino wrote: > How about this? > > pkg version -l \? | cut -f 1 -w | xargs pkg delete -f Thanks! Simple and almost works. First, it prompts "Proceed with deinstalling packages? [y/N]: " and exits. Also, any other orphaned ports will be deleted which will delete many people's compat ports. Unfortunately, the compat ports are only indexed for i386 and show up as orphaned on amd64. I complained long ago. It started when FLAVORS were added. I'm told that it is really working as designed and this is an unfortunate corner case. > pkg version -l \? | cut -f 1 -w bigreqsproto-1.1.2 compat10x-amd64-10.3.1003000.20170608 compat9x-amd64-9.3.903000.20170608 compositeproto-0.4.2 damageproto-1.2.1 dmxproto-2.3.1 dri2proto-2.8 dri3proto-1.0 fixesproto-5.0 [...] Try: pkg version -l \? | cut -f 1 -w | grep -v compat | xargs pkg delete -fy I have tested that and it worked for me. And, I agree with Walter. Any time you update over 100 ports due to changes in a dependency, "pkg check -B" is an excellent idea. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683