Thanks for clearing that up, EE. I've attached the latest version of qtp-whatami, which will also be included in the next QT-plus release. It uses the fdr60 parameter for FC7,8 systems, so they might work better. Users should understand that this is the best we can do with the 1.3 branch, and FC7+ will not be supported until 1.4 is released.
Thanks again to EE for all his work on this. Erik A. Espinoza wrote: > As I've mentioned before in the list, Fedora fixes are not coming. I'm > spending my time working on the QT 1.4 branch right now. The current > branch will be maintained as is + upstream fixes for now. > > The Fedora + QT users is such a low amount of users, it's really not > worth it especially since FC6 compiles FC7/8 properly in most cases. > If someone wants to step up and rewrite the current spec files (and > send me diffs) then I will go ahead and release them. > > I can't do it all myself. > > EE > > On Sat, Mar 1, 2008 at 6:18 AM, Thomas M. Jaeger <[EMAIL PROTECTED]> wrote: >> Erik; >> >> Below is the correspondence from the qmailtoaster list for a Fedora fix that >> I will test early next week (you probably already have this info but...). >> Erik "Shubes" has said that you would know the status of the packages online >> and if they are upgraded for use on Fedora 7,8 distros. Are they or is >> there a way to prepare them for use with Fedora 7,8? (I am running Fedora 7 >> x86.) >> >> >> >> Thanks; >> >> >> Thomas M. Jaeger >> Computer Technician, A.A.S. >> [EMAIL PROTECTED] >> [EMAIL PROTECTED] >> >> >> -----Original Message----- >> From: Eric "Shubes" [mailto:[EMAIL PROTECTED] >> Sent: Friday, February 29, 2008 11:48 PM >> To: qmailtoaster-list@qmailtoaster.com >> Subject: Re: FW: FW: [qmailtoaster] qmailtoaster-plus-0.2.14-1.3.17 is out! >> >> Thomas M. Jaeger wrote: >> > # cat /etc/fedora-release shows: >> > >> > Fedora release 7 (Moonshine) >> > >> > The /usr/sbin/qtp-whatami file shows fdr70 (and fdr7064) in the lsiting. >> I >> > also made sure to use /usr/sbin/qtp-whatami to be sure that there are no >> > redundant older copies somewhere that are being accessed. I still get the >> > same "sorry" message. Could it be that the "Check Fedora" section of the >> > script is looking for "Core" instead of just Fedora (as Core was dropped >> > from the distro since the release of 7)? >> >> That's precisely the problem. They dropped "Core" from the name and the >> script doesn't find the release number as a result. >> >> > This was the issue that Natalio was addressing with the alteration of the >> > qtp-whatami script. The changes made in that script where the addition of >> > fdr70 to the distro list at the beginning, the removal of word 2 in the >> > check fedora section and OSVER=$word3 relnum=${word3%.*}: >> >> That's the extent of the fix for FC7/8, but it breaks the script for earlier >> versions. Here's a fixed version of that routine: >> ################################################################### >> ## check fedora >> # >> b23_fedora(){ >> >> BUILD_DIR=/usr/src/redhat >> >> if [ "$word1" == "Fedora" ]; then >> if [ "$word2" == "release" ]; then >> DISTRO="$word1" >> OSVER=$word3 >> relnum=${word3%.*} >> case $relnum in >> 8 | 7 ) >> BUILD_DIST=fdr${relnum}0 >> q1_distro_64 >> esac >> elif [ "$word2" == "Core" ]; then >> DISTRO="$word1 $word2" >> OSVER=$word4 >> relnum=${word4%.*} >> case $relnum in >> 6 | 5 | 4 ) >> BUILD_DIST=fdr${relnum}0 >> q1_distro_64 >> if [ "$relnum" == 5 ]; then >> case $QTARCH in >> i386 | $ARCH64 ) >> tested=y >> ;; >> esac >> fi >> ;; >> 3 | 2 | 1 ) >> BUILD_DIST=fdr${relnum}0 >> ;; >> esac >> fi >> fi >> } >> >> Will you edit your script with this version and give it a try? If it works >> then I'll check it in for the next QTP release. >> >> > I have not tested this alteration yet as I fear that upgrading with the >> > qtp-newmodel might run into issues. >> >> You need to be sure that the packages on the web site have been upgraded for >> versions 7,8 before it'll work for sure. I don't know their status, but Erik >> Espinoza would know for sure (since he's the one who does all that magic). >> >> If the packages haven't been configured for the version you're running, >> they'll be built with the default settings, which probably won't work for >> you. If you want to fake it out, the easiest way is to (temporarily) change >> the /etc/fedora-release file to correspond to the most recent toaster >> version. (don't forget to change it back later!) >> >> > Sory for the rambling, the answer to your question is at the top... >> >> NP >> >> > Thank you, again, >> > >> > >> > Thomas M. Jaeger >> > Computer Technician, A.A.S. >> > [EMAIL PROTECTED] >> > [EMAIL PROTECTED] >> > >> > -----Original Message----- >> > From: Eric "Shubes" [mailto:[EMAIL PROTECTED] >> > Sent: Friday, February 29, 2008 1:45 PM >> > To: qmailtoaster-list@qmailtoaster.com >> > Subject: Re: FW: FW: [qmailtoaster] qmailtoaster-plus-0.2.14-1.3.17 is >> out! >> > >> > That version of qtp-whatami should recognize FC7 (keyword: should). >> > >> > What does >> > # cat /etc/fedora-release >> > tell you? >> > >> > Thomas M. Jaeger wrote: >> >> I was on vacation and away for a while. I did the qmailtoaster-plus >> >> update via yum (.noarch.0.3.0-1.4.0) and still get "Fedora release 7 >> >> (Moonshine) is not supported. Sorry" when using the qtp-newmodel >> >> command. The qtp-menu also does not run and gives the message, "Your >> >> distro is not supported, exiting." Should I uninstall the >> >> qmailtoaster-plus, remove the repository from yum and do a manual >> >> install of QTP? Some of the "qtp-" commands work but (obviously) not >> >> all. Regardless, I understand that Fedora is not the supported OS (or >> >> OS of choice) and I could go about this all manually. Also, I have not >> >> yet had the chance to try Natalio's qtp-whatami changes. I will give >> >> that a try once the storms have passed through New England over the next >> >> two days. (I could try it remotely but fear the possible errors.) >> >> >> >> >> >> >> >> Thanks, again, >> >> >> >> >> >> Thomas M. Jaeger >> >> >> >> Computer Technician, A.A.S. >> >> >> >> [EMAIL PROTECTED] >> >> >> >> [EMAIL PROTECTED] >> >> >> >> >> > >> -- -Eric 'shubes'
#!/bin/sh # # Copyright (C) 2006-2008 Eric Shubert # Eric 'shubes' <[EMAIL PROTECTED]> # Last modified: January 6, 2008 # # Figure out what Distro/Release/Arch this machine is and set environment # variables accordingly for QmailToaster-Plus scripts. # # It can also be run from the command line, so users can see # before trying an install if their system is supported, # or to assist with manual installs. # # Note: when setting environment variables for a calling script, this script # needs to be sourced when executed to retain variable values, e.g. # . qtp-whatami # # Use -s option to suppress std out messages, e.g.: . qtp-whatami -s # # return status values: # 0 - machine is supported and tested # 1 - machine is supported, not tested # 4 - machine is recognized, not supported # 5 - machine is not recognized # 8 - invalid usage (parameter not recognized) # # BUILD_DIST values # # CentOS 3.x Linux rht90 # CentOS 4.x Linux cnt40 # CentOS 4.x x86_64 Linux cnt4064 # CentOS 5.x Linux cnt50 # CentOS 5.x x86_64 Linux cnt5064 # Fedora Core 1 Linux fdr10 # Fedora Core 2 Linux fdr20 # Fedora Core 3 Linux fdr30 # Fedora Core 4 Linux fdr40 # Fedora Core 4 x86_64 Linux fdr4064 # Fedora Core 5 Linux fdr50 # Fedora Core 5 x86_64 Linux fdr5064 # Fedora Core 6 Linux fdr60 # Fedora Core 6 x86_64 Linux fdr6064 # Fedora Core 7 Linux fdr60 # Fedora Core 7 x86_64 Linux fdr6064 # Fedora Core 8 Linux fdr60 # Fedora Core 8 x86_64 Linux fdr6064 # Mandrake 10.0 Linux mdk100 # Mandrake 10.1 Linux mdk101 # Mandriva 2005 Linux mdk102 # Mandriva 2006 Linux mdk103 # Mandriva 2006 x86_64 mdk10364 # Mandriva 2007 Linux mdk104 # Mandriva 2007 x86_64 mdk10464 # Red Hat 9 Linux rht90 # Red Hat Enterprise 4.x cnt40 # Red Hat Enterprise 4.x x86_64 cnt4064 # openSuSE 10.0 Linux sus100 # openSuSE 10.0 x86_64 Linux sus10064 # openSuSE 10.1 Linux sus101 # openSuSE 10.1 x86_64 Linux sus10164 # Trustix 2.0 Linux trx20 (no longer supported) supported_distros="\ cnt40 \ cnt4064 \ cnt50 \ cnt5064 \ fdr10 \ fdr20 \ fdr30 \ fdr40 \ fdr4064 \ fdr50 \ fdr5064 \ fdr60 \ fdr6064 \ mdk100 \ mdk101 \ mdk102 \ mdk103 \ mdk10364 \ mdk104 \ mdk10464 \ rht90 \ sus100 \ sus10064 \ sus101 \ sus10164 \ " ################################################################### ## try to determine distro from /etc/*release file # # scyld needs to come before redhat, since they include a redhat-release file # mandriva and mandrake need to be before redhat too, same story # a2_check_releases(){ release_info=`cat /etc/scyld-release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/mandriva-release 2>/dev/null` if [ ! -z "$release_info" ]; then b20_read_release_info b21_mandriva else release_info=`cat /etc/mandrake-release 2>/dev/null` if [ ! -z "$release_info" ]; then b20_read_release_info b22_mandrake else release_info=`cat /etc/fedora-release 2>/dev/null` if [ ! -z "$release_info" ]; then b20_read_release_info b23_fedora else release_info=`cat /etc/redhat-release 2>/dev/null` if [ ! -z "$release_info" ]; then b20_read_release_info b24_redhat else release_info=`cat /etc/SuSE-release 2>/dev/null` if [ ! -z "$release_info" ]; then b20_read_release_info b25_suse else release_info=`cat /etc/trustix-release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/yellowdog-release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/turbolinux-release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/slackware-release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/gentoo-release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/sun-release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/UnitedLinux-release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/debian_release 2>/dev/null` if [ -z "$release_info" ]; then release_info=`cat /etc/lsb-release 2>/dev/null` if [ -z "$release_info" ]; then return 1 fi fi fi fi fi fi fi fi fi fi fi fi fi fi fi fi return 0 } ################################################################### ## split up release information into separate words # b20_read_release_info(){ read word1 word2 word3 word4 word5 word6 word7 word8 word9 <<! $release_info ! } ################################################################### ## check mandriva # b21_mandriva(){ if [ "$word1" == "Mandriva" ]; then DISTRO=$word1 OSVER=$word4 relnum=${word4%.*} case $relnum in 2005 ) BUILD_DIR=/usr/src/RPM BUILD_DIST=mdk102 ;; 2006 ) BUILD_DIR=/usr/src/RPM BUILD_DIST=mdk103 q1_distro_64 if [ "$word4" == "2006.0" ]; then case $QTARCH in i586 | $ARCH64 ) tested=y ;; esac fi ;; 2007 ) BUILD_DIR=/usr/src/rpm BUILD_DIST=mdk104 q1_distro_64 ;; esac fi } ################################################################### ## check mandrake # b22_mandrake(){ BUILD_DIR=/usr/src/RPM if [ "$word1" == "Mandrake" ]; then DISTRO=$word1 OSVER=$word4 relnum=${word4} case $relnum in 10.0 ) BUILD_DIST=mdk100 ;; 10.1 ) BUILD_DIST=mdk101 ;; esac fi } ################################################################### ## check fedora # b23_fedora(){ BUILD_DIR=/usr/src/redhat if [ "$word1" == "Fedora" ]; then if [ "$word2" == "release" ]; then DISTRO="$word1" OSVER=$word3 relnum=${word3%.*} case $relnum in 8 | 7 ) BUILD_DIST=fdr60 q1_distro_64 esac elif [ "$word2" == "Core" ]; then DISTRO="$word1 $word2" OSVER=$word4 relnum=${word4%.*} case $relnum in 6 | 5 | 4 ) BUILD_DIST=fdr${relnum}0 q1_distro_64 if [ "$relnum" == 5 ]; then case $QTARCH in i386 | $ARCH64 ) tested=y ;; esac fi ;; 3 | 2 | 1 ) BUILD_DIST=fdr${relnum}0 ;; esac fi fi } ################################################################### ## check centos, red hat # b24_redhat(){ BUILD_DIR=/usr/src/redhat if [ "$word1" == "CentOS" ]; then DISTRO=$word1 OSVER=$word3 relnum=${word3%.*} case $relnum in 4 | 5 ) BUILD_DIST=cnt${relnum}0 q1_distro_64 if [ "$word3" == "4.3" ]; then case $QTARCH in i386 | $ARCH64 ) tested=y ;; esac fi ;; 3 ) BUILD_DIST=rht90 ;; esac elif [ "$word1" == "Red" ] \ && [ "$word2" == "Hat" ] \ && [ "$word3" == "Enterprise" ]; then DISTRO="$word1 $word2 $word3" OSVER=$word7 relnum=${word7%.*} case $relnum in 4 | 5 ) BUILD_DIST=cnt${relnum}0 q1_distro_64 ;; 3 ) BUILD_DIST=rht90 ;; esac elif [ "$word1" == "Red" ] \ && [ "$word2" == "Hat" ]; then DISTRO="$word1 $word2" OSVER=$word5 relnum=${word5%.*} case $relnum in 9 ) BUILD_DIST=rht90 ;; esac fi } ################################################################### ## check SuSE # b25_suse(){ BUILD_DIR=/usr/src/packages if [ "$word1" == "SUSE" ]; then DISTRO=$word1 OSVER=$word3 relnum=${word3} case $relnum in # 9.3 ) # BUILD_DIST=sus?? # ;; 10.0 ) BUILD_DIST=sus100 q1_distro_64 ;; 10.1 ) BUILD_DIST=sus101 q1_distro_64 case $QTARCH in $ARCH64 | i586 ) tested=y ;; esac ;; esac fi } ################################################################### ## check for 64-bit arch, adjust $BUILD_DIST # q1_distro_64(){ if [ "$QTARCH" == "$ARCH64" ]; then BUILD_DIST=${BUILD_DIST}64 fi } ################################################################### ## begin main processing # myname=qtp-whatami myver=v0.2.5 if [ "`basename $0`" == $myname ]; then retexit=exit else retexit=return fi unset silent if [ ! -z "$1" ]; then case $1 in -s ) silent=$1 ;; * ) echo "$myname usage: $myname [-s]" $retexit 8 ;; esac else echo "$myname $myver" fi export QTARCH=`uname -m` ARCH64="x86_64" BUILD_DIST="" BUILD_DIR="" unset tested a2_check_releases if [ $? != "0" ]; then if [ ! "$silent" ]; then echo "Your Distro is not recognized, let alone supported. Sorry." fi $retexit 5 fi unset supported for distro in $supported_distros; do if [ "$BUILD_DIST" == "$distro" ]; then supported=y break fi done if [ ! "$supported" ]; then if [ ! "$silent" ]; then echo "$release_info is not supported. Sorry." fi $retexit 4 else export DISTRO export OSVER export BUILD_DIST export BUILD_DIR if [ ! "$silent" ]; then echo "DISTRO=$DISTRO" echo "OSVER=$OSVER" echo "QTARCH=$QTARCH" echo "BUILD_DIST=$BUILD_DIST" echo "BUILD_DIR=$BUILD_DIR" fi if [ "$tested" ]; then if [ ! "$silent" ]; then echo "This machine's OS is supported and has been tested" fi $retexit 0 else if [ ! "$silent" ]; then echo "This machine's OS is supported, but this version/arch has not been tested." fi $retexit 1 fi fi
--------------------------------------------------------------------- QmailToaster hosted by: VR Hosted <http://www.vr.org> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]