grep3.0 of cygwin changed treatment of CR/LF.

2017-05-10 Thread 川崎 正貴
I found a problem on grep 3.0 on command prompt of Windows10 with 64bit
cygwin.
It seems that treatment of CR/LF is changed.
I expect cygwin disposes of CR/LF.

grep 2.25(correct)
>uname -a
CYGWIN_NT-10.0 PCNAME 2.6.0(0.304/5/3) 2016-08-31 14:32 x86_64 Cygwin
>env LC_ALL=C grep --version
grep (GNU grep) 2.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see
.
> echo rr/| grep '^.*\/$'
rr/
> echo rr/| gawk '/^.*\/$/'
rr/
> echo rr/| sed -ne '/^.*\/$/p'
rr/

grep 3.0(incorrect)
>uname -a
CYGWIN_NT-10.0 PCNAME 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
>env LC_ALL=C grep --version
grep (GNU grep) 3.0
Packaged by Cygwin (3.0-2)
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see
.
> echo rr/| grep '^.*\/$'
> echo rr/| gawk '/^.*\/$/'
> echo rr/| sed -ne '/^.*\/$/p'
> echo rr/>a.txt
> echo a.txt| grep '^.*\/$'
> cat a.txt| grep '^.*\/$'
> dos2unix a.txt
dos2unix: converting file a.txt to Unix format...
> echo a.txt| grep '^.*\/$'
> cat a.txt| grep '^.*\/$'
rr/
> cat a.txt| gawk '/^.*\/$/'
rr/
> cat a.txt| sed -ne '/^.*\/$/p'
rr/

thanks.


--
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



Re: CygWin Relink Issue ERP oracle

2017-05-10 Thread Doug Henderson
On 10 May 2017 at 15:47, Brian Inglis wrote:
>
> On 2017-05-10 12:50, Anil Rawat wrote:
> > We are installing Oracle ERP R12.2.6 on Windows 2012R2.
> > 1) Cygwin2.8 is installed and Path is set to C:\mks bin
> > 2) Installation 12.2.0 complete successfully
> > 3) Before Upgrading to R12.2.6 , AD Delta 9 patch is required.
> > Before Applying Adrelink.sh complete with status 0 for "ad all" but
> > once AD delta9 patch is applied , adrelink fail with below error.
>
>
> Doesn't look anything like Cygwin builds - maybe Mingw/Msys or VS
> command line compilers and MS linker?

You need an Oracle support id just to read the (several) manuals you
need to perform this install. Get your moneys worth out of all the
support and maintenance you pay to Oracle and get Oracle support to do
the install, or at least walk you through it step by step.

If you must do it yourself, start with this google search:

https://www.google.ca/search?q=Oracle+ERP+R12.2.6+on+Windows+2012R2

and continue to the first link that shows up, probably this one:

https://community.oracle.com/thread/4010301

HTH,
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

--
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



Re: CygWin Relink Issue ERP oracle

2017-05-10 Thread Brian Inglis
On 2017-05-10 12:50, Anil Rawat wrote:
> We are installing Oracle ERP R12.2.6 on Windows 2012R2.
> 1) Cygwin2.8 is installed and Path is set to C:\mks bin
> 2) Installation 12.2.0 complete successfully 
> 3) Before Upgrading to R12.2.6 , AD Delta 9 patch is required. 
> Before Applying Adrelink.sh complete with status 0 for "ad all" but
> once AD delta9 patch is applied , adrelink fail with below error.
> adadmin.obj : error LNK2019: unresolved external symbol 
> _adphistUpdateFailedActions referenced in function _main
> adadmin.obj : error LNK2019: unresolved external symbol 
> _adujriCreateAndSignCustomJar referenced in function _adadmin_main
> adadmin.obj : error LNK2019: unresolved external symbol _jriStorePassword 
> referenced in function _adadmin_main
> adadmin.obj : error LNK2019: unresolved external symbol _jriKeyPassword 
> referenced in function _adadmin_main
> adadmin.obj : error LNK2019: unresolved external symbol
> _aiibStoreAdminRecord 
> referenced in function _adadmin_main
> adadmin.obj : error LNK2019: unresolved external symbol _aiibcy3 referenced 
> in function _adadmin_main
> adadmin.obj : error LNK2019: unresolved external symbol 
> _aiibStoreAdminRecordInDB referenced in function _adadmin_main
> C:/oracle/PROD/apps/fs1/EBSapps/appl/ad/12.0.0/bin/adadmin.new : fatal error
> LNK1120: 7 unresolved externals
> gnumake: *** 
> [C:/oracle/PROD/apps/fs1/EBSapps/appl/ad/12.0.0/bin/adadminnew.exe] Error 96
> Done with link of all ad executables on Mon May  8 13:25:12 AST 2017
> Relink of all modules failed.

Doesn't look anything like Cygwin builds - maybe Mingw/Msys or VS 
command line compilers and MS linker?

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
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



CygWin Relink Issue ERP oracle

2017-05-10 Thread Anil Rawat
Dear Admin

We are installing Oracle ERP R12.2.6 on Windows 2012R2.
1) Cygwin2.8 is installed and Path is set to C:\mks bin
2) Installation 12.2.0 complete successfully 
3) Before Upgrading to R12.2.6 , AD Delta 9 patch is required. 

Before Applying Adrelink.sh complete with status 0 for "ad all" but once AD
delta9 patch is applied , adrelink fail with below error .

adadmin.obj : error LNK2019: unresolved external symbol 
_adphistUpdateFailedActions referenced in function _main
adadmin.obj : error LNK2019: unresolved external symbol 
_adujriCreateAndSignCustomJar referenced in function _adadmin_main
adadmin.obj : error LNK2019: unresolved external symbol _jriStorePassword 
referenced in function _adadmin_main
adadmin.obj : error LNK2019: unresolved external symbol _jriKeyPassword 
referenced in function _adadmin_main
adadmin.obj : error LNK2019: unresolved external symbol
_aiibStoreAdminRecord 
referenced in function _adadmin_main
adadmin.obj : error LNK2019: unresolved external symbol _aiibcy3 referenced 
in function _adadmin_main
adadmin.obj : error LNK2019: unresolved external symbol 
_aiibStoreAdminRecordInDB referenced in function _adadmin_main
C:/oracle/PROD/apps/fs1/EBSapps/appl/ad/12.0.0/bin/adadmin.new : fatal error

LNK1120: 7 unresolved externals
gnumake: *** 
[C:/oracle/PROD/apps/fs1/EBSapps/appl/ad/12.0.0/bin/adadminnew.exe] Error 96
Done with link of all ad executables on Mon May  8 13:25:12 AST 2017
Relink of all modules failed.




adrelinkalex.log
Description: Binary data

--
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

Re: Request new buildbot-slave package (FAO Jon Turney)

2017-05-10 Thread Jon Turney

On 10/05/2017 18:10, Adam Dinwoodie wrote:

I see you're the maintainer of buildbot-slave. Would it be possible to
get an updated version of this? The current version packaged for
Cygwin, 0.8.12, was released in April 2015; the latest version, 0.9.6,
was released April 2017.


Sure, I'll take a look at doing that.


--
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



Re: Installing sshd with option --type manual

2017-05-10 Thread Brian Inglis
On 2017-05-09 23:05, Charles Russell wrote:
>> On 5/4/2017 3:31 PM, Fran Litterio wrote:
>>> You can try opening the Services Control Panel app (run "start 
>>> services.msc" in a Command Prompt) and changing the startup type
>>> of service "Cygwin sshd" to "Automatic (Delayed Start)".
> Yes! I was looking in the alphabetized list of services for sshd, not
> for CYGWIN sshd.

...or from an elevated admin shell where you installed the Cygwin 
service with cygrunsrv -I or ran the /bin/...-config script e.g.:

$ sc config sshd start= delayed-auto depend= cygserver/tcpip

no space before = (part of option), space between = and value required, 
services it should start after and depends on separated by forward slashes.

>From any shell, you can list installed Cygwin services using 

$ cygrunsrv -L

with -V also listing all parameters and their values.

>From any shell, you can also list and modify parameters easily using e.g.

$ regtool list -p /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd
Parameters\
Type
Start
ErrorControl
ImagePath
DisplayName
DependOnService
ObjectName
$ regtool set -d 
/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/DelayedAutostart 1
$ regtool list -p /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd
Parameters\
Type
Start
ErrorControl
ImagePath
DisplayName
DependOnService
ObjectName
DelayedAutostart
$ regtool get 
/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/DelayedAutostart
1
$ regtool list -p 
/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters
AppPath
AppArgs
$ regtool set -d 
/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/Preshutdown
 1
$ regtool list -p 
/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters
AppPath
AppArgs
Preshutdown
$ regtool get 
/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/Preshutdown
1

with the usual caveats regarding registry key names, changes, and 
modifications.
Parameters and other cygrunsrv changes will not be picked up until 
the service is stopped and restarted from cygrunsrv in an elevated 
admin shell.

This approach has the advantages that cygrunsrv does not support 
service or parameter changes or modifications, cygrunsrv -I and 
sc config require an elevated admin shell, sc config does not support 
cygrunsrv and other services' Parameters and other features, and 
regedit requires formatted file input or a GUI.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
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



Request new buildbot-slave package (FAO Jon Turney)

2017-05-10 Thread Adam Dinwoodie
Hi Jon,

I see you're the maintainer of buildbot-slave. Would it be possible to
get an updated version of this? The current version packaged for
Cygwin, 0.8.12, was released in April 2015; the latest version, 0.9.6,
was released April 2017.

Cheers,

Adam

--
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



RE: cygpath compatiblity break (v2.1 -> v2.7)

2017-05-10 Thread Nellis, Kenneth (Conduent)
From: Chevallier Yves 
> ...
> So two questions in this thread:
> 1. How can I participate to the thread and use this mailing list properly?
> ...
> From: Brian Inglis 
> ...
>  Looks like the 207653 comes from the Return-Path header when
>  you view the raw message content.

The answer was in the message that you quoted, where, in that case, the 
message ID was 207653.

--Ken Nellis

--
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



Re: cygpath compatiblity break (v2.1 -> v2.7)

2017-05-10 Thread Marco Atzeri

On 10/05/2017 14:35, Chevallier Yves wrote:

I don't want to suscribe to it, I just want to be able to post and reply not 
more.


Or you subscribe or you use a NNTP gateway.

  https://cygwin.com/news.html

There are no other way.


There is no issue tracker for Cygwin. This is not very convenient.


We track the problems on the mailing list.

Internet is full of issue trackers with no enough resource
to follow up and solve them.

In your case as current cygwin version does not show the problem,
it is for me solved.

Regards
Marco


--
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



Re: cygpath compatiblity break (v2.1 -> v2.7)

2017-05-10 Thread Chevallier Yves
I don't understand your points. See my reply below with the leading char $ 

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]

Re: cygpath compatiblity break (v2.1 -> v2.7)
. From: Marco Atzeri 
. To: cygwin at cygwin dot com
. Date: Wed, 10 May 2017 11:29:32 +0200
. Subject: Re: cygpath compatiblity break (v2.1 -> v2.7)
. Authentication-results: sourceware.org; auth=none
. References: <2ebc717eaaf041d7b516e93a6123b...@de01ex22.global.jhcn.net> 
<2b3a4976-09b2-cece-759d-0b2379ae3...@gmail.com> 


On 10/05/2017 11:12, Chevallier Yves wrote:
Unfortunately I haven't tried 2.8 because we've already validated 2.7 
internally and I would need at least 3 months to access to 2.8.

That said I searched for a release note with information about cygpath, but I 
haven't find any.


Bottom Post in this mailing list. Please.
$ Is this a question? What do you please me for?

Cygpath is part of the cygwin package.
The source specific of "cygpath" is unchanged by ~ 6 months. The issue you see 
was likely a change inside the cygwin dll.
$ Yes it is exactly what I was arguing because even if I change `cygpath.exe` 
for the oldest version, the issue is still the same


About your internal validation, please note that the numbering scheme was 
changed with version 2.0
$ Which internal validation? Are you talking about `cygpath`?

https://sourceware.org/ml/cygwin-announce/2015-04/msg00046.html

I suggest you to consider 2.x version as the successor of 1.7.x.
$ I am considering 2.7 instead of 2.1 What are you talking about 1.7?

Regards
Marco

$ By the way I still don't know how to answer/reply a message from this mailing 
list. I have to do polling over https://www.cygwin.com/ml/cygwin/2017-05/ and 
copy/paste everything into a new e-mail. I doubt this is the correct way to 
communicate. Do you have a clue?



--
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


. References:
o Re: cygpath compatiblity break (v2.1 -> v2.7)
. From: Chevallier Yves
o Re: cygpath compatiblity break (v2.1 -> v2.7)
. From: Marco Atzeri
o RE: cygpath compatiblity break (v2.1 -> v2.7)
. From: Chevallier Yves
Index Nav:
[Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav:
[Date Prev] [Date Next]
[Thread Prev] [Thread Next]



--
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



Re: Please enable cid-x.map in dvipdfmx.cfg when installing texlive-langjapanese

2017-05-10 Thread Lemures Lemniscati
Hi!

Subject: Re: Please enable cid-x.map in dvipdfmx.cfg when installing 
texlive-langjapanese
Date: Tue, 9 May 2017 11:38:47 -0400
From: Ken Brown 

> On 5/9/2017 7:22 AM, Lemures Lemniscati wrote:
> > My situation has been resolved on x86_64 version by:
> >  (1) removing /var/lib/texmf
> >  (2) reinstalling texlive-* packages
> >
> > It seemed the cause that
> > /var/lib/texmf/fonts/map/dvipdfmx/updmap/kanjix.map
> > was not updated properly.
> >
> > On x86 version, I can't resolve it yet, and still keep trying...
> 
> Check the logs in /var/log to see if some of the postinstall scripts had fork 
> failures.  Unfortunately, this is fairly common on x86, and a full rebase 
> (perhaps followed by a reboot) might be necessary.  See
> 
>https://cygwin.com/ml/cygwin/2017-05/msg00087.html
> 
> for example.
> 
> Ken


Thank you, my situation on both x86 and x86_64 versions has been
resolved.  Rebooting seems to be effective,  but I'm not sure.

It was the first time for me to encounter such a trouble.

Regards,

--
Lemures Lemniscati


--
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



Bug? wcsxfrm causing memory corruption

2017-05-10 Thread Erik Bray
Greetings--

In the process of fixing the Python test suite on Cygwin I ran across
one test that was consistently causing segfaults later on, not
directly local to that test.  The test involves wcsxfrm so that's
where I focused my attention.

The attached test demonstrates the bug.  Given an output buffer of N
wide characters, wcsxfrm will cause bytes beyond the destination size
to be reversed. I believe it might actually be a bug in the underlying
LCMapStringW workhorse (this is on Windows 10; have not tested other
versions).

According to its docs [1], the cchDest argument (size of the
destination buffer) is treated as a *byte* count when using
LCMAP_SORTKEY.  However, for the purposes of applying the
LCMAP_BYTEREV transformation it seems to be treating the output size
(in bytes) as character count.  So in the example I give, where the
output sort key is 7 bytes (including the null terminator), it swaps
*14* bytes--the bytes including the sort key as well as the next 7
adjacent bytes.  This is obviously a problem if the destination buffer
is allocated out of some larger memory pool.

This definitely has to be a bug, right?  Or at least very poorly
documented on MS's part.  A workaround would either be to not use
LCMAP_BYTEREV and just swap the bytes manually, or in a second call to
LCMapStringW with LCMAP_BYTEREV and the correct character count...

Thanks,
Erik


[1] 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd318700(v=vs.85).aspx
#include 
#include 
#include 
#include 
#include 
#include 

#define SIZE 32


void fill_bytes(uint8_t *a, int n) {
int idx;
for (idx=0; idx
--
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

Re: cygpath compatiblity break (v2.1 -> v2.7)

2017-05-10 Thread Marco Atzeri

On 10/05/2017 11:12, Chevallier Yves wrote:

Unfortunately I haven't tried 2.8 because we've already validated 2.7 
internally and I would need at least 3 months to access to 2.8.

That said I searched for a release note with information about cygpath, but I 
haven't find any.



Bottom Post in this mailing list. Please.


Cygpath is part of the cygwin package.
The source specific of "cygpath" is unchanged by ~ 6 months. The issue 
you see was likely a change inside the cygwin dll.



About your internal validation, please note that the numbering scheme 
was changed with version 2.0


https://sourceware.org/ml/cygwin-announce/2015-04/msg00046.html

I suggest you to consider 2.x version as the successor of 1.7.x.

Regards
Marco





--
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



RE: cygpath compatiblity break (v2.1 -> v2.7)

2017-05-10 Thread Chevallier Yves
Unfortunately I haven't tried 2.8 because we've already validated 2.7 
internally and I would need at least 3 months to access to 2.8. 

That said I searched for a release note with information about cygpath, but I 
haven't find any. 

-Original Message-
From: Marco Atzeri [mailto:marco.atz...@gmail.com] 
Sent: mercredi 10 mai 2017 09:14
To: cygwin@cygwin.com
Cc: Chevallier Yves 
Subject: Re: cygpath compatiblity break (v2.1 -> v2.7)

On 10/05/2017 08:00, Chevallier Yves wrote:
> Dear All,
>
> I tried to understand how the mailing list work, but I cannot find any thread 
> number or message number from the following.
>
> Moreover we haven't discussed my issue with `cygpath` which is a serious 
> compatibility break in my toolchain. Changing the executable doesn't change 
> anything because I think `cygpath` is somehow linked to a Cygwin dll which 
> have the bug.
>
> So two questions in this thread:
>
> 1. How can I participate to the thread and use this mailing list properly?
> 2. What workaround can I use with my Cypath issue?
>
> Regards,
> Yves


Have you tried 2.8 ?

https://cygwin.com/ml/cygwin/2017-04/msg00156.html





--
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



Re: cygpath compatiblity break (v2.1 -> v2.7)

2017-05-10 Thread Marco Atzeri

On 10/05/2017 08:00, Chevallier Yves wrote:

Dear All,

I tried to understand how the mailing list work, but I cannot find any thread 
number or message number from the following.

Moreover we haven't discussed my issue with `cygpath` which is a serious 
compatibility break in my toolchain. Changing the executable doesn't change 
anything because I think `cygpath` is somehow linked to a Cygwin dll which have 
the bug.

So two questions in this thread:

1. How can I participate to the thread and use this mailing list properly?
2. What workaround can I use with my Cypath issue?

Regards,
Yves



Have you tried 2.8 ?

https://cygwin.com/ml/cygwin/2017-04/msg00156.html



--
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