From owner-freebsd-multimedia@freebsd.org Mon Dec 11 23:33:54 2017 Return-Path: Delivered-To: freebsd-multimedia@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 83D7AEA297F for ; Mon, 11 Dec 2017 23:33:54 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 688AB7F55B for ; Mon, 11 Dec 2017 23:33:54 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: by mailman.ysv.freebsd.org (Postfix) id 64F15EA297E; Mon, 11 Dec 2017 23:33:54 +0000 (UTC) Delivered-To: multimedia@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 649A3EA297D for ; Mon, 11 Dec 2017 23:33:54 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from smtp.knology.net (smtp.knology.net [64.8.71.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F2607F559 for ; Mon, 11 Dec 2017 23:33:53 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=PrzRVEE3 c=1 sm=1 tr=0 a=NJjEWrS4q/4dTPYtqmtAqw==:117 a=NJjEWrS4q/4dTPYtqmtAqw==:17 a=KGjhK52YXX0A:10 a=kj9zAlcOel0A:10 a=oXJhIhYT-vsA:10 a=ocR9PWop10UA:10 a=qIHxdxLbUQEA:10 a=5llk0ql7AAAA:8 a=TyG3kTsx1EkjerBtKAQA:9 a=CjuIK1q_8ugA:10 a=0xAukbPN8TYWBNnwxRwN:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: Y3liZXJib3R4QHdvd3dheS5jb20= X_CMAE_Category: , , X-CNFS-Analysis: X-CM-Score: X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp01.wow.cmh.synacor.com smtp.user=cyberbotx@wowway.com; auth=pass (LOGIN) Received: from [50.4.251.65] ([50.4.251.65:18056] helo=www.cyberbotx.com) by smtp.mail.wowway.com (envelope-from ) (ecelerity 3.6.1.42806 r(Platform:3.6.1.1)) with ESMTPA id EC/E8-07332-B111F2A5; Mon, 11 Dec 2017 18:13:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 11 Dec 2017 18:13:31 -0500 From: Naram Qashat To: Jan Beich Cc: multimedia@freebsd.org Subject: Re: Trouble building ffmpeg-3.4_3,1 in poudriere In-Reply-To: References: Message-ID: <217ae2eae7e286f2659c8bd3e5ca14ae@cyberbotx.com> X-Sender: cyberbotx@cyberbotx.com User-Agent: Roundcube Webmail/1.3.3 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 23:33:54 -0000 On 2017-12-11 17:03, Jan Beich wrote: > Naram Qashat writes: > >> Hello all, >> >> I'm not exactly sure when I started running into this problem, but >> recently when I try to build ffmpeg in poudriere, it fails in >> packaging saying that the shared libraries are not found. For example, >> instead of getting >> >> libavcodec.so.57 >> >> I am getting >> >> libavcodec.so. > > Can you try the following? 57 is derived from _VERSION_MAJOR. > > $ cd /usr/ports/multimedia/ffmpeg > $ make clean patch BATCH= > $ cd `make -V WRKSRC` > $ sh ffbuild/libversion.sh avcodec libavcodec/version.h > libavcodec_VERSION=57.107.100 > libavcodec_VERSION_MAJOR=57 > libavcodec_VERSION_MINOR=107 Running that command does bring up the proper output, so considering the next part of the reply... >> Here is my poudriere log: >> http://kirby.cyberbotx.com/poudriere_logs/ffmpeg-3.4_3,1.log > [...] >> (00:02:32) ./ffbuild/libversion.sh avcodec libavcodec/version.h > >> libavcodec/libavcodec.version >> (00:02:32) /bin/sh: ./ffbuild/libversion.sh: not found > > Check which line causes "not found" e.g., by inserting "set -x" at the > start of the script. I didn't insert the set -x, but I think this might be a different problem with the environment of my system, one that I cannot reproduce in a VM. I can't seem to run shell scripts that lack the shebang at the start of them. I had the same problem with graphics/graphviz and currently use a local patch to get around that one. I'm not exactly sure what would cause my system to not want to run those scripts without the shebang. My shell on my host side is csh, but I have the same problem even if I am in the sh shell instead. Thanks, Naram Qashat