X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 2FF75DD0327 for ; Wed, 4 Nov 2015 10:16:51 +0000 (UTC) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 9F846DC4BC3 for ; Wed, 4 Nov 2015 10:16:50 +0000 (UTC) Received: by wicfx6 with SMTP id fx6so86253506wic.1 for ; Wed, 04 Nov 2015 02:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ds+ct4N5b8+DLO8B2aa8dwtsk/+Kzo3ujx5/aNklpfc=; b=APSbUFoWPcS53gYrusl9YNmnZseMlZhjyHTrovV72y9yoIHV8hIx+8jYxSBCkjQWaR LYv/a8QAA+sOP4gh1UYUrPnzvyGVfDQ/c4uNnPtyXcD8s2W1EakpPVnJd/UKuR9gG+Ys sCpT5RlW7vaW8RV9IVJhfkGgnuZifBxVaWdFwFdm1akfaVQFCJ7uOUHvxFjBJwljLBVr o7sEWTzgJ+CRZU/HMDEW5O8UoJmlyNO5Oz6fG3jd9wcF0QRKefDERjPwPzg4YGRn/nMy zXDQZ93sMAz2uf4afyVOqOeKM7EgFIdNNcPU3hF8vI7d3ZFUBK9bu5ghjoXUaidAaT7h Si0A== X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.194.23.104 with SMTP id l8mr1042477wjf.132.1446632208868; Wed, 04 Nov 2015 02:16:48 -0800 (PST) Received: by 10.28.105.68 with HTTP; Wed, 4 Nov 2015 02:16:48 -0800 (PST) In-Reply-To: <20151104105834.24b0b592@ncopa-desktop.alpinelinux.org> References: <1446554114-10679-1-git-send-email-valery.kartel@gmail.com> <20151104105834.24b0b592@ncopa-desktop.alpinelinux.org> Date: Wed, 4 Nov 2015 12:16:48 +0200 Message-ID: Subject: Re: [alpine-aports] [PATCH] testing/perl-font-ttf: new aport From: Valery Kartel To: Natanael Copa Cc: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=047d7b41cdd0ee50700523b44e1d X-Virus-Scanned: ClamAV using ClamSMTP --047d7b41cdd0ee50700523b44e1d Content-Type: text/plain; charset=UTF-8 Yes, it's my mistake ... Should be ... -o -name ttfmod.pl --- old/APKBUILD.old 2015-11-04 12:16:05.369999999 +0200 +++ new/APKBUILD 2015-11-04 12:17:54.806666656 +0200 @@ -33,7 +33,7 @@ package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 - find "$pkgdir" \( -name *.txt -o -name *.pod -o -name .packlist -o ttfmod.pl \) -delete + find "$pkgdir" \( -name *.txt -o -name *.pod -o -name .packlist -o -name ttfmod.pl \) -delete || return 1 mv "$pkgdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/vendor_perl rm -fr "$pkgdir"/usr/share/perl5 } 2015-11-04 11:58 GMT+02:00 Natanael Copa : > On Tue, 3 Nov 2015 14:35:14 +0200 > Valery Kartel wrote: > > > --- > > testing/perl-font-ttf/APKBUILD | 43 > ++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 43 insertions(+) > > create mode 100644 testing/perl-font-ttf/APKBUILD > > I see this when building and it does not look right: > > ... > Installing > /home/ncopa/aports/testing/perl-font-ttf/pkg/perl-font-ttf/usr/share/man/man3/Font::TTF::Hhea.3pm > find: unrecognized: ttfmod.pl > BusyBox v1.24.1 (2015-11-03 08:19:52 GMT) multi-call binary. > > Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS] > > Search for files and perform actions on them. > First failed action stops processing of current file. > Defaults: PATH is current directory, action is '-print' > > -L,-follow Follow symlinks > -H ...on command line only > -xdev Don't descend directories on other filesystems > -maxdepth N Descend at most N levels. -maxdepth 0 applies > actions to command line arguments only > -mindepth N Don't act on first N levels > -depth Act on directory *after* traversing it > > Actions: > ( ACTIONS ) Group actions for -o / -a > ! ACT Invert ACT's success/failure > ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2 > ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2 > Note: -a has higher priority than -o > -name PATTERN Match file name (w/o directory name) to PATTERN > -iname PATTERN Case insensitive -name > -path PATTERN Match path to PATTERN > -ipath PATTERN Case insensitive -path > -regex PATTERN Match path to regex PATTERN > -type X File type is X (one of: f,d,l,b,c,...) > -perm MASK At least one mask bit (+MASK), all bits (-MASK), > or exactly MASK bits are set in file's mode > -mtime DAYS mtime is greater than (+N), less than (-N), > or exactly N days in the past > -mmin MINS mtime is greater than (+N), less than (-N), > or exactly N minutes in the past > -newer FILE mtime is more recent than FILE's > -inum N File has inode number N > -user NAME/ID File is owned by given user > -group NAME/ID File is owned by given group > -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.)) > +/-N: file size is bigger/smaller than N > -links N Number of links is greater than (+N), less than > (-N), > or exactly N > -prune If current file is directory, don't descend into it > If none of the following actions is specified, -print is assumed > -print Print file name > -print0 Print file name, NUL terminated > -exec CMD ARG ; Run CMD with all instances of {} replaced by > file name. Fails if CMD exits with nonzero > -exec CMD ARG + Run CMD with {} replaced by list of file names > -delete Delete current file/directory. Turns on -depth > option > >>> perl-font-ttf*: Running split function doc... > >>> perl-font-ttf-doc*: Preparing subpackage perl-font-ttf-doc... > > > I think something goes wrong but it does not halt (maybe a missing || > return 1?) > > > > > diff --git a/testing/perl-font-ttf/APKBUILD > b/testing/perl-font-ttf/APKBUILD > > new file mode 100644 > > index 0000000..0d62e52 > > --- /dev/null > > +++ b/testing/perl-font-ttf/APKBUILD > > @@ -0,0 +1,43 @@ > > +# Automatically generated by apkbuild-cpan, template 1 > > +# Contributor: Valery Kartel > > +# Maintainer: Valery Kartel > > +pkgname=perl-font-ttf > > +_pkgreal=Font-TTF > > +pkgver=1.05 > > +pkgrel=0 > > +pkgdesc="TTF font support for Perl" > > +url="http://search.cpan.org/dist/Font-TTF/" > > +arch="noarch" > > +license="Artistic-2" > > +cpandepends="perl-io-string" > > +cpanmakedepends=" " > > +depends="$cpandepends" > > +makedepends="perl-dev $cpanmakedepends" > > +subpackages="$pkgname-doc" > > +source=" > http://search.cpan.org/CPAN/authors/id/M/MH/MHOSKEN/$_pkgreal-$pkgver.tar.gz > " > > + > > +_builddir="$srcdir/$_pkgreal-$pkgver" > > + > > +prepare() { > > + cd "$_builddir" > > + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` > > + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor > > +} > > + > > +build() { > > + cd "$_builddir" > > + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` > > + make && make test > > +} > > + > > +package() { > > + cd "$_builddir" > > + make DESTDIR="$pkgdir" install || return 1 > > + find "$pkgdir" \( -name *.txt -o -name *.pod -o -name .packlist -o > ttfmod.pl \) -delete > > My guess is that it should be: > > .... -o -name ttfmod.pl ... || return 1 > > > > + mv "$pkgdir"/usr/share/perl5/vendor_perl/* > "$pkgdir"/usr/lib/perl5/vendor_perl > > + rm -fr "$pkgdir"/usr/share/perl5 > > +} > > + > > +md5sums="a9d0acf4cb9ebaee875d71732b83dfe5 Font-TTF-1.05.tar.gz" > > > +sha256sums="26c48e4e76e00f0ac00766b3cfba79f0cb8cbf005b7a39033f0e8e0d9eeafb50 > Font-TTF-1.05.tar.gz" > > > +sha512sums="7288a2de63fc92c36f3706f365b2ea886e37361b13400a14f940961b0263f6492b02f73048c653bdcd5c5d1bb714977f3c5326b7217dcf3683b16d5048cd1e63 > Font-TTF-1.05.tar.gz" > > -nc > --047d7b41cdd0ee50700523b44e1d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, it's my mistake ... Should be ... -o -name <= a href=3D"http://ttfmod.pl">ttfmod.pl

--- old/APKBUILD.old= =C2=A0=C2=A0=C2=A0 2015-11-04 12:16:05.369999999 +0200
+++ new/APKBUILD= =C2=A0=C2=A0=C2=A0 2015-11-04 12:17:54.806666656 +0200
@@ -33,7 +33,7 @@=
=C2=A0package() {
=C2=A0=C2=A0=C2=A0=C2=A0 cd "$_builddir"=
=C2=A0=C2=A0=C2=A0=C2=A0 make DESTDIR=3D"$pkgdir" install || = return 1
-=C2=A0=C2=A0=C2=A0 find "$pkgdir" \( -name *.txt -o = -name *.pod -o -name .packlist -o ttfmod.pl \) -delete
+=C2=A0=C2=A0=C2=A0 find "$pkgdir" \( -name *.txt= -o -name *.pod -o -name .packlist -o -name
tt= fmod.pl \) -delete || return 1
=C2=A0=C2=A0=C2=A0=C2=A0 mv "$pk= gdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/= vendor_perl
=C2=A0=C2=A0=C2=A0=C2=A0 rm -fr "$pkgdir"/usr/shar= e/perl5
=C2=A0}


2015-11-04 11:58 GMT+02:00 Natanael Copa <ncopa@alpin= elinux.org>:
On Tue,=C2=A0 3 Nov 2015 14:35:14 +0200
Valery Kartel <valery.kartel@= gmail.com> wrote:

> ---
>=C2=A0 testing/perl-font-ttf/APKBUILD | 43 ++++++++++++++++++++++++++++= ++++++++++++++
>=C2=A0 1 file changed, 43 insertions(+)
>=C2=A0 create mode 100644 testing/perl-font-ttf/APKBUILD

I see this when building and it does not look right:

...
Installing /home/ncopa/aports/testing/perl-font-ttf/pkg/perl-font-ttf/usr/s= hare/man/man3/Font::TTF::Hhea.3pm
find: unrecognized: ttfmod.pl
BusyBox v1.24.1 (2015-11-03 08:19:52 GMT) multi-call binary.

Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]

Search for files and perform actions on them.
First failed action stops processing of current file.
Defaults: PATH is current directory, action is '-print'

=C2=A0 =C2=A0 =C2=A0 =C2=A0 -L,-follow=C2=A0 =C2=A0 =C2=A0 Follow symlinks<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 -H=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ...on command line only
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -xdev=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0D= on't descend directories on other filesystems
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -maxdepth N=C2=A0 =C2=A0 =C2=A0Descend at most = N levels. -maxdepth 0 applies
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 actions to command line arguments only
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -mindepth N=C2=A0 =C2=A0 =C2=A0Don't act on= first N levels
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -depth=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Act on= directory *after* traversing it

Actions:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ( ACTIONS )=C2=A0 =C2=A0 =C2=A0Group actions fo= r -o / -a
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ! ACT=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I= nvert ACT's success/failure
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ACT1 [-a] ACT2=C2=A0 If ACT1 fails, stop, else = do ACT2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ACT1 -o ACT2=C2=A0 =C2=A0 If ACT1 succeeds, sto= p, else do ACT2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 Note: -a has higher priority than -o
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -name PATTERN=C2=A0 =C2=A0Match file name (w/o = directory name) to PATTERN
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -iname PATTERN=C2=A0 Case insensitive -name
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -path PATTERN=C2=A0 =C2=A0Match path to PATTERN=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -ipath PATTERN=C2=A0 Case insensitive -path
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -regex PATTERN=C2=A0 Match path to regex PATTER= N
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -type X=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0File t= ype is X (one of: f,d,l,b,c,...)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -perm MASK=C2=A0 =C2=A0 =C2=A0 At least one mas= k bit (+MASK), all bits (-MASK),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 or exactly MASK bits are set in file's mode
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -mtime DAYS=C2=A0 =C2=A0 =C2=A0mtime is greater= than (+N), less than (-N),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 or exactly N days in the past
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -mmin MINS=C2=A0 =C2=A0 =C2=A0 mtime is greater= than (+N), less than (-N),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 or exactly N minutes in the past
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -newer FILE=C2=A0 =C2=A0 =C2=A0mtime is more re= cent than FILE's
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -inum N=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0File h= as inode number N
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -user NAME/ID=C2=A0 =C2=A0File is owned by give= n user
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -group NAME/ID=C2=A0 File is owned by given gro= up
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -size N[bck]=C2=A0 =C2=A0 File size is N (c:byt= es,k:kbytes,b:512 bytes(def.))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 +/-N: file size is bigger/smaller than N
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -links N=C2=A0 =C2=A0 =C2=A0 =C2=A0 Number of l= inks is greater than (+N), less than (-N),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 or exactly N
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -prune=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 If cur= rent file is directory, don't descend into it
If none of the following actions is specified, -print is assumed
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -print=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Print = file name
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -print0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Print = file name, NUL terminated
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -exec CMD ARG ; Run CMD with all instances of {= } replaced by
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 file name. Fails if CMD exits with nonzero
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -exec CMD ARG + Run CMD with {} replaced by lis= t of file names
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -delete=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Delete= current file/directory. Turns on -depth option
>>> perl-font-ttf*: Running split function doc...
>>> perl-font-ttf-doc*: Preparing subpackage perl-font-ttf-doc...<= br>

I think something goes wrong but it does not halt (maybe a missing ||
return 1?)



> diff --git a/testing/perl-font-ttf/APKBUILD b/testing/perl-font-ttf/AP= KBUILD
> new file mode 100644
> index 0000000..0d62e52
> --- /dev/null
> +++ b/testing/perl-font-ttf/APKBUILD
> @@ -0,0 +1,43 @@
> +# Automatically generated by apkbuild-cpan, template 1
> +# Contributor: Valery Kartel <valery.kartel@gmail.com>
> +# Maintainer: Valery Kartel <valery.kartel@gmail.com>
> +pkgname=3Dperl-font-ttf
> +_pkgreal=3DFont-TTF
> +pkgver=3D1.05
> +pkgrel=3D0
> +pkgdesc=3D"TTF font support for Perl"
> +url=3D"http://search.cpan.org/dist/Font-TTF/&quo= t;
> +arch=3D"noarch"
> +license=3D"Artistic-2"
> +cpandepends=3D"perl-io-string"
> +cpanmakedepends=3D"=C2=A0 =C2=A0"
> +depends=3D"$cpandepends"
> +makedepends=3D"perl-dev $cpanmakedepends"
> +subpackages=3D"$pkgname-doc"
> +source=3D"htt= p://search.cpan.org/CPAN/authors/id/M/MH/MHOSKEN/$_pkgreal-$pkgver.tar.gz"
> +
> +_builddir=3D"$srcdir/$_pkgreal-$pkgver"
> +
> +prepare() {
> +=C2=A0 =C2=A0 =C2=A0cd "$_builddir"
> +=C2=A0 =C2=A0 =C2=A0export CFLAGS=3D`perl -MConfig -E 'say $Confi= g{ccflags}'`
> +=C2=A0 =C2=A0 =C2=A0PERL_MM_USE_DEFAULT=3D1 perl Makefile.PL INSTALLD= IRS=3Dvendor
> +}
> +
> +build() {
> +=C2=A0 =C2=A0 =C2=A0cd "$_builddir"
> +=C2=A0 =C2=A0 =C2=A0export CFLAGS=3D`perl -MConfig -E 'say $Confi= g{ccflags}'`
> +=C2=A0 =C2=A0 =C2=A0make && make test
> +}
> +
> +package() {
> +=C2=A0 =C2=A0 =C2=A0cd "$_builddir"
> +=C2=A0 =C2=A0 =C2=A0make DESTDIR=3D"$pkgdir" install || ret= urn 1
> +=C2=A0 =C2=A0 =C2=A0find "$pkgdir" \( -name *.txt -o -name = *.pod -o -name .packlist -o
ttfmod.pl \) -delete

My guess is that it should be:

=C2=A0.... -o -name ttfmod.pl ... || return 1


> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/share/perl5/vendor_per= l/* "$pkgdir"/usr/lib/perl5/vendor_perl
> +=C2=A0 =C2=A0 =C2=A0rm -fr "$pkgdir"/usr/share/perl5
> +}
> +
> +md5sums=3D"a9d0acf4cb9ebaee875d71732b83dfe5=C2=A0 Font-TTF-1.05.= tar.gz"
> +sha256sums=3D"26c48e4e76e00f0ac00766b3cfba79f0cb8cbf005b7a39033f= 0e8e0d9eeafb50=C2=A0 Font-TTF-1.05.tar.gz"
> +sha512sums=3D"7288a2de63fc92c36f3706f365b2ea886e37361b13400a14f9= 40961b0263f6492b02f73048c653bdcd5c5d1bb714977f3c5326b7217dcf3683b16d5048cd1= e63=C2=A0 Font-TTF-1.05.tar.gz"

-nc

--047d7b41cdd0ee50700523b44e1d-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---