Summary: | [stage] german/bbbike: stage directory support | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Slaven Rezic <slaven> | ||||||||||
Component: | Individual Port(s) | Assignee: | John Marino <marino> | ||||||||||
Status: | Closed FIXED | ||||||||||||
Severity: | Affects Only Me | CC: | eserte12, marino, miwi, sbruno | ||||||||||
Priority: | Normal | ||||||||||||
Version: | Latest | ||||||||||||
Hardware: | Any | ||||||||||||
OS: | Any | ||||||||||||
Attachments: |
|
Description
Slaven Rezic
2014-06-05 19:46:37 UTC
please attach a patch. Thanks Created attachment 143437 [details]
Here the patch also as an attachment.
Hi, Build fails, please have a look http://pkgdev.miwibox.org/data/92amd64-default/2014-06-06_13h05m50s/logs/errors/de-BBBike-3.18_1.log Created attachment 143464 [details]
New patch addressing the QA issues
Created attachment 143721 [details]
2nd patch addressing the QA issues
The QA system seems to have problems with a computed pkg-plist, so this change gets rid of the pkg-plist.in.
Please, can you retry the latest patch? let's cross our fingers that this is the one. A commit references this bug: Author: marino Date: Wed Aug 6 23:27:47 UTC 2014 New revision: 364231 URL: http://svnweb.freebsd.org/changeset/ports/364231 Log: Stage german/BBBike PR: 190667 Submitted by: maintainer (Slaven Rezic) Changes: head/german/BBBike/Makefile head/german/BBBike/pkg-descr head/german/BBBike/pkg-plist head/german/BBBike/pkg-plist.in Okay, the good news is that it passed all checks. The bad news is that the pkg-desc was waaaay illegal, only 24 lines allowed. To make it fit I removed unnecessary blank lines and the German translation (I know that probably irks you but putting non-english in the pkg-desc isn't conventional. I don't know if it's actually illegal or not but I haven't run into that before). The so-so news is that the use of != to figure out the perl version looks very sketchy to me. I suspect there is a better way to figure this out. "!=" operator actually flags checks, people want to avoid it's use as much as possible. But for now your port is staged. This update seems to generate warning/errors when running from poudriere: [00:00:02] ====>> Calculating ports order and dependencies /usr/local/bin/perl5.16.3: not found make: "/usr/ports/german/BBBike/Makefile" line 26: warning: "/usr/local/bin/perl5.16.3 -MConfig -e '$x = qq{$Config{version}/$Config{archname}}; $x =~ s{/}{\\\\/}g; print $x'" returned non-zero status WARNING (german/BBBike): /usr/local/bin/perl5.16.3: not found WARNING (german/BBBike): make: "/usr/ports/german/BBBike/Makefile" line 26: warning: "/usr/local/bin/perl5.16.3 -MConfig -e '$x = qq{$Config{version}/$Config{archname}}; $x =~ s{/}{\\\\/}g; print $x'" returned non-zero status (In reply to Sean Bruno from comment #10) > This update seems to generate warning/errors when running from poudriere: > > [00:00:02] ====>> Calculating ports order and dependencies > /usr/local/bin/perl5.16.3: not found > make: "/usr/ports/german/BBBike/Makefile" line 26: warning: > "/usr/local/bin/perl5.16.3 -MConfig -e '$x = > qq{$Config{version}/$Config{archname}}; $x =~ s{/}{\\\\/}g; print $x'" > returned non-zero status > WARNING (german/BBBike): /usr/local/bin/perl5.16.3: not found > WARNING (german/BBBike): make: "/usr/ports/german/BBBike/Makefile" line 26: > warning: "/usr/local/bin/perl5.16.3 -MConfig -e '$x = > qq{$Config{version}/$Config{archname}}; $x =~ s{/}{\\\\/}g; print $x'" > returned non-zero status Probably here the Makefile was called very early, before even perl was installed. Maybe the != hack could be extended to something like LOCAL_PERL_ARCH!= [ -x ${PERL5} ] && ${PERL5} -MConfig -e '$$x = qq{$$Config{version}/$$Config{archname}}; $$x =~ s{/}{\\\\/}g; print $$x' (to be checked, or I find a better way to get to the LOCAL_PERL_ARCH value) other ports that use this terrible hack put a safeguard to avoid the evaluation if PERL5 is not defined, e.g. .if defined(PERL5) LOCAL_PERL_ARCH!= .... .endif That would probably solve whatever warnings you are getting (In reply to John Marino from comment #12) > other ports that use this terrible hack put a safeguard to avoid the > evaluation if PERL5 is not defined, e.g. > > .if defined(PERL5) > LOCAL_PERL_ARCH!= .... > .endif > > > That would probably solve whatever warnings you are getting PERL5 is probably defined here (the error message says "/usr/local/bin/perl5.16.3: not found"), but maybe we can use exists: .if exists(${PERL5}) LOCAL_PERL_ARCH!= .... .endif sounds ok, does it work? Created attachment 145675 [details]
using the ".ifdef exists PERL5" hack
Here's a patch with the "exists" hack.
(I also added a comment about the necessity for the !=, and a small identation fix)
A commit references this bug: Author: marino Date: Mon Aug 11 21:23:18 UTC 2014 New revision: 364667 URL: http://svnweb.freebsd.org/changeset/ports/364667 Log: german/BBBike: Clear up build warnings caused by early shell command PR: 190667 Reported by: Sean Bruno Submitted by: eserte12 (yahoo.de) Approved by: Just Fix It Changes: head/german/BBBike/Makefile Hopefully all is well now.. |