Re: [lfs-dev] Script to check package versions
William Harrington wrote: On May 14, 2013, at 11:27 PM, Bruce Dubbs wrote: I fixed that a couple of days ago. -- Bruce Is the script at http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files reflecting your changes or do you copy the script after changes? Not quite. I just put that out as an example of fetching via svn/ftp/http and some examples of using regex expressions. The changes are not great, but the edited diff below shows the relevant changes. Mostly regex additions/changes. -- Bruce --- public_html/lfs-latest-files.phps 2013-05-10 14:27:18.0 + +++ latest.php 2013-05-15 02:55:03.0 + @@ -11,14 +11,16 @@ $exceptions[ 'gmp' ] = UPDIR=/.*(gmp-\d[\d\.-]*\d).*/:DOWNDIR=; $regex = array(); -$regex[ 'bzip2' ] = /^.*current version is ([\d\.]+).*$/; -$regex[ 'expect' ] = /^.*Download expect([\d\.]+)\.tar.*$/; -$regex[ 'mpc'] = /^Version ([\d\.]+).*$/; -$regex[ 'mpfr' ] = /^mpfr-([\d\.]+)\.tar.*$/; -$regex[ 'tcl'] = /^.*Download tcl([\d\.]+)-src.*$/; -$regex[ 'tzdata' ] = /^.*tzdata([\d]+[a-z]).*$/; -$regex[ 'xz' ] = /^.*xz-([\d\.]*\d).*$/; -$regex[ 'zlib' ] = /^.*zlib ([\d\.]*\d).*$/; +$regex[ 'bzip2'] = /^.*current version is ([\d\.]+).*$/; +$regex[ 'expect' ] = /^.*Download expect([\d\.]+)\.tar.*$/; +$regex[ 'less' ] = /^.*current released version is less-(\d+).*$/; +$regex[ 'mpc' ] = /^Version ([\d\.]+).*$/; +$regex[ 'mpfr' ] = /^mpfr-([\d\.]+)\.tar.*$/; +$regex[ 'sysvinit' ] = /^.*sysvinit-([\d\.]+)dsf\.tar.*$/; +$regex[ 'tcl' ] = /^.*Download tcl([\d\.]+)-src.*$/; +$regex[ 'tzdata' ] = /^.*tzdata([\d]+[a-z]).*$/; +$regex[ 'xz' ] = /^.*xz-([\d\.]*\d).*$/; +$regex[ 'zlib' ] = /^.*zlib ([\d\.]*\d).*$/; function find_max( $lines, $regex_match, $regex_replace ) { @@ -202,7 +207,7 @@ foreach ( $lines as $l ) { if ( preg_match( /sperl/, $l ) ) continue; // Don't want this -$ver = preg_replace( /^.*$package-([\d\.-]*\d).*$/, $1, $l ); +$ver = preg_replace( /^.*perl-([\d\.]+\d)\.tar.*$/, $1, $l ); if ( $ver == $l ) continue; list( $s1, $s2, $rest ) = explode( ., $ver ); if ( $s2 % 2 == 1 ) continue; // Remove odd minor versions @@ -214,7 +219,7 @@ // Most packages are in the form $package-n.n.n // Occasionally there are dashes (e.g. 201-1) - $max = find_max( $lines, /$package/, /^.*$package-([\d\.-]*\d).*$/ ); + $max = find_max( $lines, /$package/, /^.*$package-([\d\.-]*\d)\.tar.*$/ ); return $max; } @@ -282,10 +288,13 @@ global $vers; global $dirs; $to = lfs-b...@linuxfromscratch.org; + $from= bdu...@linuxfromscratch.org; $subject = LFS Package Currency Check - $date GMT; + $headers = From: bdu...@anduin.linuxfromscratch.org; - $message = Package LFS Upstream Flag\n\n; + $message = Package LFS Upstream Flag\n\n; foreach ( $dirs as $pkg = $dir ) { @@ -297,13 +306,14 @@ // Pad for output $pad = ; $p = substr( $pkg . $pad, 0, 15 ); - $l = substr( $vers[ $pkg ] . $pad, 0, 7 ); + $l = substr( $vers[ $pkg ] . $pad, 0, 8 ); $c = substr( $v. $pad, 0, 10 ); $message .= $p $l $c $flag\n; } -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
On May 15, 2013, at 12:12 PM, Bruce Dubbs wrote: Not quite. I just put that out as an example of fetching via svn/ftp/http and some examples of using regex expressions. The changes are not great, but the edited diff below shows the relevant changes. Mostly regex additions/changes. Excellent. Thanks for the info. I'm planning on adding checks for my current server build for packages I have installed. The script will give me a great base to start from. I decided to increase my apache/php/mysql knowledge and created databases for LFS or CLFS builds and I have the package name, version, configure options, and notes (I use for the installation instructions as well). I have it to where I can edit add or delete entries. As I update versions I update the configure and notes if required. So each build I have a database and build order using mysql. A bit overkill, but it is a good project! There are lots of good things that are shared among the LFS community that others can use. Sincerely, WIlliam Harrington-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
William Harrington wrote: On May 15, 2013, at 12:12 PM, Bruce Dubbs wrote: Not quite. I just put that out as an example of fetching via svn/ftp/http and some examples of using regex expressions. The changes are not great, but the edited diff below shows the relevant changes. Mostly regex additions/changes. Excellent. Thanks for the info. I'm planning on adding checks for my current server build for packages I have installed. The script will give me a great base to start from. I decided to increase my apache/php/mysql knowledge and created databases for LFS or CLFS builds and I have the package name, version, configure options, and notes (I use for the installation instructions as well). I have it to where I can edit add or delete entries. As I update versions I update the configure and notes if required. So each build I have a database and build order using mysql. A bit overkill, but it is a good project! Yes, I 'd say it was a bit of overkill, but if it gives you some DB experience then it's good. You might want to like into https://mariadb.org/. mysql is being impacted by Oracle in some not-helpful ways. Personally, I have some simple bash scripts that log each package as it's built in a simple file. E.g: $ head packages-SVN-20121218.log Tue Dec 18 21:28:30 GMT 2012 /usr/src/bc/bc-1.06.95.tar.bz2 Tue Dec 18 21:30:01 GMT 2012 /usr/src/lsb-release/lsb-release-1.4.tar.gz Tue Dec 18 21:41:49 GMT 2012 /usr/src/sudo/sudo-1.8.6p3.tar.gz Tue Dec 18 21:46:39 GMT 2012 /usr/src/openssl/openssl-1.0.1c.tar.gz Tue Dec 18 21:48:28 GMT 2012 /usr/src/openssh/openssh-6.1p1.tar.gz Wed Dec 19 00:09:11 GMT 2012 /usr/src/alsa/alsa-lib/alsa-lib-1.0.26.tar.bz2 Wed Dec 19 00:16:23 GMT 2012 /usr/src/alsa/alsa-utils/alsa-utils-1.0.26.tar.bz2 Wed Dec 19 00:49:10 GMT 2012 /usr/src/cdparanoia/cdparanoia-III-10.2.src.tgz Wed Dec 19 04:08:34 GMT 2012 /usr/src/which/which-2.20.tar.gz Wed Dec 19 04:26:50 GMT 2012 /usr/src/yasm/yasm-1.2.0.tar.gz All my sources are in /usr/src and I just create a new Makefile for each revision for example I have: bc-1.06.log bc-1.06.95.log bc-1.06.95.tar.bz2 bc-1.06.log bc-1.06.tar.gz make-bc-1.06 make-bc-1.06.95 If I want to build a new version, I copy make-bc-1.06.95 make-bc-1.xx.xx and edit the contents, most of which is boilerplate. Usually only a few commands or a version need to be updated: $ cat make-bc-1.06.95 #!/bin/bash source /usr/src/stats ### # Installing bc DIR=`pwd` PROGRAM=bc-1.06.95 LOG=$DIR/$PROGRAM.log TITLE=$PROGRAM TIMEFORMAT=$TIMEFMT $TITLE BUILDDIR=/tmp/bc rm -f $LOG rm -rf $BUILDDIR mkdir $BUILDDIR cd $BUILDDIR before=`df -k /tmp | grep / | sed -e s/ \{2,\}/ /g | cut -d' ' -f3` tar -xf $DIR/$PROGRAM.tar.?z* || exit 1 cd $PROGRAM { time \ { echo Making $TITLE date ./configure --prefix=/usr --with-readline make #echo quit | ./bc/bc -l Test/checklib.b $SUDO make install } } 21 | tee -a $LOG if [ $PIPESTATUS -ne 0 ]; then exit 1; fi; stats $LOG $DIR/$PROGRAM.tar.?z* $before exit 0 I'm just mentioning some alternatives here. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
On May 15, 2013, at 2:56 PM, Bruce Dubbs wrote: You might want to like into https://mariadb.org/. mysql is being impacted by Oracle in some not-helpful ways. I moved from Solaris to linux with my sun machines when oracle took over as they squashed free support for required patches. Was looking into MariaDB long ago, but I could never get it to build past a certain point cause of an error based in additions MariaDB with their sql_logger: /sources/blfs/mariadb-5.5.30/plugin/sql_errlog/sql_logger.cc:25:8: error: ‘PSI_mutex_key’ does not name a type /sources/blfs/mariadb-5.5.30/plugin/sql_errlog/sql_logger.cc:26:8: error: ‘PSI_mutex_info’ does not name a type /sources/blfs/mariadb-5.5.30/plugin/sql_errlog/sql_logger.cc: In function ‘void init_logger_mutexes()’: /sources/blfs/mariadb-5.5.30/plugin/sql_errlog/sql_logger.cc:192:17: error: ‘PSI’ has no member named ‘register_mutex’ /sources/blfs/mariadb-5.5.30/plugin/sql_errlog/sql_logger.cc:192:46: error: ‘mutex_list’ was not declared in this scope Otherwise I'd use it. It's been that way with each release. I'm tired of debugging it. Sincerely, William Harrington-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
On 05/15/2013 03:56 PM, Bruce Dubbs wrote: William Harrington wrote: On May 15, 2013, at 12:12 PM, Bruce Dubbs wrote: Not quite. I just put that out as an example of fetching via svn/ftp/http and some examples of using regex expressions. The changes are not great, but the edited diff below shows the relevant changes. Mostly regex additions/changes. Excellent. Thanks for the info. I'm planning on adding checks for my current server build for packages I have installed. The script will give me a great base to start from. I decided to increase my apache/php/mysql knowledge and created databases for LFS or CLFS builds and I have the package name, version, configure options, and notes (I use for the installation instructions as well). I have it to where I can edit add or delete entries. As I update versions I update the configure and notes if required. So each build I have a database and build order using mysql. A bit overkill, but it is a good project! Yes, I 'd say it was a bit of overkill, but if it gives you some DB experience then it's good. You might want to like into https://mariadb.org/. mysql is being impacted by Oracle in some not-helpful ways. Personally, I have some simple bash scripts that log each package as it's built in a simple file. E.g: $ head packages-SVN-20121218.log Tue Dec 18 21:28:30 GMT 2012 /usr/src/bc/bc-1.06.95.tar.bz2 Tue Dec 18 21:30:01 GMT 2012 /usr/src/lsb-release/lsb-release-1.4.tar.gz Tue Dec 18 21:41:49 GMT 2012 /usr/src/sudo/sudo-1.8.6p3.tar.gz Tue Dec 18 21:46:39 GMT 2012 /usr/src/openssl/openssl-1.0.1c.tar.gz Tue Dec 18 21:48:28 GMT 2012 /usr/src/openssh/openssh-6.1p1.tar.gz Wed Dec 19 00:09:11 GMT 2012 /usr/src/alsa/alsa-lib/alsa-lib-1.0.26.tar.bz2 Wed Dec 19 00:16:23 GMT 2012 /usr/src/alsa/alsa-utils/alsa-utils-1.0.26.tar.bz2 Wed Dec 19 00:49:10 GMT 2012 /usr/src/cdparanoia/cdparanoia-III-10.2.src.tgz Wed Dec 19 04:08:34 GMT 2012 /usr/src/which/which-2.20.tar.gz Wed Dec 19 04:26:50 GMT 2012 /usr/src/yasm/yasm-1.2.0.tar.gz All my sources are in /usr/src and I just create a new Makefile for each revision for example I have: bc-1.06.log bc-1.06.95.log bc-1.06.95.tar.bz2 bc-1.06.log bc-1.06.tar.gz make-bc-1.06 make-bc-1.06.95 If I want to build a new version, I copy make-bc-1.06.95 make-bc-1.xx.xx and edit the contents, most of which is boilerplate. Usually only a few commands or a version need to be updated: $ cat make-bc-1.06.95 #!/bin/bash source /usr/src/stats ### # Installing bc DIR=`pwd` PROGRAM=bc-1.06.95 LOG=$DIR/$PROGRAM.log TITLE=$PROGRAM TIMEFORMAT=$TIMEFMT $TITLE BUILDDIR=/tmp/bc rm -f $LOG rm -rf $BUILDDIR mkdir $BUILDDIR cd $BUILDDIR before=`df -k /tmp | grep / | sed -e s/ \{2,\}/ /g | cut -d' ' -f3` tar -xf $DIR/$PROGRAM.tar.?z* || exit 1 cd $PROGRAM { time \ { echo Making $TITLE date ./configure --prefix=/usr --with-readline make #echo quit | ./bc/bc -l Test/checklib.b $SUDO make install } } 21 | tee -a $LOG You can change } 21 | tee -a $LOG to } | tee -a $LOG the | does the same thing as 21 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
Baho Utot wrote: You can change } 21 | tee -a $LOG to } | tee -a $LOG the | does the same thing as 21 Perhaps, but the construct I use is clear to me. There is more than one way to do things. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
On May 10, 2013, at 9:10 AM, Bruce Dubbs wrote: Thanks William. -- Bruce Hello, I do notice one issue that has just cropped up with kbd. altlinux.org/pub/people/legion/kbd has: kbd-1.15.tar.gz kbd-2.0.0wip-20130514.tar.gz (added today am.) The script states kbd-2.0.0 is the latest now, hehe. Sincerely, William Harrington-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
William Harrington wrote: On May 10, 2013, at 9:10 AM, Bruce Dubbs wrote: Thanks William. -- Bruce Hello, I do notice one issue that has just cropped up with kbd. altlinux.org/pub/people/legion/kbd has: kbd-1.15.tar.gz kbd-2.0.0wip-20130514.tar.gz (added today am.) The script states kbd-2.0.0 is the latest now, hehe. I was just going to look at that. It looks like I'll need to add some special cases. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
On May 14, 2013, at 9:47 PM, Bruce Dubbs wrote: I was just going to look at that. It looks like I'll need to add some special cases. I also noticed that it picked up perl 5.18 which is in RC3 as far as I know. Hehe. I saw that in the script and was all excited for perl 5.18.0! Sincerely, William Harrington-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
I fixed that a couple of days ago. -- Bruce On May 14, 2013 11:25 PM, William Harrington kb0...@berzerkula.org wrote: On May 14, 2013, at 9:47 PM, Bruce Dubbs wrote: I was just going to look at that. It looks like I'll need to add some special cases. I also noticed that it picked up perl 5.18 which is in RC3 as far as I know. Hehe. I saw that in the script and was all excited for perl 5.18.0! Sincerely, William Harrington -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
On May 14, 2013, at 11:27 PM, Bruce Dubbs wrote: I fixed that a couple of days ago. -- Bruce Is the script at http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files reflecting your changes or do you copy the script after changes? Sincerely, William Harrington-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
On May 9, 2013, at 10:44 PM, Bruce Dubbs wrote: You do need to change the mail command. Just comment it out and uncomment the echo command just before it. I copied and pasted the command from a browser and all works. I did change the mail address for the output destination as I don' think the book list wants a load of email from everyone using the script and being successful. I'm using php 5.4.12 with the http extension enabled. Very nice script. Sincerely, William Harrington-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
William Harrington wrote: On May 9, 2013, at 10:44 PM, Bruce Dubbs wrote: You do need to change the mail command. Just comment it out and uncomment the echo command just before it. I copied and pasted the command from a browser and all works. I did change the mail address for the output destination as I don' think the book list wants a load of email from everyone using the script and being successful. I'm using php 5.4.12 with the http extension enabled. Very nice script. Thanks William. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/10 William Harrington kb0...@berzerkula.org: On May 9, 2013, at 10:44 PM, Bruce Dubbs wrote: You do need to change the mail command. Just comment it out and uncomment the echo command just before it. I copied and pasted the command from a browser and all works. I did change the mail address for the output destination as I don' think the book list wants a load of email from everyone using the script and being successful. I'm using php 5.4.12 with the http extension enabled. Very nice script. Sincerely, William Harrington OK, I will try to recompile my php according to blfs book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/9 xinglp xin...@gmail.com 2013/5/8 Armin K. kre...@email.com On 05/08/2013 12:24 PM, purnomo hadi wrote: link 404 not found Please do not top post. File is here: http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files.phps Would you please provide a zipped .php file of this script. The phps is not formatted well. All tabs were changed into blanks. And I got these errors with PHP 5.4.12 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 188 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 sh: -t: command not found -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
xinglp wrote: 2013/5/8 Armin K. kre...@email.com File is here: http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files.phps Would you please provide a zipped .php file of this script. The phps is not formatted well. All tabs were changed into blanks. I abhor tabs in code. The file is less than 10K bytes. Why do you want it compressed? To run it, you only need to copy the .phps file to your local system and rename the extention to .php. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
xinglp wrote: And I got these errors with PHP 5.4.12 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 188 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 That line is foreach ( $lines as $line ). That would indicate that the $lines array is null. That indicates that the ftp or http get command didn't work. Add a line echo $dirpath . \n; at the top of the get_packages() function to see what files are not being retrieved. I somehow suspect the sourceforge files, but it could be something else. sh: -t: command not found I have no idea where this came from. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/9 Bruce Dubbs bruce.du...@gmail.com xinglp wrote: And I got these errors with PHP 5.4.12 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 188 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 That line is foreach ( $lines as $line ). That would indicate that the $lines array is null. That indicates that the ftp or http get command didn't work. Add a line echo $dirpath . \n; at the top of the get_packages() function to see what files are not being retrieved. I somehow suspect the sourceforge files, but it could be something else. sh: -t: command not found I have no idea where this came from. The the output is below: http://ftp.gnu.org/gnu/autoconf http://ftp.gnu.org/gnu/automake http://ftp.gnu.org/gnu/bash http://alpha.gnu.org/gnu/bc http://ftp.gnu.org/gnu/binutils http://ftp.gnu.org/gnu/bison http://www.bzip.org/1.0.6 http://sourceforge.net/projects/check/files/check/0.9.10 http://ftp.gnu.org/gnu/coreutils http://ftp.gnu.org/gnu/dejagnu http://ftp.gnu.org/gnu/diffutils http://prdownloads.sourceforge.net/e2fsprogs http://prdownloads.sourceforge.net/expect ftp://ftp.astron.com/pub/file PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://ftp.gnu.org/gnu/findutils http://prdownloads.sourceforge.net/flex http://ftp.gnu.org/gnu/gawk http://ftp.gnu.org/gnu/gcc/gcc-4.8.0 http://ftp.gnu.org/gnu/gdbm http://ftp.gnu.org/gnu/gettext http://ftp.gnu.org/gnu/glibc ftp://ftp.gmplib.org/pub/gmp-5.1.1 PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://ftp.gnu.org/gnu/grep http://ftp.gnu.org/gnu/groff http://ftp.gnu.org/gnu/grub http://ftp.gnu.org/gnu/gzip http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/conglomeration//iana-etc http://ftp.gnu.org/gnu/inetutils http://www.kernel.org/pub/linux/utils/net/iproute2 http://ftp.altlinux.org/pub/people/legion/kbd http://www.kernel.org/pub/linux/utils/kernel/kmod http://www.greenwoodsoftware.com/less http://www.linuxfromscratch.org/lfs/downloads/development http://download.savannah.gnu.org/releases/libpipeline http://ftp.gnu.org/gnu/libtool http://www.kernel.org/pub/linux/kernel/v3.x http://ftp.gnu.org/gnu/m4 http://ftp.gnu.org/gnu/make http://download.savannah.gnu.org/releases/man-db http://www.kernel.org/pub/linux/docs/man-pages http://www.multiprecision.org/mpc/download http://www.mpfr.org/mpfr-3.1.2 http://ftp.gnu.org/gnu/ncurses http://ftp.gnu.org/gnu/patch http://www.cpan.org/src/5.0 http://pkgconfig.freedesktop.org/releases http://sourceforge.net/projects/procps-ng/files/Production http://prdownloads.sourceforge.net/psmisc http://ftp.gnu.org/gnu/readline http://ftp.gnu.org/gnu/sed http://pkg-shadow.alioth.debian.org/releases http://www.infodrom.org/projects/sysklogd/download http://download.savannah.gnu.org/releases/sysvinit http://ftp.gnu.org/gnu/tar http://prdownloads.sourceforge.net/tcl http://www.iana.org/time-zones/repository/releases http://ftp.gnu.org/gnu/texinfo http://www.freedesktop.org/software/systemd http://anduin.linuxfromscratch.org/sources/other http://www.kernel.org/pub/linux/utils/util-linux/v2.23 ftp://ftp.vim.org/pub/vim/unix PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://tukaani.org/xz http://www.zlib.net sh: -t: command not found -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/9 Bruce Dubbs bruce.du...@gmail.com xinglp wrote: 2013/5/8 Armin K. kre...@email.com File is here: http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files.phps Would you please provide a zipped .php file of this script. The phps is not formatted well. All tabs were changed into blanks. I abhor tabs in code. The file is less than 10K bytes. Why do you want it compressed? To run it, you only need to copy the .phps file to your local system and rename the extention to .php. I think the original php file may be different from the copied .phps to local system. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
xinglp wrote: 2013/5/9 Bruce Dubbs bruce.du...@gmail.com xinglp wrote: 2013/5/8 Armin K. kre...@email.com File is here: phpshttp://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files. Would you please provide a zipped .php file of this script. The phps is not formatted well. All tabs were changed into blanks. I abhor tabs in code. The file is less than 10K bytes. Why do you want it compressed? To run it, you only need to copy the .phps file to your local system and rename the extention to .php. I think the original php file may be different from the copied .phps to local system. The script I'm running is slightly different from the .phps file on anduin, but there are no tabs in it. I did try a wget of the file and apache changes it for color, etc. A cut/paste works fine though. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
xinglp wrote: 2013/5/9 Bruce Dubbs bruce.du...@gmail.com xinglp wrote: And I got these errors with PHP 5.4.12 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 188 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 That line is foreach ( $lines as $line ). That would indicate that the $lines array is null. That indicates that the ftp or http get command didn't work. Add a line echo $dirpath . \n; at the top of the get_packages() function to see what files are not being retrieved. I somehow suspect the sourceforge files, but it could be something else. sh: -t: command not found I have no idea where this came from. The the output is below: http://ftp.gnu.org/gnu/autoconf http://ftp.gnu.org/gnu/automake http://ftp.gnu.org/gnu/bash http://alpha.gnu.org/gnu/bc http://ftp.gnu.org/gnu/binutils http://ftp.gnu.org/gnu/bison http://www.bzip.org/1.0.6 http://sourceforge.net/projects/check/files/check/0.9.10 http://ftp.gnu.org/gnu/coreutils http://ftp.gnu.org/gnu/dejagnu http://ftp.gnu.org/gnu/diffutils http://prdownloads.sourceforge.net/e2fsprogs http://prdownloads.sourceforge.net/expect ftp://ftp.astron.com/pub/file PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://ftp.gnu.org/gnu/findutils http://prdownloads.sourceforge.net/flex http://ftp.gnu.org/gnu/gawk http://ftp.gnu.org/gnu/gcc/gcc-4.8.0 http://ftp.gnu.org/gnu/gdbm http://ftp.gnu.org/gnu/gettext http://ftp.gnu.org/gnu/glibc ftp://ftp.gmplib.org/pub/gmp-5.1.1 PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://ftp.gnu.org/gnu/grep http://ftp.gnu.org/gnu/groff http://ftp.gnu.org/gnu/grub http://ftp.gnu.org/gnu/gzip http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/conglomeration//iana-etc http://ftp.gnu.org/gnu/inetutils http://www.kernel.org/pub/linux/utils/net/iproute2 http://ftp.altlinux.org/pub/people/legion/kbd http://www.kernel.org/pub/linux/utils/kernel/kmod http://www.greenwoodsoftware.com/less http://www.linuxfromscratch.org/lfs/downloads/development http://download.savannah.gnu.org/releases/libpipeline http://ftp.gnu.org/gnu/libtool http://www.kernel.org/pub/linux/kernel/v3.x http://ftp.gnu.org/gnu/m4 http://ftp.gnu.org/gnu/make http://download.savannah.gnu.org/releases/man-db http://www.kernel.org/pub/linux/docs/man-pages http://www.multiprecision.org/mpc/download http://www.mpfr.org/mpfr-3.1.2 http://ftp.gnu.org/gnu/ncurses http://ftp.gnu.org/gnu/patch http://www.cpan.org/src/5.0 http://pkgconfig.freedesktop.org/releases http://sourceforge.net/projects/procps-ng/files/Production http://prdownloads.sourceforge.net/psmisc http://ftp.gnu.org/gnu/readline http://ftp.gnu.org/gnu/sed http://pkg-shadow.alioth.debian.org/releases http://www.infodrom.org/projects/sysklogd/download http://download.savannah.gnu.org/releases/sysvinit http://ftp.gnu.org/gnu/tar http://prdownloads.sourceforge.net/tcl http://www.iana.org/time-zones/repository/releases http://ftp.gnu.org/gnu/texinfo http://www.freedesktop.org/software/systemd http://anduin.linuxfromscratch.org/sources/other http://www.kernel.org/pub/linux/utils/util-linux/v2.23 ftp://ftp.vim.org/pub/vim/unix PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://tukaani.org/xz http://www.zlib.net sh: -t: command not found All the files that have an error are ftp. For some reason the ftp fetch part of the script is not working for you. The problem is the line $lines = ftp_rawlist ($conn, $path); is not returning anything. I still don't know where 'sh: -t' came from. You do need to change the mail command. Just comment it out and uncomment the echo command just before it. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
link 404 not found 2013/5/7 Bruce Dubbs bruce.du...@gmail.com I've completed my script to check package versions and set it up to run on anduin at 01:50 GMT daily and email the results to lfs-book. The first iteration is now there run at 2013-05-06 21:07:36 GMT. The source for the script is at http://anduin/~bdubbs/lfs-latest-files.phps. It takes about 30 seconds to run in order to extract the book's packages from svn and check all the upstream sites. It was a little tricky with all the different directories and file name styles. I'm not sure how fragile the script is because it certainly depends on upstream not making changes. I'm pretty confident that the gnu packages will be OK, but I'm not that confident about sourceforge sites or some of the others. The script is php, but it needs version 2.4 or later and the pecl_http extension. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
On 05/08/2013 12:24 PM, purnomo hadi wrote: link 404 not found Please do not top post. File is here: http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files.phps -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/8 Armin K. kre...@email.com On 05/08/2013 12:24 PM, purnomo hadi wrote: link 404 not found Please do not top post. File is here: http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files.phps Would you please provide a zipped .php file of this script. The phps is not formatted well. All tabs were changed into blanks. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page