Taylor Deith | 12 Jul 2012 21:20

Adding a new package to ltib's root fileystem

Hello Ltib Gurus,

 

I’m trying to add php 5.4.4 to my local ltib, and I have been following the straightforward directions on the FAQ page. To differentiate from php-5.0.4 as delivered on freescales board-support-package, I’ve called my package php-updated. I’ve set up everything correctly, in so far as I can tell, up to step 5; however, when I ask Ltib to prepare/unpack the package – “$ ./ltib –m prep –p <package-name>”; i.e, step 5 – I get one of two errors. The first is if I refer to <package-name> without a ‘.spec’ appended, whereupon the script reports:

Cannot find spec file that contains the package name php-updated.

If necessary please give the whole spec file name (with the .spec extension).

 

traceback:

 main::mk_buildlist:1917

  main::validate_sn:1962

   main::build_rpm:726

    main::f_prep:992

     main:560

 

When supplying the full spec-file name, as in “./ltib –m prep –p <package-name>.spec”, the script goes on to look for the package on bitshrine, as opposed to /opt/freescale/pkgs. This fails when it can’t find the package on bitshrine:

 

Processing: php-updated

====================

Build path taken because: build key set, no prebuilt rpm,

Testing network connectivity

OK GPP:

 

Try PHP-5.4.4.tar.bz2.md5 from the GPP

http://bitshrine.org/gpp/PHP-5.4.4.tar.bz2.md5:

07:43:25 ERROR 404: Not Found.

Try PHP-5.4.4.tar.bz2 from the GPP

http://bitshrine.org/gpp/PHP-5.4.4.tar.bz2:

07:43:27 ERROR 404: Not Found.

Can't get: PHP-5.4.4.tar.bz2 at ./ltib line 790.

 

 

f_prep() returned an error, exiting

traceback:

 main:560

 

Exiting on error or interrupt

 

Is there something I’ve likely missed while following the FAQ? I’ve ruled out typos and version reference issues. I’ve also examined PHP-5.0.4’s .spec against the templated .spec, and there appears to be nothing special in the %Prep section for either.

<div>

<div class="Section1">

<p class="MsoNormal">Hello Ltib Gurus,<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">I&rsquo;m trying to add php 5.4.4 to my local ltib, and I
have been following the straightforward directions <a href="http://www.bitshrine.org/autodocs/LtibFaq.html#ref_89">on the FAQ page.</a>
To differentiate from php-5.0.4 as delivered on freescales
board-support-package, I&rsquo;ve called my package php-updated. I&rsquo;ve set
up everything correctly, in so far as I can tell, up to step 5; however, when I
ask Ltib to prepare/unpack the package &ndash; &ldquo;$ ./ltib &ndash;m prep &ndash;p
&lt;package-name&gt;&rdquo;; i.e, step 5 &ndash; I get one of two errors. The
first is if I refer to &lt;package-name&gt; without a &lsquo;.spec&rsquo;
appended, whereupon the script reports:<p></p></p>

<p class="MsoNormal">&ldquo;<p></p></p>

<p class="MsoNormal">Cannot find spec file that contains the package name php-updated.<p></p></p>

<p class="MsoNormal">If necessary please give the whole spec file name (with the
.spec extension).<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">traceback:<p></p></p>

<p class="MsoNormal">&nbsp;main::mk_buildlist:1917<p></p></p>

<p class="MsoNormal">&nbsp; main::validate_sn:1962<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp; main::build_rpm:726<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp;&nbsp; main::f_prep:992<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp; main:560<p></p></p>

<p class="MsoNormal">&ldquo;<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">When supplying the full spec-file name, as in &ldquo;./ltib &ndash;m
prep &ndash;p &lt;package-name&gt;.spec&rdquo;, the script goes on to look for
the package on bitshrine, as opposed to /opt/freescale/pkgs. This fails when it
can&rsquo;t find the package on bitshrine:<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">&ldquo;<p></p></p>

<p class="MsoNormal">Processing: php-updated<p></p></p>

<p class="MsoNormal">====================<p></p></p>

<p class="MsoNormal">Build path taken because: build key set, no prebuilt rpm, <p></p></p>

<p class="MsoNormal">Testing network connectivity<p></p></p>

<p class="MsoNormal">OK GPP: <p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Try PHP-5.4.4.tar.bz2.md5 from the GPP<p></p></p>

<p class="MsoNormal">http://bitshrine.org/gpp/PHP-5.4.4.tar.bz2.md5:<p></p></p>

<p class="MsoNormal">07:43:25 ERROR 404: Not Found.<p></p></p>

<p class="MsoNormal">Try PHP-5.4.4.tar.bz2 from the GPP<p></p></p>

<p class="MsoNormal">http://bitshrine.org/gpp/PHP-5.4.4.tar.bz2:<p></p></p>

<p class="MsoNormal">07:43:27 ERROR 404: Not Found.<p></p></p>

<p class="MsoNormal">Can't get: PHP-5.4.4.tar.bz2 at ./ltib line 790.<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">f_prep() returned an error, exiting<p></p></p>

<p class="MsoNormal">traceback:<p></p></p>

<p class="MsoNormal">&nbsp;main:560<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Exiting on error or interrupt<p></p></p>

<p class="MsoNormal">&ldquo;<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Is there something I&rsquo;ve likely missed while following
the FAQ? I&rsquo;ve ruled out typos and version reference issues. I&rsquo;ve
also examined PHP-5.0.4&rsquo;s .spec against the templated .spec, and there
appears to be nothing special in the %Prep section for either. <p></p></p>

</div>

</div>
Mike Goins | 13 Jul 2012 12:29

Re: Adding a new package to ltib's root fileystem

On Thu, Jul 12, 2012 at 3:20 PM, Taylor Deith <tdeith <at> dairycheq.com> wrote:
> Hello Ltib Gurus,
>
>
>
> I’m trying to add php 5.4.4 to my local ltib, and I have been following the
> straightforward directions on the FAQ page. To differentiate from php-5.0.4
> as delivered on freescales board-support-package, I’ve called my package
> php-updated. I’ve set up everything correctly, in so far as I can tell, up
> to step 5; however, when I ask Ltib to prepare/unpack the package – “$
> ./ltib –m prep –p <package-name>”; i.e, step 5 – I get one of two errors.
> The first is if I refer to <package-name> without a ‘.spec’ appended,
> whereupon the script reports:
>
> “
>
> Cannot find spec file that contains the package name php-updated.
>
> If necessary please give the whole spec file name (with the .spec
> extension).
>
>
>
> traceback:
>
>  main::mk_buildlist:1917
>
>   main::validate_sn:1962
>
>    main::build_rpm:726
>
>     main::f_prep:992
>
>      main:560
>
> “
>
>
>
> When supplying the full spec-file name, as in “./ltib –m prep –p
> <package-name>.spec”, the script goes on to look for the package on
> bitshrine, as opposed to /opt/freescale/pkgs. This fails when it can’t find
> the package on bitshrine:
>
>
>
> “
>
> Processing: php-updated
>
> ====================
>
> Build path taken because: build key set, no prebuilt rpm,
>
> Testing network connectivity
>
> OK GPP:
>
>
>
> Try PHP-5.4.4.tar.bz2.md5 from the GPP
>
> http://bitshrine.org/gpp/PHP-5.4.4.tar.bz2.md5:
>
> 07:43:25 ERROR 404: Not Found.
>
> Try PHP-5.4.4.tar.bz2 from the GPP
>
> http://bitshrine.org/gpp/PHP-5.4.4.tar.bz2:
>
> 07:43:27 ERROR 404: Not Found.
>
> Can't get: PHP-5.4.4.tar.bz2 at ./ltib line 790.

Check that you did step 2:

2. Move this tarball to the LPP so ltib can find it.

mv <my_new_package>-x.y.tar.gz /opt/freescale/pkgs/


The later section "Where do the sources get downloaded from (what is
the LPP/GPP/PPP) " explains the behavior.

Also, I generally just revision the existing php.spec instead trying
to create a duplicate.  Less trouble and version control helps.

>
>
>
>
> f_prep() returned an error, exiting
>
> traceback:
>
>  main:560
>
>
>
> Exiting on error or interrupt
>
> “
>
>
>
> Is there something I’ve likely missed while following the FAQ? I’ve ruled
> out typos and version reference issues. I’ve also examined PHP-5.0.4’s .spec
> against the templated .spec, and there appears to be nothing special in the
> %Prep section for either.
>
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> Ltib <at> nongnu.org
> https://lists.nongnu.org/mailman/listinfo/ltib
>


Gmane