<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9920</bug_id>
          
          <creation_ts>2016-07-12 19:41:04 +0000</creation_ts>
          <short_desc>opkg-utils: disallow package names that are not all lower case</short_desc>
          <delta_ts>2018-11-16 22:31:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.3.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.4.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro del Castillo">alejandro.delcastillo</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63865</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-07-12 19:41:04 +0000</bug_when>
    <thetext>OpenWRT carries a patch to add case insensitive flag for pattern matching (050-add-case-insensitive-flag.patch). However, case insensitive pattern matching can be dangerous since opkg let&apos;s you have 2 packages with the same name with different capitalization. A better solution would be to follow debian policy and only allow lower case pacakges.

From the Debian policy manual:

&quot;Package names (both source and binary, see Package, Section 5.6.7) must consist  only of lower case letters (a-z), digits (0-9), plus (+) and minus (-) signs, and periods (.). They must be at least two characters long and must start with an alphanumeric character.&quot;

opkg-build and opkg-make-index need to be fixed to follow the policy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82264</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2018-11-16 22:31:08 +0000</bug_when>
    <thetext>opkg-build already checks that package names only have [a-z0-9.+-] values. It doesn&apos;t enforce a minimum of 2 characters for package names, but that&apos;s OK since one letter package names are used on the opkg ATS (and other than a convenience, I don&apos;t know why that restriction is in place).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>