From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1ehZ3h-0008IW-MD for ptxdist@pengutronix.de; Fri, 02 Feb 2018 11:59:05 +0100 Received: by mail-wr0-x230.google.com with SMTP id a43so14588838wrc.4 for ; Fri, 02 Feb 2018 02:59:05 -0800 (PST) MIME-Version: 1.0 From: Guillermo Rodriguez Garcia Date: Fri, 2 Feb 2018 11:59:03 +0100 Message-ID: Subject: [ptxdist] mediastreamer2: Bad search path when relinking library List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============1061244384==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============1061244384== Content-Type: multipart/alternative; boundary="f403045d5a60c82d1b05643899b6" --f403045d5a60c82d1b05643899b6 Content-Type: text/plain; charset="UTF-8" Hi all, I am trying to create a ptxdist package for mediastreamer2. By default, releases come without a configure script, and with an autogen.sh that requires intltoolize. So I first tried the following: In mediastreamer2.in: select HOST_INTLTOOL In mediasteamer2.make: $(STATEDIR)/mediastreamer2.extract: @$(call targetinfo) @$(call clean, $(MEDIASTREAMER2_DIR)) @$(call extract, MEDIASTREAMER2) cd $(MEDIASTREAMER2_DIR) && [ -f configure ] || sh autogen.sh @$(call patchin, MEDIASTREAMER2) @$(call touch) However, this does not work because apparently ptxdist resolves dependencies after the extract stage, so when autogen.sh is run, the host-intltool package has not been installed yet. So I tried to run autogen.sh from the extract.post stage instead: $(STATEDIR)/mediastreamer2.extract.post: @$(call targetinfo) cd $(MEDIASTREAMER2_DIR) && [ -f configure ] || sh autogen.sh @$(call touch) This way, host-intltool is installed before autogen.sh is run, so that part work. But this creates other problems: The install stage fails when trying to relink some libraries. What is the proper way to do this? Thank you, Guillermo Rodriguez Garcia guille.rodriguez@gmail.com --f403045d5a60c82d1b05643899b6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I am trying to create a ptxdist package fo= r mediastreamer2. By default, releases come without a configure script, and= with an autogen.sh that requires intltoolize.

So = I first tried the following:


select HOST_= INTLTOOL

In mediasteamer2.make:

=
$(STATEDIR)/mediastreamer2.extract= :
@$(call targetinfo)
@$(call clean, $(MEDIASTREAMER2_DIR))
@$(call extract, MEDIASTREAMER2)
cd $(MEDIASTREAMER2_DIR) && [ -f configure ] || sh autogen.= sh
@$(call patchin, MEDIASTREAMER2)
@$(call touch)


However, this does not work because apparently ptxdist resolves depe= ndencies after the extract stage, so when autogen.sh is run, the host-intlt= ool package has not been installed yet.

So I tried= to run autogen.sh from the extract.post stage instead:

=
$(STATEDIR)/mediastreamer2.extract.post:
@$(call targ= etinfo)
cd $(MEDIASTREAMER2_DIR) && [ -f configure ] || sh au= togen.sh
@$(call touch)

This way, host= -intltool is installed before autogen.sh is run, so that part work. But thi= s creates other problems: The install stage fails when trying to relink som= e libraries.

What is the proper way to do this?
Thank you,

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com
--f403045d5a60c82d1b05643899b6-- --===============1061244384== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============1061244384==--