X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by lists.alpinelinux.org (Postfix) with ESMTP id E4130F84D86 for ; Thu, 28 Mar 2019 15:45:07 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id c1so12432361qkk.4 for ; Thu, 28 Mar 2019 08:45:07 -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=mIF0Tl4pyMRMeZY0eHb/MmwJ6Y0bGZSrmUnRe93JDOs=; b=uJxFMkO2nmgIF4AQ/TTK90ZGEwlxQXCsrmHzIRuWj2palNXrw4k5GJo1sNbye2J7HR 21I91D8/jpEkETR6mWIwq2Cn0bOXtK4g0iZ807YwKfHg9YlqVYzC7hMTFQw9kDAOSEpe GjVohkGX+OVwC/obnLOOcgH71pBOV1+li3YiseazETxqW8PbBsPz4LWWL2M6CRe/pr8a btW1+UgnLBLOimMGLvT9xLBGzDDD43eb4YoJKXfPmMnbMb1TjrFqmjdap4n5huWNLY/u bUUoa9zLpNT5j8V2+mOzlSSwsI9bj/8vceKUPs4L4z4gTwqwyvPzAqPiGc3XgncEbQ6X W8ew== 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=mIF0Tl4pyMRMeZY0eHb/MmwJ6Y0bGZSrmUnRe93JDOs=; b=qyMKeO/eUs0D342WFvR6GbyIku9smO2mII+EjS/OkVHSG2o8w08/pXKKWDP8BUziIR yY6isjbCMNSTGywJ06sbTL7Y06dO6D7ZXxIDaQ/DLwvnBPWs9trGZOy0kTOIiqI1921J xXbtErnoZqzTJZMRlpwcMPl6VpJruxxPmGQg3/Trn5gjkkq0xA2xkstqSvErhq0WXCpE 40lsY6jA4GmMG9z77OJENN031L6QnpXWKZbkdEYAqMVqnpcMJFhbuJiAqFCU3tfy28AQ 3NZDVbCqs28j95/tzuf5TF6AU2bPoFr97ZRU5Cf0f4Azjo2Op5r0rgv+yJY78sIcEoQI csIA== X-Gm-Message-State: APjAAAV8mAecHh/dlC6JN1Fx6WKJgwOVuhyV8HqK8HKW1Arz/stL5TEi kKf19ccD+uzkJBeBkyrv9CsegNakTWozbNZO67ica5pB X-Google-Smtp-Source: APXvYqx/NQ3hfaQDS+EIPVpccTScRkjLHNFkr94FJiMhy6XX0+2Tz88IWnV49ui6TnvbNL8x37dtTow+NoVIdKpRo00= X-Received: by 2002:ae9:f70e:: with SMTP id s14mr7141910qkg.259.1553787907389; Thu, 28 Mar 2019 08:45:07 -0700 (PDT) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 References: <20190328120121.125e8882@ncopa-desktop.copa.dup.pw> In-Reply-To: <20190328120121.125e8882@ncopa-desktop.copa.dup.pw> From: Timothy Legge Date: Thu, 28 Mar 2019 12:44:55 -0300 Message-ID: Subject: Re: [alpine-devel] Issue with abuild on aports github build To: Natanael Copa Cc: alpine-devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="00000000000046be220585297090" --00000000000046be220585297090 Content-Type: text/plain; charset="UTF-8" HI Thanks. Apparently I had commented out the rpath check in my git repo version so that explained the reason. However, my APKBUILD file does not have /home or ~/ so how I could be getting the same results on the github checks is strange to me. I guess it likely has to do with: Warning: -L../MagickCore/.libs changed to -L/home/tim/aports/testing/perlmagick/src/ImageMagick-7.0.8-35/PerlMagick/../MagickCore/.libs localhost:~/aports/testing/perlmagick/pkg$ scanelf --recursive --rpath . TYPE RPATH FILE ET_DYN /home/tim/aports/testing/perlmagick/src/ImageMagick-7.0.8-35/PerlMagick/quantum/../../MagickCore/.libs ./perlmagick/usr/lib/perl5/vendor_perl/auto/Image/Magick/Q16HDRI/Q16HDRI.so On Thu, Mar 28, 2019 at 8:01 AM Natanael Copa wrote: > On Wed, 27 Mar 2019 20:05:01 -0300 > Timothy Legge wrote: > > > Hi > > Hi! > > > > > I pushed a pull request https://github.com/alpinelinux/aports/pull/6851 > for > > perlmagic. The build works on my development box if I use abuild from > the > > current https://github.com/alpinelinux/abuild master. > > > > If I use the version of abuild included on 3.8.4 I it fails with > > > > >>> ERROR: perlmagick*: Has /home/... in rpath > > This is a check that there should be no references to /home in the > binaries. Binaries should not be told to look for shared libs in any > place under /home. > > What probably happened here is that build script will set RPATH to look > for shared libs in the build tree, most likely to be able to run test > suite or similar. > > My guess is that this does not happen on your local machine because you > don't run your build from /home. > > You can find the offending binaries with: scanelf --recursive --rpath > $pkgdir > > As a side note, I think we may need extend the test to also look > for /tmp and /var/tmp or any place that users may have write access too. > > > >>> ERROR: perlmagick*: prepare_package failed > > >>> ERROR: perlmagick: all failed > > > > This is the same error that shows up in github after the pull request > runs: > > > > continuous-integration/drone/pr * Build is failing > > continuous-integration/travis-ci/pr * The Travis CI build failed > > > > However the current git version of abuild works without any errors. Any > > thoughts? > > > > Tim > > --00000000000046be220585297090 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI

Th= anks.=C2=A0 Apparently I had commented out the rpath check in my git repo v= ersion so that explained the reason.

However, my A= PKBUILD file does not have /home or ~/ so how I could be getting the same r= esults on the github checks is strange to me.=C2=A0=C2=A0

I guess it likely has to do with:

Warning:= -L../MagickCore/.libs changed to -L/home/tim/aports/testing/perlmagick/src= /ImageMagick-7.0.8-35/PerlMagick/../MagickCore/.libs


localhost:~/aports/testing/perlmagick/pkg$ scane= lf --recursive --rpath .
=C2=A0TYPE=C2=A0 =C2=A0RPATH FILE=C2=A0<= /div>
ET_DYN /home/tim/aports/testing/perlmagick/src/ImageMagick-7.0.8-= 35/PerlMagick/quantum/../../MagickCore/.libs ./perlmagick/usr/lib/perl5/ven= dor_perl/auto/Image/Magick/Q16HDRI/Q16HDRI.so


On Thu, Mar 28, 2019 at 8:01 AM Natanael Copa <ncopa@alpinelinux.org> wrote:
On Wed, 27 Mar 2019 20:05:01 = -0300
Timothy Legge <t= imlegge@gmail.com> wrote:

> Hi

Hi!

>
> I pushed a pull request https://github.com/alpin= elinux/aports/pull/6851 for
> perlmagic.=C2=A0 The build works on my development box if I use abuild= from the
> current https://github.com/alpinelinux/abuild master.<= br> >
> If I use the version of abuild included on 3.8.4 I it fails with
>
> >>> ERROR: perlmagick*: Has /home/... in rpath

This is a check that there should be no references to /home in the
binaries. Binaries should not be told to look for shared libs in any
place under /home.

What probably happened here is that build script will set RPATH to look
for shared libs in the build tree, most likely to be able to run test
suite or similar.

My guess is that this does not happen on your local machine because you
don't run your build from /home.

You can find the offending binaries with: scanelf --recursive --rpath $pkgd= ir

As a side note, I think we may need extend the test to also look
for /tmp and /var/tmp or any place that users may have write access too.
> >>> ERROR: perlmagick*: prepare_package failed
> >>> ERROR: perlmagick: all failed=C2=A0
>
> This is the same error that shows up in github after the pull request = runs:
>
> continuous-integration/drone/pr * Build is failing
> continuous-integration/travis-ci/pr * The Travis CI build failed
>
> However the current git version of abuild works without any errors.=C2= =A0 Any
> thoughts?
>
> Tim

--00000000000046be220585297090-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---