#20802: quilt: package refresh shows error: "/usr/bin/env: perl -w: No such 
file or
directory"
---------------------------+---------------------------------------
 Reporter:  hnyman         |      Owner:  developers
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:  Designated Driver (Trunk)
Component:  toolchain      |    Version:  Trunk
 Keywords:  refresh quilt  |
---------------------------+---------------------------------------
 Doing a package refresh shows a perl-related error for each patch in DD
 trunk, but not in the CC15.05 toolchain. The error is caused by r47070
 that modified quilt.

 An error is shown for each patch at the last stage of the refresh:
   Now at patch 100-missing_include.patch
   '''/usr/bin/env: perl -w: No such file or directory'''
   Patch 100-missing_include.patch is unchanged

 I didn't notice any relevant check-ins in /scripts or /include, but r47070
 modified quilt itself. That is the only difference between trunk and CC
 quilt code.
 https://dev.openwrt.org/changeset/47070/

 r47070 changes the definition of PERL in quilt, which might be the reason:
    -PERL :=                @PERL@
    +PERL :=                /usr/bin/env perl

 To prove that r47070 really is the culprit, I downgraded to rev47069 and
 tested (no error), updated to r47070 and tested again (error
 materialised).

 Example using conntrack-tools, which has only one patch and is identical
 in trunk and CC:
 {{{
 touch /Openwrt/trunk/build_dir/target-mips_34kc_musl-1.1.11/conntrack-
 tools-1.4.2/.prepared
 if [ -s "/Openwrt/trunk/build_dir/target-mips_34kc_musl-1.1.11/conntrack-
 tools-1.4.2/patches/series" ]; then (cd "/Openwrt/trunk/build_dir/target-
 mips_34kc_musl-1.1.11/conntrack-tools-1.4.2"; if quilt --quiltrc=- next
 >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=-
 top >/dev/null 2>&1; fi ); fi
 Applying patch 100-missing_include.patch
 patching file include/mcast.h
 patching file include/tcp.h
 patching file include/udp.h
 patching file include/bitops.h

 Now at patch 100-missing_include.patch
 touch "/Openwrt/trunk/build_dir/target-mips_34kc_musl-1.1.11/conntrack-
 tools-1.4.2/.quilt_checked"
 Applying patch 100-missing_include.patch
 patching file include/mcast.h
 patching file include/tcp.h
 patching file include/udp.h
 patching file include/bitops.h

 Now at patch 100-missing_include.patch
 /usr/bin/env: perl -w: No such file or directory
 Patch 100-missing_include.patch is unchanged
 mkdir -p ./patches
 }}}

 In CC15.05 no error is shown:
 {{{
 Now at patch 100-missing_include.patch
 Patch 100-missing_include.patch is unchanged
 }}}

 Reverting trunk quilt back to rev47069 removes the error also in trunk, so
 r47070 is the culprit:
 {{{
 Now at patch 100-missing_include.patch
 Patch 100-missing_include.patch is unchanged
 }}}


 STR steps:
 {{{
 svn update -r 47069
 make tools/quilt/install
 make package/conntrack-tools/{clean,refresh} V=s
 svn update -r 47070
 make tools/quilt/install
 make package/conntrack-tools/{clean,refresh} V=s
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/20802>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to