From owner-freebsd-questions@FreeBSD.ORG Tue Mar 26 04:13:38 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AA3A6185 for ; Tue, 26 Mar 2013 04:13:38 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx1.freebsd.org (Postfix) with ESMTP id 8BAC3797 for ; Tue, 26 Mar 2013 04:13:38 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id uo1so674430pbc.19 for ; Mon, 25 Mar 2013 21:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=RsyREKFLzT16gFAH+NenhFhK+4udQxUCmcwBSm6QyUY=; b=tYUUSmAc1/5DNbhh1/ZWZdIVG3fW69bBPX4m7almMPOFMLKZ2DbNf2xX2a++xPwNNX DcUzbp6zgNTwZkphUN0ggHbn4kxGSQD5xZ/HQzMItSjI2VboSE42OAwgOyQf2SWKj/sd uYtWaf38CoYP8SkeIqShrCncNBrisYT60/D0D8jspO2YlP+EToSq9xZAumfEm2nIY3VH 9qnB1JBBySwQQ+uxm0whKvVFBNwx2wyvblZlAr1GUQ3BMncyMx2D8q+WDfoEX1deCXLJ IOalRuljl5j9A2/aIMdh+5gWdDkhsaFr72TJIRXZtfG28IyP3pCCSZpcev8OIoxDOtZN 87YA== MIME-Version: 1.0 X-Received: by 10.68.254.35 with SMTP id af3mr21018607pbd.176.1364271217990; Mon, 25 Mar 2013 21:13:37 -0700 (PDT) Received: by 10.68.82.106 with HTTP; Mon, 25 Mar 2013 21:13:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Mar 2013 00:13:37 -0400 Message-ID: Subject: Re: gettext problem in FreeBSD 8.3 system hosed From: "illoai@gmail.com" To: nightrecon@hotmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Mar 2013 04:13:38 -0000 On 25 March 2013 20:12, Michael Powell wrote: > Antonio Olivares wrote: > > [snip] >>> As following /usr/port/UPDATING, I ran into a bit of trouble. System >>> is hosed and I cannot update any ports. I tried to follow advice >>> here: >>> >>> 20130316: >>> AFFECTS: users of converters/libiconv and devel/gettext >>> AUTHOR: bapt@FreeBSD.org >>> >>> libiconv now handles the lib/charset.alias file instead of >>> devel/gettext. If you are using pkgng 'and' upgrading from source with >>> portupgrade or portmaster, first delete gettext, upgrade libiconv, then >>> reinstall gettext. >>> >>> # pkg delete -f devel/gettext >>> # portmaster converters/libiconv devel/gettext >>> or >>> # pkg delete -f devel/gettext >>> # portupgrade converters/libiconv devel/gettext > [snip] >> >> I have tried to follow the instructions included in >> /usr/ports/UPDATING but I have not succeeded in this machine. I am >> thinking of moving it to 8.4-BETA1 release and then reworking the >> ports or deleting them and restarting in case of not having replies I >> have gotten myself out of trouble before but it can take days to get >> the machine back in working order :( >> > > Not exactly an answer here, in terms of recovery, but more along the lines > of trying to figure out how it happened. > > Did you previously convert this machine to pkgng? The reason I ask is the > instructions in UPDATING _only_ apply if you did so. If you did not, then > you did not need to pay any attention to that section in UPDATING. > > I have not yet investigated the changeover to pkgng. I recently just did a > portupgrade -a without doing as UPDATING suggested and had no difficulty with > either port. > > So if you have not converted to pkgng then there is/was a misunderstanding > in the reading of UPDATING. If you did convert to pkgng then you are in new > territory I have not seen yet, and the point is moot. > Having switched to pkgng & failing in my duty to carefully read /usr/ports/UPDATING before rather blindly running portmaster -a I ran into this problem (to a smaller extent, at least). I ran the suggested pkg delete -f gettext, which instantly hosed sudo. (Why sudo has NLS on by default is beyond me. Why sudo isn't a static binary is another issue entirely.) However, su still worked & I the "portmaster" stage ran without difficulty. In a pre-pkgng world (& without portmaster) I would run "pkg_delete -f gettext && cd /usr/ports/converters/libiconv && make deinstall reinstall && cd ../../devel/gettext && make install" as root. Or some variation on that, perhaps involving -C (I've become addicted to abusing make -C ;) &/or a "clean" being added to the make arguments. -- --