Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2015 22:22:19 +0800
From:      Sunpoet Po-Chuan Hsieh <sunpoet@freebsd.org>
To:        Muhammad Moinur Rahman <bofh@freebsd.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers <ports-committers@freebsd.org>
Subject:   Re: svn commit: r376533 - head/textproc/p5-Net-IDN-Encode
Message-ID:  <CAMHz58RsBc5d-GVK3r1Q5MSxXe4N8U40oeEATEDX_LCPCyT2kg@mail.gmail.com>
In-Reply-To: <201501081409.t08E9ATL093678@svn.freebsd.org>
References:  <201501081409.t08E9ATL093678@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 8, 2015 at 10:09 PM, Muhammad Moinur Rahman <bofh@freebsd.org>
wrote:

> Author: bofh
> Date: Thu Jan  8 14:09:09 2015
> New Revision: 376533
> URL: https://svnweb.freebsd.org/changeset/ports/376533
> QAT: https://qat.redports.org/buildarchive/r376533/
>
> Log:
>   SITE_ARCH is based on LOCALBASE. Have to use PREFIX/SITE_ARCH_REL.
>

This commit only fixes this problem.


>
>   STRIP_CMD will fail if built as regular user.
>

You'll get the error as follows:

/usr/bin/strip
/usr/ports/textproc/p5-Net-IDN-Encode/work/stage/usr/local/lib/perl5/site_perl/mach/5.20/auto/Net/IDN/Punycode/Punycode.so
/usr/bin/strip: unable to copy file
'/usr/ports/textproc/p5-Net-IDN-Encode/work/stage/usr/local/lib/perl5/site_perl/mach/5.20/auto/Net/IDN/Punycode/Punycode.so'
reason: Permission denied

Because the .so file is installed without write permission, I choose to
"chmod u+w, strip and chmod u-w".

HTH

Regards,
sunpoet


>   Differential Revision:        https://reviews.freebsd.org/D1437
>   Submitted by: sunpoet
>   Approved by:  marino(mentor)
>
> Modified:
>   head/textproc/p5-Net-IDN-Encode/Makefile
>
> Modified: head/textproc/p5-Net-IDN-Encode/Makefile
>
> ==============================================================================
> --- head/textproc/p5-Net-IDN-Encode/Makefile    Thu Jan  8 13:46:24 2015
>       (r376532)
> +++ head/textproc/p5-Net-IDN-Encode/Makefile    Thu Jan  8 14:09:09 2015
>       (r376533)
> @@ -3,6 +3,7 @@
>
>  PORTNAME=      Net-IDN-Encode
>  PORTVERSION=   2.201
> +PORTREVISION=  1
>  CATEGORIES=    textproc perl5
>  MASTER_SITES=  CPAN
>  PKGNAMEPREFIX= p5-
> @@ -19,5 +20,5 @@ USES=         perl5
>  USE_PERL5=     modbuild
>
>  post-stage:
> -       ${STRIP_CMD}
> ${STAGEDIR}${SITE_ARCH}/auto/Net/IDN/Punycode/Punycode.so
> +       ${STRIP_CMD}
> ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/IDN/Punycode/Punycode.so
>  .include <bsd.port.mk>
> _______________________________________________
> svn-ports-all@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-ports-all
> To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58RsBc5d-GVK3r1Q5MSxXe4N8U40oeEATEDX_LCPCyT2kg>