From owner-freebsd-current@freebsd.org Wed Jun 7 09:06:55 2017 Return-Path: Delivered-To: freebsd-current@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 9FD2DBFF38E for ; Wed, 7 Jun 2017 09:06:55 +0000 (UTC) (envelope-from amutu@amutu.com) Received: from mail-ot0-x231.google.com (mail-ot0-x231.google.com [IPv6:2607:f8b0:4003:c0f::231]) (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 6136268091 for ; Wed, 7 Jun 2017 09:06:55 +0000 (UTC) (envelope-from amutu@amutu.com) Received: by mail-ot0-x231.google.com with SMTP id t31so3756524ota.1 for ; Wed, 07 Jun 2017 02:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amutu-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5wZm/krXkHCf1jdMIKawAgsn+vaKEIa1AJFehTVHVTQ=; b=zjFz670tdXOrnhKSUUTnBvzp9cEXNymJZv19Gz7n7I9jLouhQBdaGF9UCnKpWhIQXs JsJlGNOJglB+uZIuRqEp+WAUsVlIZ+nQopWVfIF8Ts6WUWQOzRSCcqSczXDIIvI4i3NK eyOemTK7Lg5w1PlxP3UOt3H+boUw8jOTV71un1QLMS9YkVx+vW9V+UgemFBHfKXcJiit 7Gi4uP8E1viPlgtUBu3NN76VcHdWQdR4D9BgNUOHilx0hn0YA0d0L7aNsMkU9v6oyiyN lSK6EIcbCaqs/zZWkdVTHalG0ZA0oOOVUEi5YPJGDVJ1N6SQ1xuO2j7RdDqiVKTsSB5o AxtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5wZm/krXkHCf1jdMIKawAgsn+vaKEIa1AJFehTVHVTQ=; b=Ff3oxx8rEwMocom4rMVCx1wAocXXtwpKLvZp+5in9wF1F5HSKeUAzPjaJmimwApVvo HDHKRv/EqnSi8jiC5r9NDosZAr4c0/whxJ4kJfZyg/pK/YCRNCgsYfkRdqixydASwwlY 9qNisJVP+ytzFNkPiq/Hb+90I2fKcKR+zfcbAVtgfTJofDuNzHaIfYdGZ9dA3rBxfKvN jls7szoz+LRT/HwxEoj2jGoVgZ24RBPNEdb4O/4GeN1PuETYv1FqhKtu9lLY01ItArKe n2wUYY/n77/UgwlnbXGqU5jRtPMCzFbyuELXqGwskhdFUKJyGiI7Uw9SwWQHTmFM6QTm 80LQ== X-Gm-Message-State: AKS2vOz0wjM22Czk6kox4RGZEdLWjb93CFu520lizMFUkmgtzQ5Gyrs7 Ws00L1+uGJJNxTzstacRNA== X-Received: by 10.157.54.145 with SMTP id h17mr3682291otc.104.1496826414527; Wed, 07 Jun 2017 02:06:54 -0700 (PDT) Received: from mail-ot0-f179.google.com (mail-ot0-f179.google.com. [74.125.82.179]) by smtp.gmail.com with ESMTPSA id g29sm623822ote.2.2017.06.07.02.06.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jun 2017 02:06:53 -0700 (PDT) Received: by mail-ot0-f179.google.com with SMTP id a2so3732618oth.2 for ; Wed, 07 Jun 2017 02:06:53 -0700 (PDT) X-Received: by 10.157.60.118 with SMTP id j51mr14927746ote.127.1496826413527; Wed, 07 Jun 2017 02:06:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.133.136 with HTTP; Wed, 7 Jun 2017 02:06:33 -0700 (PDT) In-Reply-To: References: From: Jov Date: Wed, 7 Jun 2017 17:06:33 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [sed] command failure? Porting a project to FreeBSD To: blubee blubeeme Cc: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2017 09:06:55 -0000 I don't think there is. Man page of FreeBSD tool may have a section of STANDARDS and/or COMPATIBILITY, but it does not list all the difference with GNU version. 2017-06-07 15:40 GMT+08:00 blubee blubeeme : > Ahhh, that was it. Doing a find and ask to replace all instances of sed > with gsed passed that part. > > By the way, is knowledge like this written down somewhere centralized or > is it just floating in the ether? > > Thank you, > Owen > > On Wed, Jun 7, 2017, 14:26 Jov wrote: > >> The default sed on FreeBSD is different from GNU sed,there is some limit >> for bsd sed.You can try to patch the makefile to using gsed. >> >> 2017-06-07 14:10 GMT+08:00 blubee blubeeme : >> >>> Hello >>> >>> I am trying to bring these updated print drivers to FreeBSD: >>> https://github.com/utsushi/utsushi.git >>> >>> >>> There's the automake scripts in there that's sorta helpful but I seem to >>> have gotten stuck with something. >>> >>> I made sure that my environmental variables are set >>> LDFLAGS -L/usr/local/lib >>> CPPFLAGS -I/usr/local/include >>> >>> i run autoreconf -fmi >>> that does it's thing and everything goes smoothly >>> >>> ./configure also seems to run just fine >>> >>> when I run make there's a problem; sed command just hangs, it's been >>> there >>> for hours now and no change. >>> >>> the line in the makefile looks like this: >>> $(srcdir)/utsushi/tag.hpp $(srcdir)/lib/tag.cpp: $(srcdir)/lib/tag.xml \ >>> $(srcdir)/lib/tag.xsl >>> format=`echo $@ | sed 's|.*\.\([^.]*\)$$|\1|'`; \ >>> sed -n \ >>> -e "/^/{ /-->/d; s|^$$|//|p; s|^....|//|p; }' $< > $@; \ >>> xsltproc --stringparam format $$format $(srcdir)/lib/tag.xsl $< >> $@ >>> sed -i 's/SEC_N_("%1%")/"%1%"/' $@ >>> >>> I am not the best with sed but I feel like there might be some issues; I >>> am >>> running tcsh shell, it could be it or that command is malformed. >>> >>> Trying to run the same make file with gmake, I get this output. >>> >>> format=`echo lib/tag.cpp | sed 's|.*\.\([^.]*\)$|\1|'`; \ >>> sed -n \ >>> -e "/^/{ /-->/d; s|^$|//|p; s|^....|//|p; }' lib/tag.xml > >>> lib/tag.cpp; \ >>> xsltproc --stringparam format $format ./lib/tag.xsl lib/tag.xml >> >>> lib/tag.cpp >>> sed -i 's/SEC_N_("%1%")/"%1%"/' lib/tag.cpp >>> sed: 1: "lib/tag.cpp": extra characters at the end of l command >>> gmake: *** [Makefile:1042: lib/tag.cpp] Error 1 >>> >>> extra character at the end of | command. It's a bit unclear to me. >>> >>> There's a tags.xml and tags.xsl in the ./lib/ directory so it seems to >>> be a >>> sed issue. >>> >>> Any assistance would be appreciated. >>> >>> Best, >>> Owen >>> >> _______________________________________________ >>> freebsd-current@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@ >>> freebsd.org" >>> >> >>