Re: Add support for xterm/rxvt style text selection and inserting to mintty? (was Re: Cygwin alongside WSL)

2017-11-15 Thread Brian Inglis
On 2017-11-15 23:44, qrasmfu...@snkmail.com wrote:
> On Thu, 2 Nov 2017 23:38:13 +0100 Thomas Wolff wrote:
>> Thanks for flattering me :) Sounds good after all the people asking for
>> ever more features, silly ones as well as good ones.
>> Actually, after the WSL and Virtual Tabs endeavours, release frequency
>> should become lower now.
> Speaking of silly feature requests ...
> The main reason I'm not a fan of mintty (and as a result haven't switched to
> cygwin64 on my primary Windows machine -  because it doesn't include the
> non-Xwindows version of rxvt) is that it behaves different than xterm/rxvt for
> copying/pasting text.  I spend most of my time in front of linux systems using
> xterm, rxvt and rxvt-unicode, so I have that way of copying/pasting text built
> into the "microcode" in my hand.  I've found it quite difficult to adjust to
> mintty.
> Would it be possible to add an option to mintty to support xterm/rxvt style
> copying/pasting (what rxvt calls text selection and inserting) as described in
> the rxvt man page:
> TEXT SELECTION AND INSERTION
> The behaviour of text selection and insertion mechanism is similar to
> xterm(1).
> Selection:
> Left click at the beginning of the region, drag to the end of the region and 
> release; Right click to extend the marked region; Left double-click to select
> a word; Left triple-click to select the entire line.
> Insertion:
> Pressing and releasing the Middle mouse button (or Shift-Insert) in an rxvt
> window causes the current text selection to be inserted as if it had been
> typed on the keyboard.

All except Right click to extend the region works in mintty, and config file
option RightClickAction=extend changes that to what you want, which also makes
shift-right-click menu, and shift-left-click paste - man mintty is your friend -
search for /right.*click, /extend.*region, or /right.*mouse.

Check out https://github.com/mintty/mintty for even more useful info.

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



Re: FAST_CWD pointer problem

2017-11-15 Thread Brian Inglis
On 2017-11-15 21:24, Eliot Moss wrote:
> On 11/15/2017 11:19 PM, Naidu, Srinivasu (Hardware design) wrote:
>> I'm Sri, working for Hewlett Packard. We are using Quartus tool and
>> installed latest version 13.1. When we are running NiosII eclipse , getting
>> the below warning, any help is greatly appreciated.
>> 0 [main] pwd 12724 find_fast_cwd: WARNING: Couldn't compute FAST_CWD 
>> pointer. 
>> Please report this problem to the public mailing list
>> cygwin@cygwin.com

> This pretty much invariably means that the tool is using a really old release
> of Cygwin and should be updated to use a more recent one. We are in the 
> process of updating the FAQ to point this out more usefully.
Quartus is an Altera/Intel PSG product - please contact them about issues on
their support site - see:
https://www.altera.com/bin/search?as_sitesearch=www.alteraforum.com/forum/showthread.php=find_fast_cwd=www=xml_no_dtd=www=date:D:L:d1=1=p=3=a=0=200_mc=1

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



Add support for xterm/rxvt style text selection and inserting to mintty? (was Re: Cygwin alongside WSL)

2017-11-15 Thread qrasmfu8f4

On Thu, 2 Nov 2017 23:38:13 +0100 Thomas Wolff wrote:

Thanks for flattering me :) Sounds good after all the people asking for
ever more features, silly ones as well as good ones.
Actually, after the WSL and Virtual Tabs endeavours, release frequency
should become lower now.

Speaking of silly feature requests ...
The main reason I'm not a fan of mintty (and as a result haven't 
switched to cygwin64 on my primary Windows machine -  because it doesn't 
include the non-Xwindows version of rxvt) is that it behaves different 
than xterm/rxvt for copying/pasting text.  I spend most of my time in 
front of linux systems using xterm, rxvt and rxvt-unicode, so I have 
that way of copying/pasting text built into the "microcode" in my hand.  
I've found it quite difficult to adjust to mintty.


Would it be possible to add an option to mintty to support xterm/rxvt 
style copying/pasting (what rxvt calls text selection and inserting) as 
described in the rxvt man page:


   TEXT SELECTION AND INSERTION
   The behaviour of text selection and insertion mechanism is
   similar to xterm(1).

   Selection:
  Left click at the beginning of the region, drag to
   the end of the region
  and release; Right click to extend the marked region;
   Left  double-click
  to select a word; Left triple-click to select the
   entire line.

   Insertion:
  Pressing  and  releasing the Middle mouse button (or
   Shift-Insert) in an
  rxvt window causes the current text selection to be
   inserted  as  if  it
  had been typed on the keyboard.

    thanks,
    Peter


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



Res: Reunião Agendada

2017-11-15 Thread Nicolas
Olá, tudo bem ?

Podemos agendar uma reunião para apresentação da nossa empresa ?

Att.
http://www.e-assismkt.com.br/?c=cygwin@cygwin.com
Tel: (11) 2378-7244



--
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: FAST_CWD pointer problem

2017-11-15 Thread Eliot Moss

On 11/15/2017 11:19 PM, Naidu, Srinivasu (Hardware design) wrote:

Hi Cygwin team,

I'm Sri, working for Hewlett Packard. We are using Quartus tool and installed 
latest version 13.1. When we are running NiosII eclipse , getting the below 
warning, any help is greatly appreciated.


0 [main] pwd 12724 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  
Please report this problem to
the public mailing list cygwin@cygwin.com

Thanks in advance,
Sri,


Dear Sri -- This pretty much invariably means that the tool is using a really 
old release of
Cygwin and should be updated to use a more recent one.  We are in the process 
of updating
the FAQ ot points this out more usefully.

Regards - Eliot Moss

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



FAST_CWD pointer problem

2017-11-15 Thread Naidu, Srinivasu (Hardware design)
Hi Cygwin team,

I'm Sri, working for Hewlett Packard. We are using Quartus tool and installed 
latest version 13.1. When we are running NiosII eclipse , getting the below 
warning, any help is greatly appreciated.


0 [main] pwd 12724 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  
Please report this problem to
the public mailing list cygwin@cygwin.com

Thanks in advance,
Sri,

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



Jari: python package collisions

2017-11-15 Thread Yaakov Selkowitz
Jari,

Your python-based packages listed below all collide with each other and
python2-setuptools by shipping parts of the latter.  They also bundle
other python libraries instead of shipping them separately.

* pylint: bundles astroid (the successor to logilab-astng)
* python-logilab-common
* python-logilab-astng (obsolete)
* python-paramiko: bundles ecdsa
* spambayes: bundles lockfile, pydns

Furthermore, the non-program modules should be built for both python2
and python3; cygport's python-wheel will do this for you.  The programs
should use whichever of python{2,3}-distutils for the Python version
they require.

-- 
Yaakov



signature.asc
Description: OpenPGP digital signature


[PATCH] make setup mirror list more like web page not just urls

2017-11-15 Thread Brian Inglis
Hi folks,

[reposted without text attachment to see if patch gets thru]

Working on a FAST_CWD FAQ, looking at the Setup mirror site page and the web
page, I wondered if we could usefully add the mirrors.lst region and territory
(called area and location in the code) to the Setup display, to avoid users
having to refer to the web page to find out where mirrors are based 
geographically.

The first change was to prefix the displayed_url member in site.cc
site_list_type::init "constructor" with "area - location - ".

The sort key was the mirror url host name with the domain components in reverse
order to sort non-country TLDs together before CC TLDs.
The code tested for TLD length == 3 to distinguish between CC and non-CC TLDs,
as this code is over 10 years old and there were only the original com, edu,
gov, mil, net, org non-CC domains, before other gTLDs were added.
That test was changed to handle all gTLDs with length >= 3, to prefix area and
location to the sort key member, reverse the domain components in the servername
field instead of the url host, and suffix the url protocol prefix to keep the
key unique where sites offer both ftp and http mirrors, rather than the whole
url in the original.

For checking, a short script used awk to do the same when fed with mirrors.lst,
produce lines with the displayed url and sort key separated by a tab, and sort
by the key to produce the displayed urls in the same order as the code should.
The output of the script [was] in the first text attachment to show the
displayed urls in the sorted order.

When this was displayed in setup, some of the urls were cut off by the list box
border, estimated about 3 ems too narrow.
The width of the list box and related controls in res.rc was increased by about
30 pixels, and the position of the Add button moved over the same amount, to
give an acceptable display.

The required patch is attached for discussion: some may not like the display of
the default mirror from /etc/setup/setup.rc last_mirror, which appears in the
list as " - - url", as the other mirrors.lst fields are not currently saved
under last_mirror, and more work may be needed to improve this.

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

diff --git a/res.rc b/res.rc
index 80d1bf1..fa90a65 100644
--- a/res.rc
+++ b/res.rc
@@ -135,10 +135,10 @@ CAPTION "Cygwin Setup - Choose Download Site(s)"
 FONT 8, "MS Shell Dlg"
 BEGIN
 ICONIDI_CYGWIN,IDC_HEADICON,SETUP_HEADICON_X,0,21,20
-LISTBOX IDC_URL_LIST,66,45,185,110,LBS_NOINTEGRALHEIGHT | 
+LISTBOX IDC_URL_LIST,66,45,216,110,LBS_NOINTEGRALHEIGHT | 
 LBS_EXTENDEDSEL | WS_VSCROLL | WS_HSCROLL | WS_GROUP | 
 WS_TABSTOP
-LTEXT   "Available Download Sites:",IDC_STATIC,66,34,183,8,NOT 
+LTEXT   "Available Download Sites:",IDC_STATIC,66,34,216,8,NOT 
 WS_GROUP
 CONTROL "",IDC_HEADSEPARATOR,"Static",SS_BLACKFRAME | 
SS_SUNKEN,0,28,
 SETUP_STANDARD_DIALOG_W,1
@@ -146,10 +146,10 @@ BEGIN
 IDC_STATIC,21,9,239,16,NOT WS_GROUP
 LTEXT   "Choose A Download Site",IDC_STATIC_HEADER_TITLE,7,0,258,
 8,NOT WS_GROUP
-EDITTEXTIDC_EDIT_USER_URL,65,160,185,14,ES_AUTOHSCROLL | 
+EDITTEXTIDC_EDIT_USER_URL,65,160,216,14,ES_AUTOHSCROLL | 
 WS_GROUP
 LTEXT   "User URL:",IDC_SITE_USERURL,15,162,45,8,NOT WS_GROUP
-PUSHBUTTON  "Add",IDC_BUTTON_ADD_URL,255,160,50,14
+PUSHBUTTON  "Add",IDC_BUTTON_ADD_URL,288,160,50,14
 END
 
 IDD_NET DIALOG DISCARDABLE  0, 0, SETUP_STANDARD_DIALOG_DIMS
diff --git a/setup.exe.manifest b/setup.exe.manifest
old mode 100755
new mode 100644
diff --git a/setup64.exe.manifest b/setup64.exe.manifest
old mode 100755
new mode 100644
diff --git a/site.cc b/site.cc
index c33da36..b8b988e 100644
--- a/site.cc
+++ b/site.cc
@@ -154,30 +154,30 @@ site_list_type::init (const string &_url, const string 
&_servername,
   if (url.at(url.length()-1) != '/')
 url.append("/");
 
-  /* displayed_url is protocol and site name part of url */
+  /* displayed_url is area, location, protocol part of url, and servername */
   string::size_type path_offset = url.find ("/", url.find ("//") + 2);
-  displayed_url = url.substr(0, path_offset);
-
-  /* the sorting key is hostname components in reverse order (to sort by 
country code)
- plus the url (to ensure uniqueness) */
-  key = string();
-  string::size_type last_idx = displayed_url.length () - 1;
-  string::size_type idx = url.find_last_of("./", last_idx);
-  if (last_idx - idx == 3)
+  displayed_url = area + " - " + location + " - " + url.substr (0, 
path_offset);
+
+  /* the sorting key is area, location, servername components in reverse order
+   * (to sort by country code) plus the protocol (to ensure uniqueness) */
+  key = area + " " + location + " ";
+  string::size_type last_idx = 

Re: [ITP] moreutils 0.61

2017-11-15 Thread Tony Kelman
>> >> -   parallel: run multiple jobs at once
>>
>> I'd be hesitatnt to package that since it directly clashes with GNU
>> parallel (not available on Cygwin yet).
>
> Hmm.  I wasn't aware of GNU parallel, and I'm not sure how that sort of
> problem is generally handled.  Possibly that could be broken out into a
> separate package to make it easier for folk to install one or the other?
> I considered and decided against breaking the entire lot into separate
> packages, but this is perhaps a good argument for at least separating
> that.

This has been a long source of tension between moreutils' author and the
debian packager (probably fedora and other distros too). I don't know off
the top of my head what solution those distros have come up with for the
name conflict but they may be doing something worth investigating and
imitating.

I have made frequent use of mispipe and ts, and would probably use other
pieces of moreutils if I remembered them better, so I'd use and appreciate
a cygwin package of them - assuming a solution is found to the potential
name conflict.


[newlib-cygwin] Cygwin: pipe_data_available: cleanup code

2017-11-15 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=57732f9b4b4b7b10740ebd24bd85663ea6a096a1

commit 57732f9b4b4b7b10740ebd24bd85663ea6a096a1
Author: Corinna Vinschen 
Date:   Wed Nov 15 20:11:05 2017 +0100

Cygwin: pipe_data_available: cleanup code

* Don't use a bool var to store three states (-1, 0, 1).
* Correctly check for NT_SUCCESS of a function returning NTSTATUS.
* Straighten out code for better readability.

Signed-off-by: Corinna Vinschen 

Diff:
---
 winsup/cygwin/select.cc | 67 +
 1 file changed, 40 insertions(+), 27 deletions(-)

diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index f5a9938..0cd2dc9 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -568,45 +568,58 @@ pipe_data_available (int fd, fhandler_base *fh, HANDLE h, 
bool writing)
 {
   IO_STATUS_BLOCK iosb = {{0}, 0};
   FILE_PIPE_LOCAL_INFORMATION fpli = {0};
+  NTSTATUS status;
 
-  bool res;
   if (fh->has_ongoing_io ())
-res = false;
-  else if (NtQueryInformationFile (h, , , sizeof (fpli),
-  FilePipeLocalInformation))
+return 0;
+
+  status = NtQueryInformationFile (h, , , sizeof (fpli),
+  FilePipeLocalInformation);
+  if (!NT_SUCCESS (status))
 {
   /* If NtQueryInformationFile fails, optimistically assume the
 pipe is writable.  This could happen if we somehow
 inherit a pipe that doesn't permit FILE_READ_ATTRIBUTES
 access on the write end.  */
-  select_printf ("fd %d, %s, NtQueryInformationFile failed",
-fd, fh->get_name ());
-  res = writing ? true : -1;
+  select_printf ("fd %d, %s, NtQueryInformationFile failed, status %y",
+fd, fh->get_name (), status);
+  return writing ? 1 : -1;
+}
+  if (writing)
+{
+   /* If there is anything available in the pipe buffer then signal
+  that.  This means that a pipe could still block since you could
+  be trying to write more to the pipe than is available in the
+  buffer but that is the hazard of select().  */
+  fpli.WriteQuotaAvailable = fpli.OutboundQuota - fpli.ReadDataAvailable;
+  if (fpli.WriteQuotaAvailable > 0)
+   {
+ paranoid_printf ("fd %d, %s, write: size %u, avail %u", fd,
+  fh->get_name (), fpli.OutboundQuota,
+  fpli.WriteQuotaAvailable);
+ return 1;
+   }
+  /* If we somehow inherit a tiny pipe (size < PIPE_BUF), then consider
+the pipe writable only if it is completely empty, to minimize the
+probability that a subsequent write will block.  */
+  if (fpli.OutboundQuota < PIPE_BUF
+ && fpli.WriteQuotaAvailable == fpli.OutboundQuota)
+   {
+ select_printf ("fd, %s, write tiny pipe: size %u, avail %u",
+fd, fh->get_name (), fpli.OutboundQuota,
+fpli.WriteQuotaAvailable);
+ return 1;
+   }
 }
-  else if (!writing)
+  else if (fpli.ReadDataAvailable)
 {
   paranoid_printf ("fd %d, %s, read avail %u", fd, fh->get_name (),
   fpli.ReadDataAvailable);
-  res = !!fpli.ReadDataAvailable;
+  return 1;
 }
-  else if ((res = (fpli.WriteQuotaAvailable = (fpli.OutboundQuota -
-  fpli.ReadDataAvailable
-/* If there is anything available in the pipe buffer then signal
-   that.  This means that a pipe could still block since you could
-   be trying to write more to the pipe than is available in the
-   buffer but that is the hazard of select().  */
-paranoid_printf ("fd %d, %s, write: size %u, avail %u", fd,
-fh->get_name (), fpli.OutboundQuota,
-fpli.WriteQuotaAvailable);
-  else if ((res = (fpli.OutboundQuota < PIPE_BUF &&
-  fpli.WriteQuotaAvailable == fpli.OutboundQuota)))
-/* If we somehow inherit a tiny pipe (size < PIPE_BUF), then consider
-   the pipe writable only if it is completely empty, to minimize the
-   probability that a subsequent write will block.  */
-select_printf ("fd, %s, write tiny pipe: size %u, avail %u",
-  fd, fh->get_name (), fpli.OutboundQuota,
-  fpli.WriteQuotaAvailable);
-  return res ?: -!!(fpli.NamedPipeState & FILE_PIPE_CLOSING_STATE);
+  if (fpli.NamedPipeState & FILE_PIPE_CLOSING_STATE)
+return -1;
+  return 0;
 }
 
 static int


Re: [ITP] moreutils 0.61

2017-11-15 Thread Adam Dinwoodie
On Wednesday 15 November 2017 at 07:31 pm +0100, Achim Gratz wrote:
> Adam Dinwoodie writes:
> > I'm looking to package moreutils, a collection of small Linux utilities.
> > It is already included in Debian and Ubuntu (amongst others), and is
> > released under GPLv2.
> 
> This looks like a really mixed bag… Is there some more documentation
> somewhere on the web?

The only online documentation I'm aware of is on the homepage I linked
to, plus a bunch of folk espousing the benefits of the package.

I guess you could also look at the man pages, either in the packages I
uploaded, or the uncompiled source for them at
https://git.joeyh.name/index.cgi/moreutils.git/tree/.

> >> -   parallel: run multiple jobs at once
> 
> I'd be hesitatnt to package that since it directly clashes with GNU
> parallel (not available on Cygwin yet).

Hmm.  I wasn't aware of GNU parallel, and I'm not sure how that sort of
problem is generally handled.  Possibly that could be broken out into a
separate package to make it easier for folk to install one or the other?
I considered and decided against breaking the entire lot into separate
packages, but this is perhaps a good argument for at least separating
that.


[ITP] cmocka 1.1.1

2017-11-15 Thread Stephen Groat
I posted this a while ago and didn't get any hits/feedback, so I
thought I'd try again. Let me know if there anything missing/wrong,
I'd be happy to correct it.

https://www.stephengroat.com/cmocka/cmocka-1.1.1-1-src.tar.xz
https://www.stephengroat.com/cmocka/cmocka-1.1.1-1.hint
https://www.stephengroat.com/cmocka/libcmocka0/libcmocka0-1.1.1-1.tar.xz
https://www.stephengroat.com/cmocka/libcmocka0/libcmocka0-1.1.1-1.hint
https://www.stephengroat.com/cmocka/libcmocka-devel/libcmocka-devel-.1.1-1.tar.xz
https://www.stephengroat.com/cmocka/libcmocka-devel/libcmocka-devel-.1.1-1.hint

Link to cygport file
(https://gist.github.com/stephengroat/6f3bfe85247c017a76de780fb30f36a4)

Link to libcmocka on Debian stretch
(https://packages.debian.org/stretch/libcmocka0)

License: Apache License 2.0

Thanks,

Stephen


Re: [PATCH] Add FAQ How do I fix find_fast_cwd warnings?

2017-11-15 Thread Brian Inglis
On 2017-11-15 12:46, cyg Simple wrote:
> On 11/15/2017 11:09 AM, Brian Inglis wrote:
>> On 2017-11-15 06:21, Corinna Vinschen wrote:
>>> On Nov 14 23:01, Brian Inglis wrote:
 >From 61fe6f174a840cffdac4ae8772e1a10a68e80beb Mon Sep 17 00:00:00 2001
 From: Brian Inglis 
 Date: Tue, 14 Nov 2017 22:57:02 -0700
 Subject: [PATCH] add FAQ How do I fix find_fast_cwd warnings
>>> Pushed.
>>> Thanks,
>>> Corinna
>> Cheers!
> Thanks for seeing this through Brian.  Gold Star Award in my view.

Thanks but let's wait to see if anyone ever reads this FAQ entry, once it
appears on the site, without posting to the list or us replying with a link, and
goes so far as clicking the email link to let us know what they installed!

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


Re: [PATCH] Add FAQ How do I fix find_fast_cwd warnings?

2017-11-15 Thread cyg Simple
On 11/15/2017 11:09 AM, Brian Inglis wrote:
> On 2017-11-15 06:21, Corinna Vinschen wrote:
>> On Nov 14 23:01, Brian Inglis wrote:
>>> >From 61fe6f174a840cffdac4ae8772e1a10a68e80beb Mon Sep 17 00:00:00 2001
>>> From: Brian Inglis 
>>> Date: Tue, 14 Nov 2017 22:57:02 -0700
>>> Subject: [PATCH] add FAQ How do I fix find_fast_cwd warnings
>>
>> Pushed.
>>
>> Thanks,
>> Corinna
> 
> Cheers!
> 

Thanks for seeing this through Brian.  Gold Star Award in my view.

-- 
cyg Simple


[ANNOUNCEMENT] urw-base35-fonts 20170801-3

2017-11-15 Thread Ken Brown
The following package has been uploaded to the Cygwin distribution:

* urw-base35-fonts-20170801-3

This package contains the 35 fonts in the PostScript Level 2 Core Font
Set.  These fonts are used by ghostscript and xpdf.

This release removes a workaround for an xpdf problem that has now
been fixed properly.

Ken Brown
Cygwin's urw-base35-fonts maintainer.

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



urw-base35-fonts 20170801-3

2017-11-15 Thread Ken Brown
The following package has been uploaded to the Cygwin distribution:

* urw-base35-fonts-20170801-3

This package contains the 35 fonts in the PostScript Level 2 Core Font
Set.  These fonts are used by ghostscript and xpdf.

This release removes a workaround for an xpdf problem that has now
been fixed properly.

Ken Brown
Cygwin's urw-base35-fonts maintainer.


[ANNOUNCEMENT] xpdf 4.00-2

2017-11-15 Thread Ken Brown
The following package has been uploaded to the Cygwin distribution:

* xpdf-4.00-2

Xpdf is an open source viewer for Portable Document Format (PDF)
files.  (These are also sometimes called 'Acrobat' files, from the
name of Adobe's PDF software.)  The Xpdf viewer uses the Qt
cross-platform GUI toolkit.  The Xpdf project also includes a PDF text
extractor, PDF-to-PostScript converter, and various other utilities.
These are not included in the Cygwin xpdf package because poppler
provides similar utilities.

This is a rebuild that fixes a font problem (thanks, Yaakov):

  https://cygwin.com/ml/cygwin/2017-11/msg00119.html

I've also applied a patch from

  https://forum.xpdfreader.com/viewtopic.php?f=1=23#p60

that restores the '-remote' option, although with slightly different
syntax than it had before.

Ken Brown
Cygwin's Xpdf maintainer

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



xpdf 4.00-2

2017-11-15 Thread Ken Brown
The following package has been uploaded to the Cygwin distribution:

* xpdf-4.00-2

Xpdf is an open source viewer for Portable Document Format (PDF)
files.  (These are also sometimes called 'Acrobat' files, from the
name of Adobe's PDF software.)  The Xpdf viewer uses the Qt
cross-platform GUI toolkit.  The Xpdf project also includes a PDF text
extractor, PDF-to-PostScript converter, and various other utilities.
These are not included in the Cygwin xpdf package because poppler
provides similar utilities.

This is a rebuild that fixes a font problem (thanks, Yaakov):

  https://cygwin.com/ml/cygwin/2017-11/msg00119.html

I've also applied a patch from

  https://forum.xpdfreader.com/viewtopic.php?f=1=23#p60

that restores the '-remote' option, although with slightly different
syntax than it had before.

Ken Brown
Cygwin's Xpdf maintainer


Re: [ITP] moreutils 0.61

2017-11-15 Thread Achim Gratz
Adam Dinwoodie writes:
> I'm looking to package moreutils, a collection of small Linux utilities.
> It is already included in Debian and Ubuntu (amongst others), and is
> released under GPLv2.

This looks like a really mixed bag… Is there some more documentation
somewhere on the web?

>> -   parallel: run multiple jobs at once

I'd be hesitatnt to package that since it directly clashes with GNU
parallel (not available on Cygwin yet).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


[ITA] libXpm-noX 3.5.12

2017-11-15 Thread Ken Brown

My cygport file and other files needed for reproducing the build are attached.

Package files
=

D=http://sanibeltranquility.com/cygwin
${D}/x86/release/libXpm-noX/libXpm-noX-3.5.12-1-src.tar.xz
${D}/x86/release/libXpm-noX/libXpm-noX-3.5.12-1.hint
${D}/x86/release/libXpm-noX/libXpm-noX-3.5.12-1.tar.xz
${D}/x86/release/libXpm-noX/libXpm-noX-debuginfo/libXpm-noX-debuginfo-3.5.12-1.hint
${D}/x86/release/libXpm-noX/libXpm-noX-debuginfo/libXpm-noX-debuginfo-3.5.12-1.tar.xz
${D}/x86/release/libXpm-noX/libXpm-noX_4/libXpm-noX_4-3.5.12-1.hint
${D}/x86/release/libXpm-noX/libXpm-noX_4/libXpm-noX_4-3.5.12-1.tar.xz
${D}/x86/release/libXpm-noX/libXpm-noX-devel/libXpm-noX-devel-3.5.12-1.hint
${D}/x86/release/libXpm-noX/libXpm-noX-devel/libXpm-noX-devel-3.5.12-1.tar.xz
${D}/x86_64/release/libXpm-noX/libXpm-noX-3.5.12-1-src.tar.xz
${D}/x86_64/release/libXpm-noX/libXpm-noX-3.5.12-1.hint
${D}/x86_64/release/libXpm-noX/libXpm-noX-3.5.12-1.tar.xz
${D}/x86_64/release/libXpm-noX/libXpm-noX-debuginfo/libXpm-noX-debuginfo-3.5.12-1.hint
${D}/x86_64/release/libXpm-noX/libXpm-noX-debuginfo/libXpm-noX-debuginfo-3.5.12-1.tar.xz
${D}/x86_64/release/libXpm-noX/libXpm-noX_4/libXpm-noX_4-3.5.12-1.hint
${D}/x86_64/release/libXpm-noX/libXpm-noX_4/libXpm-noX_4-3.5.12-1.tar.xz
${D}/x86_64/release/libXpm-noX/libXpm-noX-devel/libXpm-noX-devel-3.5.12-1.hint
${D}/x86_64/release/libXpm-noX/libXpm-noX-devel/libXpm-noX-devel-3.5.12-1.tar.xz

Ken

NAME="libXpm-noX"
VERSION=3.5.12
RELEASE=1
SUMMARY="X.Org X Pixmap library -- no X required"
DESCRIPTION="A version of the X.Org X Pixmap library that does not require an X
server, and provides none of the X-based display routines.  It
provides tools and libraries for manipulating XPM images.  It is
useful if you have an application that needs to read and write Xpm
format files, but either does not display them or handles display
itself, without accessing X11 services."

HOMEPAGE="https://cgit.freedesktop.org/xorg/lib/libXpm;
ORIG_PN="libXpm"
xorg_cat="lib"
SRC_URI="http://xorg.freedesktop.org/releases/individual/${xorg_cat}/${ORIG_PN}-${PV}.tar.bz2;
SRC_URI+=" sxpm-win.c"
SRC_URI+=" README.Cygwin"
SRC_URI+=" postinstall.sh"
SRC_URI+=" preremove.sh"

PATCH_URI="01-build-system.patch"
PATCH_URI+=" 02-msw-doc.patch"
PATCH_URI+=" 03-cxpm-syntax.patch"
PATCH_URI+=" 04-source-code.patch"

PKG_NAMES="libXpm-noX libXpm-noX-devel libXpm-noX_4"

libXpm_noX_CATEGORY="Graphics"
libXpm_noX_SUMMARY="${SUMMARY} (utilities)"

libXpm_noX_devel_CATEGORY="Graphics Libs Devel"
libXpm_noX_devel_SUMMARY="${SUMMARY} (devel)"
libXpm_noX_devel_DESCRIPTIION="${SUMMARY}
This package provides the (specialized) header files
and link libraries in /usr/include/noX and /usr/lib/noX,
respectively."

libXpm_noX_4_CATEGORY="Graphics Libs"
libXpm_noX_4_SUMMARY="${SUMMARY} (runtime)"

libXpm_noX_CONTENTS="--exclude=usr/bin/*.dll usr/bin usr/share"
libXpm_noX_devel_CONTENTS='usr/include usr/lib etc/'
libXpm_noX_4_CONTENTS='usr/bin/cygXpm-noX-4.dll'

DEPEND="xorg-util-macros"

src_compile() {
cd ${S}
cygautoreconf

cd ${B}
cygconf --includedir=/usr/include/noX --libdir=/usr/lib/noX \
  --disable-stat-zfile --with-localedir=no --enable-static
cygmake -j1

# custom rules...
./libtool --mode=compile gcc -I. -I${S}/include -I${S}/include/X11 
-I${S}/src \
-DXPM_NO_X ${CPPFLAGS} ${CFLAGS} -o ${B}/sxpm-win.o -c 
${S}/sxpm-win.c
./libtool --mode=link gcc -o ${B}/sxpm-win.exe ${B}/sxpm-win.o \
./src/libXpm-noX.la
}

HTMLDOCS="doc/FAQ.html doc/README.html"
DOCS="README.Cygwin sxpm/*xpm doc/README.MSW"

src_install() {
cd ${B}
cyginstall

dodir /usr/lib/pkgconfig
${B}/libtool --mode=install /bin/install -m0755 sxpm-win.exe 
${D}/usr/bin/sxpm-noX.exe

exeinto /etc/postinstall
newexe ${S}/postinstall.sh libXpm-noX-devel.sh
exeinto /etc/preremove
newexe ${S}/preremove.sh libXpm-noX-devel.sh

cd ${D}
mv usr/lib/noX/pkgconfig/* usr/lib/pkgconfig

mv usr/bin/cxpm.exe usr/bin/cxpm-noX.exe
mv usr/share/man/man1/cxpm.1usr/share/man/man1/cxpm-noX.1

# don't install manpage for sxpm (it's incorrect, wrt sxpm-win)
rm -f usr/share/man/man1/sxpm.1
}
--- origsrc/libXpm-3.5.12/Makefile.am   2016-12-12 16:44:47.0 -0500
+++ src/libXpm-3.5.12/Makefile.am   2017-11-14 18:59:05.860229400 -0500
@@ -6,7 +6,7 @@ SUBDIRS = doc include man src sxpm cxpm
 ACLOCAL_AMFLAGS = -I m4
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = xpm.pc
+pkgconfig_DATA = xpm-nox.pc
 
 EXTRA_DIST = COPYRIGHT NEWS.old
 
--- origsrc/libXpm-3.5.12/configure.ac  2016-12-12 17:09:25.0 -0500
+++ src/libXpm-3.5.12/configure.ac  2017-11-14 19:03:15.445588100 -0500
@@ -10,8 +10,38 @@ AC_CONFIG_MACRO_DIR([m4])
 # Initialize Automake
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
 
+dnl Check for host type
+AC_CANONICAL_HOST
+
 # Initialize 

Re: [PATCH] Add FAQ How do I fix find_fast_cwd warnings?

2017-11-15 Thread Brian Inglis
On 2017-11-15 06:21, Corinna Vinschen wrote:
> On Nov 14 23:01, Brian Inglis wrote:
>> >From 61fe6f174a840cffdac4ae8772e1a10a68e80beb Mon Sep 17 00:00:00 2001
>> From: Brian Inglis 
>> Date: Tue, 14 Nov 2017 22:57:02 -0700
>> Subject: [PATCH] add FAQ How do I fix find_fast_cwd warnings
> 
> Pushed.
> 
> Thanks,
> Corinna

Cheers!

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


Re: [PATCH] Add FAQ How do I fix find_fast_cwd warnings?

2017-11-15 Thread Corinna Vinschen
On Nov 14 23:01, Brian Inglis wrote:
> >From 61fe6f174a840cffdac4ae8772e1a10a68e80beb Mon Sep 17 00:00:00 2001
> From: Brian Inglis 
> Date: Tue, 14 Nov 2017 22:57:02 -0700
> Subject: [PATCH] add FAQ How do I fix find_fast_cwd warnings

Pushed.

Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


[newlib-cygwin] Cygwin: Add FAQ How do I fix find_fast_cwd warnings?

2017-11-15 Thread Corinna Vinschen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0f88d21e4de242bacca223d597d78f29b474d557

commit 0f88d21e4de242bacca223d597d78f29b474d557
Author: Brian Inglis 
Date:   Tue Nov 14 23:01:42 2017 -0700

Cygwin: Add FAQ How do I fix find_fast_cwd warnings?

Diff:
---
 winsup/doc/faq-using.xml | 50 
 1 file changed, 50 insertions(+)

diff --git a/winsup/doc/faq-using.xml b/winsup/doc/faq-using.xml
index b6b152e..f583b36 100644
--- a/winsup/doc/faq-using.xml
+++ b/winsup/doc/faq-using.xml
@@ -1419,4 +1419,54 @@ such as virtual memory paging and file caching.
   difficult to make fork() work reliably.
 
 
+
+
+  How do I fix find_fast_cwd 
warnings?
+  
+Older Cygwin releases asked users to report problems to the mailing
+   list with the message:
+
+   find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report
+   this problem to the public mailing list mailto:cyg...@cygwin.com;>cyg...@cygwin.com
+Recent Cygwin releases changed this to the message:
+
+   This typically occurs if you're using an older Cygwin version on a 
newer Windows.
+   Please update to the latest available Cygwin version from https://cygwin.com/;>https://cygwin.com/.
+   If the problem persists, please see https://cygwin.com/problems.html;>https://cygwin.com/problems.html.
+This is not serious, just a warning that Cygwin may not always be
+   able to exactly emulate all aspects of Unix current directory handling
+   under your Windows release.
+Unfortunately some projects and products still distribute older
+   Cygwin releases which may not fully support newer Windows releases,
+   instead of installing the current release from the Cygwin project.
+   They also may not provide any obvious way to keep the Cygwin packages
+   their application uses up to date with fixes for security issues and
+   upgrades.
+The solution is simply downloading and running Cygwin Setup,
+   following the instructions in the Internet Setup section of
+   https://cygwin.com/cygwin-ug-net/setup-net.html#internet-setup;>
+   Setting Up Cygwin in the Cygwin User's Guide.
+Please exit from all applications before running Cygwin Setup.
+   When running Setup, you should not change most of the values presented,
+   just select the Next button in most cases, as you
+   already have a Cygwin release installed, and only want to upgrade your
+   current installation.
+   You should make your own selection if the internet connection to your
+   system requires a proxy; and you must always pick an up to date Cygwin
+   download (mirror) site, preferably the site nearest to your system for
+   faster downloads, as shown, with more details to help you choose, on the
+   https://cygwin.com/mirrors.html;>
+   Mirror Sites web page.
+Cygwin Setup will download and apply upgrades to all packages
+   required for Cygwin itself and installed applications.
+   Any problems with applying updates, or the application after updates,
+   should be reported to the project or product supplier for remedial
+   action.
+As Cygwin is a volunteer project, unable to provide support for older
+   releases installed by projects or products, it would be helpful to let
+   other users know what project or product you installed, in a quick
+   mailto:cyg...@cygwin.com?subject=Application%20with%20old%20Cygwin%20warning%20about%20FAST_CWD;>
+   email.
+  
+
 


[ITP] moreutils 0.61

2017-11-15 Thread Adam Dinwoodie
I'm looking to package moreutils, a collection of small Linux utilities.
It is already included in Debian and Ubuntu (amongst others), and is
released under GPLv2.

Homepage: https://joeyh.name/code/moreutils/
Debian package: https://packages.debian.org/sid/utils/moreutils
Ubuntu package: https://packages.ubuntu.com/zesty/moreutils
Proposed Cygwin packaging: https://tastycake.net/~adam/cygwin/

Quoting from the moreutils homepage:

> Probably the most general purpose tool in moreutils so far is
> sponge(1), which lets you do things like this:
>
> % sed "s/root/toor/" /etc/passwd | grep -v joey | sponge /etc/passwd
>
> There are lots more listed below, and I'm always interested to add
> more to the collection, as long as they're suitably general-purpose,
> and don't duplicate other well-known tools.
>
> -   chronic: runs a command quietly unless it fails
> -   combine: combine the lines in two files using boolean operations
> -   errno: look up errno names and descriptions
> -   ifdata: get network interface info without parsing ifconfig output
> -   ifne: run a program if the standard input is not empty
> -   isutf8: check if a file or standard input is utf-8
> -   lckdo: execute a program with a lock held
> -   mispipe: pipe two commands, returning the exit status of the first
> -   parallel: run multiple jobs at once
> -   pee: tee standard input to pipes
> -   sponge: soak up standard input and write to a file
> -   ts: timestamp standard input
> -   vidir: edit a directory in your text editor
> -   vipe: insert a text editor into a pipe
> -   zrun: automatically uncompress arguments to command


[ANNOUNCEMENT] Updated: gcc-6.4.0-4 (x86/x86_64)

2017-11-15 Thread JonY
gcc-6.4.0-4 has been uploaded for Cygwin.

This is a rebuild of -3 to use the new isl 0.16.1-1 library.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there. It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com  cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.



signature.asc
Description: OpenPGP digital signature


Updated: gcc-6.4.0-4 (x86/x86_64)

2017-11-15 Thread JonY
gcc-6.4.0-4 has been uploaded for Cygwin.

This is a rebuild of -3 to use the new isl 0.16.1-1 library.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there. It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com  cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.



signature.asc
Description: OpenPGP digital signature


Re: [RFC] Minimal Debuginfo by default

2017-11-15 Thread David Stacey

On 15/11/17 07:38, Yaakov Selkowitz wrote:

The following concept would allow for sensible backtraces without
installing a -debuginfo, at the expense of a moderate size increase of
binaries (particularly with C++ code):

https://fedoraproject.org/wiki/Changes/MingwMiniDebugInfo


Did you mean https://fedoraproject.org/wiki/Features/MiniDebugInfo 
Presumably you intend this for Cygwin binaries.



The patch for cygport would be minimal.  Is it worth the size increase?


The benefit to Fedora is obvious, in that it would increase the quality 
of the automated bug reports. Do we have an equivalent in Cygwin (or is 
one planned)? Right now, we don't have so many backtraces sent in to the 
main list, but who knows - if they were easier to generate then we might.


How would this work for Cygwin? Would we require all the lib.* packages 
to be rebuilt?


Dave.



Re: BSD file flags support in Cygwin?

2017-11-15 Thread Corinna Vinschen
On Nov 14 19:17, Bill Zissimopoulos wrote:
> Corinna, thanks for your answer.
> 
> My question was largely to confirm my understanding as I probably do not
> have time to produce such a patch currently. For the benefit of the
> discussion and to assist any future attempts at doing this:
> 
> Chflags(2) and friends would be relatively easy to implement. OTOH the
> BSD’s and OSX use stat(2) to report file flags in st_flags. Since Cygwin
> lacks an st_flags field, we would have to somehow change struct stat to
> accommodate it. Do you have guidance on how to handle such a change? Would
> you even want such a change? [I suspect not.]

You're right.  Struct stat is exposed to user space so changing this is
bound to break existing applications.  We *might* get away lightly with
just adding a member to the end as in this case, but is the support for
DOS flags actually worth it?  It's still a hassle to support new and old
apps in Cygwin in such cases.

> [I know some OS’es have had to deal with stat(2) changes over the years,
> but I am not as familiar with Cygwin history.]

An executable has the version info of the Cygwin version at the
time of building compiled in.  This is used in Cygwin to check
what an executable expects.

See winsup/cygwin/include/cygwin/version.h and the usage of the
checks throughout the code.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature