From owner-freebsd-current@freebsd.org Wed Jun 7 07:41:00 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 D48B0BFDA5A for ; Wed, 7 Jun 2017 07:41:00 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com [IPv6:2607:f8b0:400e:c00::230]) (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 A517B658C6 for ; Wed, 7 Jun 2017 07:41:00 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pf0-x230.google.com with SMTP id 83so2749031pfr.0 for ; Wed, 07 Jun 2017 00:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CBUXd+T8yy/g3dzqEGAa93OWwRMwtFTFx0MWswNrx4E=; b=EkPJBhzJCjehOsYv7TEQ8VaBLaW+HSmR3/t2d/5+hCbvBgZ9sPjRtIJZCnsrU1OSOd jUZ3Gaz7dRQT5zj51dOHYPoVr2cD60moXYBSF/O0rYCn6Yb71bfcbLq6CJDq3VhD+Sqb eLXeOP89NPzXwF76lzN+lOM+/rinC1GQSICxgkxjWjZ/89Mv4Jl3NmW1o4UHO06b26eK zXdNN7Yb2e2dmI0CLuNBY0TsYGMOqG7SHi6sG3lNkiWc1T/wemO2mLZM56jwu3lfuDTy R9zo5DanfGQVUlMxhAb5ezYaG69qN7lG0d6fOruUfRZQ+c8hs4+NHfeiADYk4SzpTTgk pj9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CBUXd+T8yy/g3dzqEGAa93OWwRMwtFTFx0MWswNrx4E=; b=P8VJJbldv4Pp29dzmrsI+SpO3qB7Q2ay/F0e3dZ53089nEI4n77eR3hYpKoNTjBvF5 X3vkESz6t1BgN7z6EcDzxXvIuAlBg/xEfBAbeCyphwH15DANRhr1D5TbPPFwRSWPkQ21 3PMMyN3sQ0ERNqvla70Ib7D/pNJ/A9DYopR2NLVhOMzcDFIBgJ9X1xrE8H+dq/XA1vwc 2phdxvZc1SaLu/kMuNZBczL0w+eLLhRzcBbqUBhtCCaPFW8u5KoazhMbmjhHn7ln+dCI +f16bvoG9O9+mputMOg6HUYT2Cv5ZF7D+qIjAr6OU+AZMJaGMkpMHnmamrEYfGlWoReD ok8g== X-Gm-Message-State: AODbwcBqvHoEUMDEHNN3ikkxUDxwoHux99vsEBjRunvln1uwClU8Zo+w iQsJhSymjG3L+OxrLPg+oIoscKn2wA== X-Received: by 10.98.252.77 with SMTP id e74mr18313331pfh.42.1496821260185; Wed, 07 Jun 2017 00:41:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: blubee blubeeme Date: Wed, 07 Jun 2017 07:40:49 +0000 Message-ID: Subject: Re: [sed] command failure? Porting a project to FreeBSD To: Jov 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 07:41:00 -0000 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 >> " >> > >