Help with False ${FALSE}

Help with False ${FALSE}

Post by Daero » Tue, 06 Nov 2001 13:42:54



 In the stupid /usr/ports/editors/staroffice52/Makefile there is
a section which goes:
=====================
.if defined(WITH_CDROM)
.if !exists(${CD_MOUNTPT}/linux/office52/setup)





.endif
.endif
======================
 Despite the fact that when I do a
"ls -l /cdrom/linux/office52/setup" I get
-r-xr-xr-x  1 rot wheel 66936 May 12  2000 /cdrom/linux/office52/setup

 The Makefile is still saying there is no setup file!
 Can anyone suggest why?

----------
A nations human decency can be measured by the
number of its citizens who phone or write their government
to improve the world.
http://www.fandom.net/~daeron/Cyclo/Brainia/8635.html
http://www.topica.com/lists/WestPapua/read
http://www.foreignpolicy-infocus.org/briefs/vol5/v5n37papua.html

 
 
 

Help with False ${FALSE}

Post by Per Hedela » Wed, 07 Nov 2001 09:35:55




> In the stupid /usr/ports/editors/staroffice52/Makefile there is
>a section which goes:
>=====================
>.if defined(WITH_CDROM)
>.if !exists(${CD_MOUNTPT}/linux/office52/setup)





>.endif
>.endif
>======================
> Despite the fact that when I do a
>"ls -l /cdrom/linux/office52/setup" I get
>-r-xr-xr-x  1 rot wheel 66936 May 12  2000 /cdrom/linux/office52/setup

> The Makefile is still saying there is no setup file!
> Can anyone suggest why?

What *exactly* does it say? The text "no setup file" doesn't seem to be
in the Makefile... I.e. perhaps your ${CD_MOUNTPT} isn't "/cdrom" for
some reason?

--Per Hedeland


 
 
 

Help with False ${FALSE}

Post by Daero » Wed, 07 Nov 2001 12:48:51


Thanx for reply :)


>> Despite the fact that when I do a
>>"ls -l /cdrom/linux/office52/setup" I get
>>-r-xr-xr-x  1 rot wheel 66936 May 12  2000 /cdrom/linux/office52/setup

>> The Makefile is still saying there is no setup file!
>> Can anyone suggest why?

> What *exactly* does it say? The text "no setup file" doesn't seem to be
> in the Makefile... I.e. perhaps your ${CD_MOUNTPT} isn't "/cdrom" for
> some reason?

 Which is the first thing one thinks of, which is why I did an "ls" to
verify both the mount point and that the specific file did exist.
 Specifically it says:

 make WITH_CDROM=yes install
 ===>   staroffice-5.2 depends on file: /compat/linux/lib/libc.so.6 - found
 Check if linprocfs is running: YES

 Please mount the Sun StarOffice 5.2 CDROM
 onto /cdrom and run make again.

 *** Error code 1

 Stop in /usr/ports/editors/staroffice52.
 *** Error code 1

 Stop in /usr/ports/editors/staroffice52.
 *** Error code 1

 Stop in /usr/ports/editors/staroffice52.
 *** Error code 1

 Stop in /usr/ports/editors/staroffice52.
 *** Error code 1

 Stop in /usr/ports/editors/staroffice52.
 *** Error code 1

 Stop in /usr/ports/editors/staroffice52.
 *** Error code 1

 Stop in /usr/ports/editors/staroffice52.

 
 
 

1. why does false || false = true ???

Here's one that's confusing me...  While solving a problem in
a programing book I came up with this, but I don't understand
why it works.  (I just kept trying things until I got the right
answer)

i=1
while [ $(($i%3)) -ne 2 ] || [ $(($i%5)) -ne 3 ] || [ $(($i%7)) -ne 4 ]
do
        let i=$i+1
done
echo The Number is ${i}.

The part that is confusing to me is the while condition.
I am "OR"ing 3 test conditions.  When they are all false,
the while loop is exited.  

It seems to work like,
when [ false OR false OR false ]
then
        exit loop
done

I'd think it would work like this,
when [ true AND true AND true ]
then
        exit loop
done

Here is the last 10 lines of a trace on the loop:

+ let i=50+1
+ [ 0 -ne 2 ]
+ let i=51+1
+ [ 1 -ne 2 ]
+ let i=52+1
+ [ 2 -ne 2 ]                   # false condition
+ [ 3 -ne 3 ]                   # false condition
+ [ 4 -ne 4 ]                   # false condition
+ echo The Number is 53.
The Number is 53.

Can anyone explain why OR'ing false statements works this way?

p.s. this isn't for a class or anything, so I don't have a
teacher to ask.

p.p.s.
Here is the original problem:
Write a program to find the smallest positive integer n
which corresponds to the following conditions:
n / 3 = integer x and remainder 2
n / 5 = integer y and remainder 3
n / 3 = integer z and remainder 4

--
Randall W. Hron
Roswell, GA

uunet!gatech!kd4nc!vdbsan!willard!hrandoz!hronr

2. mtools on Solaris

3. Help for make false!

4. Looking for a thread package on DECstation 5000

5. false "no /home/xxx directory!": help

6. SUMMARY: U30 and UltraSPARC 450-4MB

7. Help : false IP adress

8. Where should xdm be started?

9. Linux BUGS? True or False!

10. cops false report

11. what will chdev -l sys0 -a iostat=false do?

12. blocking signals in signal handler -- True or False quiz

13. Builtin commands true/false extension