Re: AVR32 port - config.{sub,guess} bug filing
On Fri, Apr 24, 2009 at 3:37 PM, Paul Wise p...@debian.org wrote: Good point, how about this? Sent this patch upstream, will see what they say. -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: AVR32 port - config.{sub,guess} bug filing
On Fri, Apr 24, 2009 at 01:37:01PM +0800, Paul Wise wrote: cur_v=`echo $timestamp | sed s/-//g` for path in \ $HOME/.config/automake \ /usr/local/share/automake \ /usr/local/share/misc \ /usr/share/automake \ /usr/share/misc \ ; do if test -x $path/config.sub ; then v=`$path/config.sub --time-stamp | sed s/-//g` if test $v -gt $cur_v ; then $path/config.sub $* exit $? fi fi done Hmm, wouldn't it be better to look for the newest version instead of first one that's newer? The above would work on a buildd where there is nothing in $HOME or under /usr/local, but could break on user's machines if they have a script in say /usr/local/share/automake that's newer than what the package has, but still older than what would be needed to build correctly. Gabor -- - MTA SZTAKI Computer and Automation Research Institute Hungarian Academy of Sciences - -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: AVR32 port - config.{sub,guess} bug filing
On Fri, Apr 24, 2009 at 3:05 PM, Gabor Gombas gomb...@sztaki.hu wrote: Hmm, wouldn't it be better to look for the newest version instead of first one that's newer? The above would work on a buildd where there is nothing in $HOME or under /usr/local, but could break on user's machines if they have a script in say /usr/local/share/automake that's newer than what the package has, but still older than what would be needed to build correctly. Good point, how about this? cur_v=`echo $timestamp | sed s/-//g` for path in \ $HOME/.config/automake \ /usr/local/share/automake \ /usr/share/automake \ /usr/share/misc \ ; do if test -x $path/config.guess ; then v=`$path/config.guess --time-stamp | sed s/-//g` if test $v -gt $cur_v ; then cur_v=$v latest=$path fi fi done if test x$latest != x ; then case $# in 0) $latest/config.guess;; *) $latest/config.guess $@;; esac exit $? fi -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: AVR32 port - config.{sub,guess} bug filing
Hi, As some of you may be aware, myself and a few others are working towards an AVR32 port of Debian, which is now making good progress. One problem we've come across is since AVR32 is such a new architecture, a fair few packages have config.{sub,guess} files that are missing the architecture and hence fail to build. Since things are coming along nicely now, I feel it might be appropriate to start filing wishlist bugs for these, but since there are quite a large number of packages with this problem, it could easily be regarded as mass filing. So I thought I'd ask here first for people's thoughts comments on this matter. Thanks. I guess the proper solution is copying config.{sub,guess} from /usr/share/misc/ and removing them in clean. If that is the case, wouldn't the list of possibly buggy packages be [1]? Best, Michael [1] http://lintian.debian.org/tags/outdated-autotools-helper-file.html pgpq1GG7qv7ds.pgp Description: PGP signature
AVR32 port - config.{sub,guess} bug filing
Hi, As some of you may be aware, myself and a few others are working towards an AVR32 port of Debian, which is now making good progress. One problem we've come across is since AVR32 is such a new architecture, a fair few packages have config.{sub,guess} files that are missing the architecture and hence fail to build. Since things are coming along nicely now, I feel it might be appropriate to start filing wishlist bugs for these, but since there are quite a large number of packages with this problem, it could easily be regarded as mass filing. So I thought I'd ask here first for people's thoughts comments on this matter. Thanks. Regards, Bradley Smith -- Bradley Smith b...@brad-smith.co.uk Debian GNU/Linux Developer bradsm...@debian.org GPG: 0xC718D347 D201 7274 2FE1 A92A C45C EFAB 8F70 629A C718 D347 signature.asc Description: PGP signature
Re: AVR32 port - config.{sub,guess} bug filing
On Thu, 23 Apr 2009 12:41:52 +0200 Michael Tautschnig m...@debian.org wrote: I guess the proper solution is copying config.{sub,guess} from /usr/share/misc/ and removing them in clean. If that is the case, wouldn't the list of possibly buggy packages be [1]? That's certainly some of them yes, but lintian only seems to check for files from earlier than 2004, however AVR32 was only added on 6/6/2006, so there are certainly considerably more than those. Regards, Bradley Smith -- Bradley Smith b...@brad-smith.co.uk Debian GNU/Linux Developer bradsm...@debian.org GPG: 0xC718D347 D201 7274 2FE1 A92A C45C EFAB 8F70 629A C718 D347 signature.asc Description: PGP signature
Re: AVR32 port - config.{sub,guess} bug filing
Bradley Smith bradsm...@debian.org (23/04/2009): That's certainly some of them yes, but lintian only seems to check for files from earlier than 2004, however AVR32 was only added on 6/6/2006, so there are certainly considerably more than those. Seems like a valid reason to request bumping the date check in lintian. Mraw, KiBi. signature.asc Description: Digital signature
Re: AVR32 port - config.{sub,guess} bug filing
On Thu, Apr 23, 2009 at 12:41:52PM +0200, Michael Tautschnig m...@debian.org wrote: Hi, As some of you may be aware, myself and a few others are working towards an AVR32 port of Debian, which is now making good progress. One problem we've come across is since AVR32 is such a new architecture, a fair few packages have config.{sub,guess} files that are missing the architecture and hence fail to build. Since things are coming along nicely now, I feel it might be appropriate to start filing wishlist bugs for these, but since there are quite a large number of packages with this problem, it could easily be regarded as mass filing. So I thought I'd ask here first for people's thoughts comments on this matter. Thanks. I guess the proper solution is copying config.{sub,guess} from /usr/share/misc/ and removing them in clean. If that is the case, wouldn't the list of possibly buggy packages be [1]? Note that this list can hide some truth, such as packages depending on autotools-dev but either not using its files, not putting them in the proper place, or putting them in a place which is not proper anymore. The last two happened to me, though the packages are now fixed (one because there were several sets of config.{guess,sub} files used during build, and another because upstream moved the files) Mike -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: AVR32 port - config.{sub,guess} bug filing
On Thu, Apr 23, 2009 at 6:27 PM, Bradley Smith bradsm...@debian.org wrote: As some of you may be aware, myself and a few others are working towards an AVR32 port of Debian, which is now making good progress. One problem we've come across is since AVR32 is such a new architecture, a fair few packages have config.{sub,guess} files that are missing the architecture and hence fail to build. I'd like to see this problem go away once and for all. How about the scripts check for newer versions of themselves in the following paths and run those scripts instead of returning the information directly? Then the buildds for new architectures could simply install the required version of autotools-dev and be happy. /usr/share/automake/ /usr/local/share/automake/ ~/.automake/ Some non-FHS compliant paths could be added for platforms that need them. -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: AVR32 port - config.{sub,guess} bug filing
On Fri, Apr 24, 2009 at 11:22:24AM +0800, Paul Wise wrote: On Thu, Apr 23, 2009 at 6:27 PM, Bradley Smith bradsm...@debian.org wrote: As some of you may be aware, myself and a few others are working towards an AVR32 port of Debian, which is now making good progress. One problem we've come across is since AVR32 is such a new architecture, a fair few packages have config.{sub,guess} files that are missing the architecture and hence fail to build. I'd like to see this problem go away once and for all. How about the scripts check for newer versions of themselves in the following paths and run those scripts instead of returning the information directly? Then the buildds for new architectures could simply install the required version of autotools-dev and be happy. /usr/share/automake/ /usr/local/share/automake/ ~/.automake/ Some non-FHS compliant paths could be added for platforms that need them. It unfortunately wouldn't work for the same reason config.{guess,sub} updates don't work, and more. It would need to be incorporated upstream, and all debian sources using config.{guess,sub} should be updated to these newer versions. That sounds like something that's never going to happen. The best debian can do is enforce dpkg-buildpackage or some other dpkg binary involved in the source extraction or build startup to replace or hack the config.{guess,sub} files itself[1] before the build. Mike 1. I, for one, run this before configure: sed -i '2!b;/^#/ i\exec /usr/share/misc/'$$file' $$@' $$dir/$$file and this in clean: sed -i '2!b;/^exec / d' $$dir/$$file where dir iterates over the directories containing these files and file iterating over config.{sub,guess}. -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: AVR32 port - config.{sub,guess} bug filing
On Fri, Apr 24, 2009 at 1:18 PM, Mike Hommey m...@glandium.org wrote: It unfortunately wouldn't work for the same reason config.{guess,sub} updates don't work, and more. It would need to be incorporated upstream, and all debian sources using config.{guess,sub} should be updated to these newer versions. That sounds like something that's never going to happen. You don't think upstream would accept the patch? Once they do and the updates trickle down into new upstreams then this will become more and more of a non-issue. Obviously it will be a long time before that happens, probably many years. Here is what I plan to send upstream: cur_v=`echo $timestamp | sed s/-//g` for path in \ $HOME/.config/automake \ /usr/local/share/automake \ /usr/local/share/misc \ /usr/share/automake \ /usr/share/misc \ ; do if test -x $path/config.sub ; then v=`$path/config.sub --time-stamp | sed s/-//g` if test $v -gt $cur_v ; then $path/config.sub $* exit $? fi fi done The best debian can do is enforce dpkg-buildpackage or some other dpkg binary involved in the source extraction or build startup to replace or hack the config.{guess,sub} files itself[1] before the build. That was suggested on IRC the other night, sounds like a good solution as long as the buildd admins are notified so that they can file bugs. -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: AVR32 port - config.{sub,guess} bug filing
Paul Wise p...@debian.org writes: Here is what I plan to send upstream: cur_v=`echo $timestamp | sed s/-//g` for path in \ $HOME/.config/automake \ /usr/local/share/automake \ /usr/local/share/misc \ /usr/share/automake \ /usr/share/misc \ ; do if test -x $path/config.sub ; then v=`$path/config.sub --time-stamp | sed s/-//g` if test $v -gt $cur_v ; then $path/config.sub $* case $# in 0) $path/config.sub;; *) $path/config.sub $@;; esac instead. $* doesn't quote its arguments, and the above works around a portability problem with $@ (see the Autoconf manual). -- Russ Allbery (r...@debian.org) http://www.eyrie.org/~eagle/ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: AVR32 port - config.{sub,guess} bug filing
On Fri, Apr 24, 2009 at 1:42 PM, Russ Allbery r...@debian.org wrote: instead. $* doesn't quote its arguments, and the above works around a portability problem with $@ (see the Autoconf manual). Thanks, added. -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org