From owner-freebsd-current@freebsd.org Wed Jun 7 06:26:04 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 16A7FBFC815 for ; Wed, 7 Jun 2017 06:26:04 +0000 (UTC) (envelope-from amutu@amutu.com) Received: from mail-ot0-x22b.google.com (mail-ot0-x22b.google.com [IPv6:2607:f8b0:4003:c0f::22b]) (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 D857C3699 for ; Wed, 7 Jun 2017 06:26:03 +0000 (UTC) (envelope-from amutu@amutu.com) Received: by mail-ot0-x22b.google.com with SMTP id a2so2041679oth.2 for ; Tue, 06 Jun 2017 23:26:03 -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=xxtU2ZV0H0Sr/pMlschdBOJcXvyk+fMf/MgD//8yiXw=; b=ysyvn+CTeGOItIGxa26Z+uiCK3pHoHBdBZvFcVdmtFhbHEI9xmUg2C8+qiB0FzKr1S zS+/2y85vJPykfgqSo2aNR5O9Cy36k0y1A2i4Oiol+3o66KiGMMBsnc8t4/ANSdLi6Id g+RFm2fSif6KjtmC+n9ogv0QvGWdwtkAwOFOWUYTMESAUh9EMum/oKIh86OmKgxGDJ6J dXVde1a/1UtHHIwxNLACGLqtoCyp0AlR0351RxHFPjAWZz8KsctpcQBdKrvoyaaySfAN hwveCXHrxhAlr094CFFFZPaKcbQU1j84qpGHxMCuHuqLR2geCI4iQFNlmbwi2f5ipgcG DnhQ== 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=xxtU2ZV0H0Sr/pMlschdBOJcXvyk+fMf/MgD//8yiXw=; b=g+RkZR0w4AQBsoFf7mNZrlAnrSAd1QebAmh7fMTsERcin7gx1wQS6QNxV6MdVaY85B F61gowm95Du7+O6SQ8wDKGoQOwp1rdz7Ex0JDdIqyhNioiMrIwACHtxan98U4ZZzojTt FXd4KnKD1c7Wshe+d+TipRshDFRoua0w1P74LCae98r789DWt4dhDZGhucxr2MlUgdLQ XjBJkh/vmWsOWR3VntsTmltAf5+hZb/ucxV7n5tpvpV7bBvhgmzertmkDCOEWtWg4jn1 liXOMwO10bZdp2v1ZMddm7Pve5LMm7Jr3CwdMUEzeH0UADpYmreazDINcqAuFH3cNrGg lV/A== X-Gm-Message-State: AKS2vOxFCMWLjLn3PwswSiNcZyBn32D1vWS8uysuELBREy3YarP2D8X1 mBeJZCNB9To/mHGYkaLYiQ== X-Received: by 10.157.21.61 with SMTP id u58mr14804805otf.126.1496816763031; Tue, 06 Jun 2017 23:26:03 -0700 (PDT) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com. [209.85.218.45]) by smtp.gmail.com with ESMTPSA id h71sm460464oic.16.2017.06.06.23.26.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Jun 2017 23:26:02 -0700 (PDT) Received: by mail-oi0-f45.google.com with SMTP id o65so1614573oif.1 for ; Tue, 06 Jun 2017 23:26:02 -0700 (PDT) X-Received: by 10.202.44.134 with SMTP id s128mr13209517ois.7.1496816762290; Tue, 06 Jun 2017 23:26:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.133.136 with HTTP; Tue, 6 Jun 2017 23:25:41 -0700 (PDT) In-Reply-To: References: From: Jov Date: Wed, 7 Jun 2017 14:25:41 +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 06:26:04 -0000 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" >