Changeset 24f3b5d


Ignore:
Timestamp:
03/20/2024 11:30:13 PM (3 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib
Children:
9891f25
Parents:
2affd83 (diff), 23db3ee (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Automatic merge of trunk into multilib

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter03/packages.xml

    r2affd83 r24f3b5d  
    832832          <para>
    833833            The version of vim changes daily. To get the latest version, go to
    834             <ulink url="https://github.com/vim/vim/releases">
    835             https://github.com/vim/vim/tags</ulink>.
     834            <ulink url="https://github.com/vim/vim/tags"/>.
    836835          </para>
    837836        </note>
  • lfs-latest-git.php

    r2affd83 r24f3b5d  
    7878
    7979  if ( preg_match( "/sourceforge/", $url ) ||
     80       preg_match( "/python/",      $url ) ||
    8081       preg_match( "/psmisc/",      $url ) )
    8182  {
     
    135136if ( $package == "libffi"     ) $dirpath = github("libffi/libffi");
    136137if ( $package == "libxcrypt"  ) $dirpath = github("besser82/libxcrypt");
     138if ( $package == "lz"         ) $dirpath = github("lz4/lz4");
    137139if ( $package == "meson"      ) $dirpath = github("mesonbuild/meson");
    138140if ( $package == "mpc"        ) $dirpath = "https://ftp.gnu.org/gnu/mpc";
     
    161163  {
    162164    echo "ftp should not occur\n";
    163   /*
    164     $dirpath  = substr( $dirpath, 6 );           // Remove ftp://
    165     $dirpath  = rtrim ( $dirpath, "/" );         // Trim any trailing slash
    166     $position = strpos( $dirpath, "/" );         // Divide at first slash
    167     $server   = substr( $dirpath, 0, $position );
    168     $path     = substr( $dirpath, $position );
    169 
    170     $conn = ftp_connect( $server );
    171     ftp_login( $conn, "anonymous", "" );
    172 
    173     // See if we need special handling
    174     if ( isset( $exceptions[ $package ] ) )
    175     {
    176        $specials = explode( ":", $exceptions[ $package ] );
    177 
    178        foreach ( $specials as $i )
    179        {
    180           list( $op, $regexp ) = explode( "=", $i );
    181 
    182           switch ($op)
    183           {
    184             case "UPDIR":
    185               // Remove last dir from $path
    186               $position = strrpos( $path, "/" );
    187               $path = substr( $path, 0, $position );
    188 
    189               // Get dir listing
    190               $lines = ftp_rawlist ($conn, $path);
    191               $max   = find_max( $lines, $regexp, $regexp );
    192               break;
    193 
    194             case "DOWNDIR":
    195               // Append found directory
    196               $path .= "/$max";
    197               break;
    198 
    199             default:
    200               echo "Error in specials array for $package\n";
    201               return -5;
    202               break;
    203           }
    204        }
    205     }
    206 
    207     $lines = ftp_rawlist ($conn, $path);
    208     ftp_close( $conn );
    209 */
    210165  }
    211166  else // http(s)
     
    304259
    305260  if ( $package == "psmisc" )
    306      return find_max( $lines, "/v\d/", "/^.*v([\d\.]+).tar.*$/" );
     261     return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" );
    307262
    308263  if ( $package == "grub" )
     
    312267     return find_max( $lines, "/Jinja/", "/^.*Jinja2 ([\d\.]+).*$/" );
    313268
     269  if ( $package == "lz" )
     270     return find_max( $lines, "/name.:/", '/^.*LZ4 v([\d\.]+)".*$/' );
     271
    314272  if ( $package == "openssl" )
    315273     return find_max( $lines, "/openssl/", "/^.*openssl-([\d\.p]*\d.?).tar.*$/" );
    316274
    317275  if ( $package == "Python" )
    318      return find_max( $lines, "/Python 3/", "/^.*Python (3[\d\]*\d) .*$/" );
     276     return find_max( $lines, "/Python 3/", "/^.*Python (3[\d\.]*\d) .*$/" );
    319277
    320278  if ( $package == "vim" )
     
    336294   // Fetech from git and get wget-list
    337295   $current = array();
    338    #$lfssvn = "svn://svn.linuxfromscratch.org/LFS/trunk";
    339296   $lfsgit = "https://git.linuxfromscratch.org/lfs.git";
    340297
     
    368325      $file        = rtrim( $file );
    369326      $pkg_pattern = "/(\D*).*/";
    370       //$pattern     = "/\D*(\d.*\d)\D*/";
    371327      $pattern     = "/\D*(\d.*\d)\D*/";
    372328
Note: See TracChangeset for help on using the changeset viewer.