From owner-freebsd-ports@FreeBSD.ORG Thu Oct 24 05:45:19 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B5784D5B for ; Thu, 24 Oct 2013 05:45:19 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 894752A9B for ; Thu, 24 Oct 2013 05:45:19 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id at1so3108322iec.1 for ; Wed, 23 Oct 2013 22:45:19 -0700 (PDT) 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=tLHn0stK9AulBBsoKoRQpLJINS1G2+LrmdtbgQ8LROQ=; b=GecM8/fiV85twOxyXUdJPBVmhJ/vlY3iKc0c9h+oEdwXDQDmGYgFq916FfA3FkuBKj ptHmE8byRkYXd08IIgjvuhG31gQFoncctSOVBBVsb7m+K3Oktonta1VOpjoIeo2oo6O4 xeGLALEbGU0PiGrowyJe5fFho25k7EhtiLW4i/WAxwGHttL5kjZQxKpNjy50/j9GqkJo FvbjuYkMszXoei25PwqVJS+htwy0/dg608NO+aV2WQ31Uejw0Noz2m+ivLU4dNE6o0i+ xMgVfSN4uJRtiIPSFNTOv/tcrprN76TEpwyvT6NpVxBVc0GM7/nd4ud8gCrKzXnjxnEJ /nLg== MIME-Version: 1.0 X-Received: by 10.50.73.41 with SMTP id i9mr483880igv.30.1382593518920; Wed, 23 Oct 2013 22:45:18 -0700 (PDT) Received: by 10.50.62.178 with HTTP; Wed, 23 Oct 2013 22:45:18 -0700 (PDT) In-Reply-To: <029DD189-E4F7-441D-95A4-08E73327DBDB@odo.in-berlin.de> References: <201310232003.39787.Mark.Martinec+freebsd@ijs.si> <029DD189-E4F7-441D-95A4-08E73327DBDB@odo.in-berlin.de> Date: Thu, 24 Oct 2013 00:45:18 -0500 Message-ID: Subject: Re: amavis[12345]: (12345-02) (!)file utility failed: exit 1 From: Scot Hetzel To: Michael Grimm Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2013 05:45:19 -0000 On Wed, Oct 23, 2013 at 1:25 PM, Michael Grimm wrote: > Hi -- > > On 23.10.2013, at 20:03, Mark Martinec wrote: > >> The text "ERROR: line 163: regex error 17, (illegal byte sequence)" >> comes from the file utility, unmodified. >> >>> 1) Is the file utility to blame? >> >> Yes. >> >>> 2) My setup? >> >> Possibly (e.g. broken magic database). >> >> Looks like a known bug in the file utility, already fixed upstream: >> >> http://bugs.gw.com/my_view_page.php >> (search for: illegal byte sequence) >> >> Should be reproducible by running the file(1) from a command line >> (in the same/similar environment as amavisd is running, just in case). > > Confirmed, it's throwing the same error message[1]: > > | mail> /usr/local/bin/file zzz > | zzz: ERROR: line 163: regex error 17, (illegal byte sequence) > > Thank you for helping me understand that issue. Now, I will wait for > a corrected file port. > > With kind regards, To cause the error to occur do the following: cd /usr/ports/sysutils/file make install cd /usr/ports/sysutils/file/work/file-5.15/magic/Magdir LC_ALL=en_US.UTF-8 /usr/local/bin/file -d -m windows /usr/ports/sysutils/file/Makefile I tested all the magic files in the directory using: sh (for i in `ls` ; do echo "==== $i ====" ; LC_ALL=en_US.UTF-8 /usr/local/bin/file -d -m $i /usr/ports/sysutils/file/Makefile ; done) 2>&1 > ../fine.test The only one that failed was the 'windows' magic file. Which is bug 292 http://bugs.gw.com/view.php?id=292 I was able to resolve the bug in PR 183257. http://www.freebsd.org/cgi/query-pr.cgi?pr=183257 Could someone check that the regex is correct an commit it to the port and submit it upstream. Thanks, Scot