This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin build scripts in perl


(a) I found that winsup/cygwin/mkimport specified non-existent file names as arguments to objcopy invocations.  I am not sure why this did not cause build breaks earlier.

(b) It appears perl 5.6 and, possibly, perl 5.10 do not implement the "list form of pipe" in calls to "open()",

  open $my_fd, '-|', $cmd, $arg1, $arg2

I got around that by using regular pipes.

(c) The Windows native build of perl wrapped into a cygpath-translating script /usr/bin/perl will require protection of drive letters when using a regex in speclib.  I believe this change may still work with Cygwin builds of perl.

I am not aware of the purpose of the two scripts that I modified, but the fixes made my build succeed.

-- 


==================================================
$ cat /usr/bin/perl
#! /bin/bash
args=()
for f ; do
    if [ -f "${f}" ] ; then
        f=$(cygpath -w "${f}")
        f="${f#\\\\\?\\}"
    fi
    args+=("${f}")
done
set -x
exec /c/NATIVEPERL/perl.exe -Ic:/NATIVEPERL/lib "${args[@]}"
==================================================

Attachment: speclib-windows-native-regex-and-simple-pipes.txt
Description: Text document

Attachment: speclib-windows-native-regex-and-simple-pipes-nowhitespace.txt
Description: Text document

Attachment: mkimport-objcopy-arg-and-simple-pipes.txt
Description: Text document

Attachment: mkimport-objcopy-arg-and-simple-pipes-nowhitespace.txt
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]