>On 20 May 2008, at 18:32, Martin Costabel wrote:
>
>> Just for the record:
>>
>> Jean-François Mertens wrote:
>> []
>>> 1) among others there was the question
>>> 'what does "man cp" tell about the -P flag ? '
>>> I was suspicious because of the warnings
>>> "cp: Warning: the meaning of `-P' will change in the future to   
>>> conform to POSIX.
>>> Use `--parents' for the old meaning, and `--no-dereference' for  
>>> the  new one."
>>> that I saw in the log-file you had posted there.
>>
>> I don't see such a warning coming from Leopard's cp.
>> And indeed the explanation in "man cp" of the -P flag has not changed:
>>
>> "-P    If the -R option is specified, no symbolic links are  
>> followed. This is the default."
>>
>> This means in particular that the -P flag is superfluous.
>Indeed, both for coreutils' and for Apple's cp then.
>(Or could it be that coreutils' cp is different under 10.5
>than under 10.4 ??)
>But it is just a precaution motivated by the following extract
>from coreutils info file, for cp :
>`-R'
>`-r'
>`--recursive'
>>      It is not portable to
>>      use `-r' to copy symbolic links or special files.  On some non- 
>> GNU
>>      systems, `-r' implies the equivalent of `-L' and `--copy- 
>> contents'
>>      for historical reasons.  Also, it is not portable to use `-R' to
>>      copy symbolic links unless you also specify `-P', as POSIX allows
>>      implementations that dereference symbolic links by default.
>
>
>
>>
>>> 2) As to Alexander's reply,
>> []
>>> another question I asked in your bug tracker item  was :
>>> "under 10.4, man setpgrp and man setpgid refer to the same  
>>> manpage, and
>>> they are defined as identical.
>>> What exactly has changed in 10.5 in this respect ?"
>>
>> 10.4:
>>      int
>>      setpgrp(pid_t pid, pid_t pgrp);
>>
>> 10.5:
>>      pid_t
>>      setpgrp(void);
>>
>> Both have
>>      int
>>      setpgid(pid_t pid, pid_t pgid);
>>
>> -- 
>> Martin
>>
>>
>>
>Thanks a lot Martin
>_ that's very helpful !
>
>Jean-Francois
>
>
+1 to the information provided.

I did not look up the cp information but I did find information on the use of 
setpgrp and setpgid and made the switch to setpgid.  

I still have the question on how to apply changes only when building for 
Leopard vice building for Tiger.

James McKenzie



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to