[64bit] GCC 4.8.1-3 uploaded

2013-07-28 Thread JonY
Hi,

GCC 4.8.3-1 uploaded to fix a bug in libgcc reported against a pythond
crash. You may need rebuild your programs and library for it to take effect.



signature.asc
Description: OpenPGP digital signature


Re: [64bit] GCC 4.8.1-3 uploaded

2013-07-28 Thread Ken Brown

On 7/28/2013 7:04 AM, JonY wrote:

Hi,

GCC 4.8.3-1 uploaded to fix a bug in libgcc reported against a pythond
crash. You may need rebuild your programs and library for it to take effect.


Could you give a little more detail?  How do maintainers know whether or 
not they need to rebuild their packages?


Ken


Re: [64bit] GCC 4.8.1-3 uploaded

2013-07-28 Thread JonY
On 7/28/2013 20:16, Ken Brown wrote:
 On 7/28/2013 7:04 AM, JonY wrote:
 Hi,

 GCC 4.8.3-1 uploaded to fix a bug in libgcc reported against a pythond
 crash. You may need rebuild your programs and library for it to take
 effect.
 
 Could you give a little more detail?  How do maintainers know whether or
 not they need to rebuild their packages?
 

If you use static libgcc, you should rebuild. If you use cyggcc_s dll,
you should be safe after updating.






signature.asc
Description: OpenPGP digital signature


Re: Windows 8 Terminal Shortcut Start

2013-07-28 Thread Robert Pendell
On Sat, Jul 27, 2013 at 11:59 AM, Sander Torfs  wrote:
 Hi all,

 I recentely decided to go from the x64 version of cygwin to the x86 version
 (because the x64 version doesn't support unison), and I can't get rid of the
 shortcut in Start; Clicking uninstall takes me to 'uninstall a program', but
 there is now cygwin uninstaller, it needs to be done manually. While
 installing cygwin, I checked the box that said 'Add to Start'. Any ideas?

 All help appreciated!
 Sandr

Do this.  Right click the icon, choose open file location, delete the
file from there.

I assume that's what you wanted and not just to unpin it from the start screen.

Really though.  This isn't a Cygwin issue.  It's more a Windows 8
issue and there are plenty of forums for that.


Robert Pendell
A perfect world is one of chaos.

--
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: setup-x86_64: postinstall errors: Package bash 1, Package a2ps 2 and xinit 134

2013-07-28 Thread Jon TURNEY
On 25/07/2013 05:24, Kenneth Wolcott wrote:
   I downloaded a fresh setup-x86_64.exe from cygwin.com and then ran
 the update again.
 
   Now I get only this postinstall error:
 
   Package: xinit
 xinit.sh exit code 134
I can reproduce this problem, so I had a go at investigating and fixing it.

mkshortcut appears to exiting with SIGABRT in free(), which suggests some heap
corruption, which I managed to track down after a bit of work with dmalloc.

This appears to be a long standing bug, which for some reason manifests itself
more severely on x86_64.

xstrncat() does not allow for the terminating null byte in the memory
allocation it makes.  strncat(dest, src, n) writes n+1 bytes to dest (n from
src plus the terminating null byte, which is always appended).  So, the size
of dest must be at least strlen(dest)+n+1.  Currently only strlen(dest)+n
bytes are allocated.

Trivial patch attached.

--- origsrc/cygutils-1.4.12/src/mkshortcut/mkshortcut.c 2013-04-28 
00:17:56.0 +0100
+++ src/cygutils-1.4.12/src/mkshortcut/mkshortcut.c 2013-07-28 
22:36:54.890625000 +0100
@@ -394,7 +394,7 @@ xstrndup (const char *string, size_t n)
 static char *
 xstrncat (char **dest, const char *add, size_t n)
 {
-  size_t len = strlen (*dest) + n;
+  size_t len = strlen (*dest) + n + 1;
   char *s = (char *) realloc (*dest, len * sizeof (char));
   if (!s)
   {

--
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: setup-x86_64: postinstall errors: Package bash 1, Package a2ps 2 and xinit 134

2013-07-28 Thread Charles Wilson

On 7/28/2013 5:47 PM, Jon TURNEY wrote:

On 25/07/2013 05:24, Kenneth Wolcott wrote:

   I downloaded a fresh setup-x86_64.exe from cygwin.com and then ran
the update again.

   Now I get only this postinstall error:

   Package: xinit
 xinit.sh exit code 134

I can reproduce this problem, so I had a go at investigating and fixing it.

mkshortcut appears to exiting with SIGABRT in free(), which suggests some heap
corruption, which I managed to track down after a bit of work with dmalloc.

This appears to be a long standing bug, which for some reason manifests itself
more severely on x86_64.

xstrncat() does not allow for the terminating null byte in the memory
allocation it makes.  strncat(dest, src, n) writes n+1 bytes to dest (n from
src plus the terminating null byte, which is always appended).  So, the size
of dest must be at least strlen(dest)+n+1.  Currently only strlen(dest)+n
bytes are allocated.

Trivial patch attached.


Thanks, Jon. I'll roll a new release of cygutils immediately for both 
x86 and x86_64.


--
Chuck



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



[ANNOUNCEMENT] Updated: {cygutils/cygutils-extra/cygutils-x11}-1.4.14-1

2013-07-28 Thread Charles Wilson
Cygutils is a collection of useful(?) tools for the cygwin
platform. This is a content update and feature enhancement.

This is a bugfix update. Hopefully it corrects the issue where
the postinstall script for xinit fails to create a Start Menu
shortcut and instead reports an error.

CHANGES (from cygutils-1.4.14-1)

* cygdrop: Fix bug in obtaining security token information
  Patch from Corinna Vinschen, reported by Achim Gratz.
* mkshortcut: Fix longstanding memory allocation bug (Patch
  by Jon Turney; reported by...practically everyone).

TODO (call for patches):

* Update (some?) utilities to handle unicode filenames, similar to
  IWAMURO Motonori's work on cygstart. Which utilities need this?
  mkshortcut and lpr, probably. Any others?

--
Charles Wilson
volunteer cygutils maintainer for cygwin



To update your installation, click on the Install Cygwin now link
on the http://cygwin.com/ web page.  This downloads setup.exe to
your system.  Then, run setup and answer all of the questions.

  *** 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@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.


--
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: BLODA extension: console interoperability

2013-07-28 Thread Pavel Fedin
 Hello!

 The console that a Cygwin program sees is not just the raw Windows
 console.  Hopefully the Cygwin version of ncurses understands that
 Cygwin extends the functionality of the console so that a big subset of
 standard control sequences will just work.

 I know this. But i was talking about running MinGW (i. e. Windows native)
software with MinGW nCurses under such a console.
 I believe, for case Cygwin software cygwin.dll fixes this up and interprets
missing ESC sequences. But if we run MinGW program from within this console,
it won't have this functionality and will talk to the console directly.
 In other case, we might run this program from within MinTTY. As far as i
can understand, MinTTY is a complete terminal emulator which understands all
ESC sequences by itself. In this case MinGW program will need to use ESC
sequences too. But if MinGW program will think that it's running on a real
Windows console, it will try to use Windows API, which obviously will not
work.
 I agree that this is kind of corner case, but it's still there, if we talk
about interoperability.

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia



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



Updated: {cygutils/cygutils-extra/cygutils-x11}-1.4.14-1

2013-07-28 Thread Charles Wilson
Cygutils is a collection of useful(?) tools for the cygwin
platform. This is a content update and feature enhancement.

This is a bugfix update. Hopefully it corrects the issue where
the postinstall script for xinit fails to create a Start Menu
shortcut and instead reports an error.

CHANGES (from cygutils-1.4.14-1)

* cygdrop: Fix bug in obtaining security token information
  Patch from Corinna Vinschen, reported by Achim Gratz.
* mkshortcut: Fix longstanding memory allocation bug (Patch
  by Jon Turney; reported by...practically everyone).

TODO (call for patches):

* Update (some?) utilities to handle unicode filenames, similar to
  IWAMURO Motonori's work on cygstart. Which utilities need this?
  mkshortcut and lpr, probably. Any others?

--
Charles Wilson
volunteer cygutils maintainer for cygwin



To update your installation, click on the Install Cygwin now link
on the http://cygwin.com/ web page.  This downloads setup.exe to
your system.  Then, run setup and answer all of the questions.

  *** 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@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.