public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
@ 2017-06-22 14:31 Corinna Vinschen
  2017-06-23 17:53 ` Marco Atzeri
  2017-06-24  7:35 ` Marco Atzeri
  0 siblings, 2 replies; 17+ messages in thread
From: Corinna Vinschen @ 2017-06-22 14:31 UTC (permalink / raw)
  To: cygwin

Hi folks,


I uploaded a new Cygwin test release 2.8.1-0.1

I'm planning for a release next week.  Please test.

=======================================================================

What's new:
-----------

- Allow unprivileged symlink creation in Windows 10 1703 and later.

- New API: reallocarray

- New API: strverscmp, versionsort.


What changed:
-------------

- The XSI form of sigpause, which removes the given signal from the process's
  signal mask, is made available when compiling with _XOPEN_SOURCE or
  _GNU_SOURCE.

Bug Fixes
---------

- Fix build problem with GCC 6.
  Addresses: https://cygwin.com/ml/cygwin-patches/2017-q2/msg00014.html

- Fix stat.st_blocks for files compressed with CompactOS method.
  Addresses: https://cygwin.com/ml/cygwin-patches/2017-q2/msg00026.html

- Fix extreme lagging during strace in certain scenarios.
  Addresses: https://cygwin.com/ml/cygwin/2017-04/msg00240.html

- Fix unwanted decimal point localization in /proc/loadavg
  Addresses: Reported on IRC.

- Fix ldd potentially looping on non-continuable exception
  Addresses: https://cygwin.com/ml/cygwin-patches/2017-q2/msg00002.html

- Fix buffer overflow problem in wcsxfrm/wcsxfrm_l.
  Addresses: https://cygwin.com/ml/cygwin/2017-05/msg00149.html

- Fix crash if env var name starts with non-ASCII char
  Addresses: https://cygwin.com/ml/cygwin/2017-05/msg00330.html

- Fix return value of lrint{f,l} on x86_64 Cygwin.
  Addresses: https://cygwin.com/ml/cygwin/2017-05/msg00388.html

- Fix native language support in regtool(1).
  Addresses: https://cygwin.com/ml/cygwin/2017-05/msg00245.html

=======================================================================


Thanks,
Corinna

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

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-22 14:31 [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1 Corinna Vinschen
@ 2017-06-23 17:53 ` Marco Atzeri
  2017-06-23 18:25   ` Corinna Vinschen
  2017-06-24  7:35 ` Marco Atzeri
  1 sibling, 1 reply; 17+ messages in thread
From: Marco Atzeri @ 2017-06-23 17:53 UTC (permalink / raw)
  To: cygwin

On 22/06/2017 15:58, Corinna Vinschen wrote:
> Hi folks,
>
>
> I uploaded a new Cygwin test release 2.8.1-0.1
>
> I'm planning for a release next week.  Please test.
>

$ /etc/postinstall/cygwin-doc.sh
Can't find directory '/usr/share/doc/cygwin-2.8.1'


$ ls /usr/share/doc |grep cygwin
cygwin-doc
cygwin-x-doc


> Thanks,
> Corinna

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-23 17:53 ` Marco Atzeri
@ 2017-06-23 18:25   ` Corinna Vinschen
  2017-06-23 18:47     ` Brian Inglis
  0 siblings, 1 reply; 17+ messages in thread
From: Corinna Vinschen @ 2017-06-23 18:25 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 517 bytes --]

On Jun 23 19:52, Marco Atzeri wrote:
> On 22/06/2017 15:58, Corinna Vinschen wrote:
> > Hi folks,
> > 
> > 
> > I uploaded a new Cygwin test release 2.8.1-0.1
> > 
> > I'm planning for a release next week.  Please test.
> > 
> 
> $ /etc/postinstall/cygwin-doc.sh
> Can't find directory '/usr/share/doc/cygwin-2.8.1'

Fixed in git.


Thanks,
Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-23 18:25   ` Corinna Vinschen
@ 2017-06-23 18:47     ` Brian Inglis
  2017-06-26  8:31       ` Corinna Vinschen
  0 siblings, 1 reply; 17+ messages in thread
From: Brian Inglis @ 2017-06-23 18:47 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

On 2017-06-23 12:25, Corinna Vinschen wrote:
> On Jun 23 19:52, Marco Atzeri wrote:
>> On 22/06/2017 15:58, Corinna Vinschen wrote:
>>> I uploaded a new Cygwin test release 2.8.1-0.1
>>> I'm planning for a release next week.  Please test.
>> $ /etc/postinstall/cygwin-doc.sh
>> Can't find directory '/usr/share/doc/cygwin-2.8.1'
> Fixed in git.

Darn you were fast!
You might want to apply the rest of the attached format-patch,
as it makes things clearer, more maintainable, and shorter.

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

[-- Attachment #2: 0001-cygwin-doc-Fix-doc-install-path-in-postinstall-script.patch --]
[-- Type: text/plain, Size: 2408 bytes --]

From 3f92d6ec6f0e715cbd6629634e66a306603532a5 Mon Sep 17 00:00:00 2001
From: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Date: Fri, 23 Jun 2017 12:38:16 -0600
Subject: [PATCH] cygwin: doc: Fix doc install path in postinstall script

---
 winsup/doc/etc.postinstall.cygwin-doc.sh | 62 +++++++++++---------------------
 1 file changed, 20 insertions(+), 42 deletions(-)

diff --git a/winsup/doc/etc.postinstall.cygwin-doc.sh b/winsup/doc/etc.postinstall.cygwin-doc.sh
index dbb641219..ff1d9624e 100755
--- a/winsup/doc/etc.postinstall.cygwin-doc.sh
+++ b/winsup/doc/etc.postinstall.cygwin-doc.sh
@@ -26,9 +26,7 @@ do
 	fi
 done
 
-cygver=$($un -r)	# release - numeric version (build info)
-cygver=${cygver%\(*\)}	# strip build info
-doc=/usr/share/doc/cygwin-$cygver
+doc=/usr/share/doc/cygwin-doc
 html=$doc/html
 smpc_dir="$($cygp $CYGWINFORALL -P -U)/Cygwin"
 
@@ -50,43 +48,23 @@ fi
 # mkshortcut works only in current directory - change to Cygwin Start Menu
 cd "$smpc_dir" || exit 2	# quit if not found
 
-# User Guide PDF & HTML
-p=$doc/cygwin-ug-net.pdf
-n="User Guide (PDF)"
-d="PDF Cygwin User Guide"
-
-[ -r $p ] && $mks -n "$n" -d "$d" $p
-
-i=$html/cygwin-ug-net/index.html
-n="User Guide (HTML)"
-d="HTML Cygwin User Guide"
-
-[ -r $i ] && $mks -n "$n" -d "$d" $i
-
-# API PDF & HTML
-p=$doc/cygwin-api.pdf
-n="API (PDF)"
-d="PDF Cygwin API Reference"
-
-[ -r $p ] && $mks -n "$n" -d "$d" $p
-
-i=$html/cygwin-api/index.html
-n="API (HTML)"
-d="HTML Cygwin API Reference"
-
-[ -r $i ] && $mks -n "$n" -d "$d" $i
-
-# Home Page URL
-h=$site/index.html
-n="Home Page"
-d="Cygwin $n"
-
-$mks -n "$n" -d "$d" $h
-
-# FAQ URL
-h=$site/faq.html
-n="FAQ"
-d="Cygwin Frequently Asked Questions (with answers)"
-
-$mks -n "$n" -d "$d" $h
+# create User Guide and API PDF and HTML shortcuts
+while read t n d
+do
+	[ -r $t ] && $mks -n "$n" -d "$d" $t
+done <<EOF
+$doc/cygwin-ug-net.pdf		User\ Guide\ \(PDF\)  Cygwin\ User\ Guide\ PDF
+$html/cygwin-ug-net/index.html	User\ Guide\ \(HTML\) Cygwin\ User\ Guide\ HTML
+$doc/cygwin-api.pdf		API\ \(PDF\)	Cygwin\ API\ Reference\ PDF
+$html/cygwin-api/index.html	API\ \(HTML\)	Cygwin\ API\ Reference\ HTML
+EOF
+
+# create Home Page and FAQ URL link shortcuts
+while read t n d
+do
+	$mks -n "$n" -d "$d" $t 
+done <<EOF
+$site/index.html	Home\ Page	Cygwin\ Home\ Page\ Link
+$site/faq.html		FAQ	Cygwin\ Frequently\ Asked\ Questions\ Link
+EOF
 
-- 
2.12.3


[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-22 14:31 [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1 Corinna Vinschen
  2017-06-23 17:53 ` Marco Atzeri
@ 2017-06-24  7:35 ` Marco Atzeri
  2017-06-26  8:32   ` Corinna Vinschen
  1 sibling, 1 reply; 17+ messages in thread
From: Marco Atzeri @ 2017-06-24  7:35 UTC (permalink / raw)
  To: cygwin

On 22/06/2017 15:58, Corinna Vinschen wrote:
> Hi folks,
>
>
> I uploaded a new Cygwin test release 2.8.1-0.1
>
> I'm planning for a release next week.  Please test.

the semaphore lock issues on postgresql are gone.

The test on 9.6.3 is now fine so I will release after 2.8.1
became stable


> Thanks,
> Corinna

Thanks
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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-23 18:47     ` Brian Inglis
@ 2017-06-26  8:31       ` Corinna Vinschen
  2017-06-26 16:25         ` Brian Inglis
  0 siblings, 1 reply; 17+ messages in thread
From: Corinna Vinschen @ 2017-06-26  8:31 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

On Jun 23 12:47, Brian Inglis wrote:
> On 2017-06-23 12:25, Corinna Vinschen wrote:
> > On Jun 23 19:52, Marco Atzeri wrote:
> >> On 22/06/2017 15:58, Corinna Vinschen wrote:
> >>> I uploaded a new Cygwin test release 2.8.1-0.1
> >>> I'm planning for a release next week.  Please test.
> >> $ /etc/postinstall/cygwin-doc.sh
> >> Can't find directory '/usr/share/doc/cygwin-2.8.1'
> > Fixed in git.
> 
> Darn you were fast!
> You might want to apply the rest of the attached format-patch,
> as it makes things clearer, more maintainable, and shorter.

Sure, but your patch doesn't apply cleanly.  Care to check?


Thanks,
Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-24  7:35 ` Marco Atzeri
@ 2017-06-26  8:32   ` Corinna Vinschen
  0 siblings, 0 replies; 17+ messages in thread
From: Corinna Vinschen @ 2017-06-26  8:32 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

On Jun 24 09:34, Marco Atzeri wrote:
> On 22/06/2017 15:58, Corinna Vinschen wrote:
> > Hi folks,
> > 
> > 
> > I uploaded a new Cygwin test release 2.8.1-0.1
> > 
> > I'm planning for a release next week.  Please test.
> 
> the semaphore lock issues on postgresql are gone.
> 
> The test on 9.6.3 is now fine so I will release after 2.8.1
> became stable

:like:


Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-26  8:31       ` Corinna Vinschen
@ 2017-06-26 16:25         ` Brian Inglis
  2017-06-26 16:42           ` Corinna Vinschen
  0 siblings, 1 reply; 17+ messages in thread
From: Brian Inglis @ 2017-06-26 16:25 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

On 2017-06-26 02:31, Corinna Vinschen wrote:
> On Jun 23 12:47, Brian Inglis wrote:
>> On 2017-06-23 12:25, Corinna Vinschen wrote:
>>> On Jun 23 19:52, Marco Atzeri wrote:
>>>> On 22/06/2017 15:58, Corinna Vinschen wrote:
>>>>> I uploaded a new Cygwin test release 2.8.1-0.1
>>>>> I'm planning for a release next week.  Please test.
>>>> $ /etc/postinstall/cygwin-doc.sh
>>>> Can't find directory '/usr/share/doc/cygwin-2.8.1'
>>> Fixed in git.
>>
>> Darn you were fast!
>> You might want to apply the rest of the attached format-patch,
>> as it makes things clearer, more maintainable, and shorter.
> 
> Sure, but your patch doesn't apply cleanly.  Care to check?

Refreshed, retried, reattached - not seeing any differences.
Care to give me hint to get a clean format-patch of a changed file against your
master?
My approach tends to be scorched earth: rm -rf repo && git clone repo!
Ramadan is just past, so not a new moon, should I wait to sacrifice more of my
hair, to appease git? ;^>

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

[-- Attachment #2: 0001-cygwin-doc-Fix-doc-install-path-in-postinstall-script.patch --]
[-- Type: text/plain, Size: 2408 bytes --]

From 3f92d6ec6f0e715cbd6629634e66a306603532a5 Mon Sep 17 00:00:00 2001
From: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Date: Fri, 23 Jun 2017 12:38:16 -0600
Subject: [PATCH] cygwin: doc: Fix doc install path in postinstall script

---
 winsup/doc/etc.postinstall.cygwin-doc.sh | 62 +++++++++++---------------------
 1 file changed, 20 insertions(+), 42 deletions(-)

diff --git a/winsup/doc/etc.postinstall.cygwin-doc.sh b/winsup/doc/etc.postinstall.cygwin-doc.sh
index dbb641219..ff1d9624e 100755
--- a/winsup/doc/etc.postinstall.cygwin-doc.sh
+++ b/winsup/doc/etc.postinstall.cygwin-doc.sh
@@ -26,9 +26,7 @@ do
 	fi
 done
 
-cygver=$($un -r)	# release - numeric version (build info)
-cygver=${cygver%\(*\)}	# strip build info
-doc=/usr/share/doc/cygwin-$cygver
+doc=/usr/share/doc/cygwin-doc
 html=$doc/html
 smpc_dir="$($cygp $CYGWINFORALL -P -U)/Cygwin"
 
@@ -50,43 +48,23 @@ fi
 # mkshortcut works only in current directory - change to Cygwin Start Menu
 cd "$smpc_dir" || exit 2	# quit if not found
 
-# User Guide PDF & HTML
-p=$doc/cygwin-ug-net.pdf
-n="User Guide (PDF)"
-d="PDF Cygwin User Guide"
-
-[ -r $p ] && $mks -n "$n" -d "$d" $p
-
-i=$html/cygwin-ug-net/index.html
-n="User Guide (HTML)"
-d="HTML Cygwin User Guide"
-
-[ -r $i ] && $mks -n "$n" -d "$d" $i
-
-# API PDF & HTML
-p=$doc/cygwin-api.pdf
-n="API (PDF)"
-d="PDF Cygwin API Reference"
-
-[ -r $p ] && $mks -n "$n" -d "$d" $p
-
-i=$html/cygwin-api/index.html
-n="API (HTML)"
-d="HTML Cygwin API Reference"
-
-[ -r $i ] && $mks -n "$n" -d "$d" $i
-
-# Home Page URL
-h=$site/index.html
-n="Home Page"
-d="Cygwin $n"
-
-$mks -n "$n" -d "$d" $h
-
-# FAQ URL
-h=$site/faq.html
-n="FAQ"
-d="Cygwin Frequently Asked Questions (with answers)"
-
-$mks -n "$n" -d "$d" $h
+# create User Guide and API PDF and HTML shortcuts
+while read t n d
+do
+	[ -r $t ] && $mks -n "$n" -d "$d" $t
+done <<EOF
+$doc/cygwin-ug-net.pdf		User\ Guide\ \(PDF\)  Cygwin\ User\ Guide\ PDF
+$html/cygwin-ug-net/index.html	User\ Guide\ \(HTML\) Cygwin\ User\ Guide\ HTML
+$doc/cygwin-api.pdf		API\ \(PDF\)	Cygwin\ API\ Reference\ PDF
+$html/cygwin-api/index.html	API\ \(HTML\)	Cygwin\ API\ Reference\ HTML
+EOF
+
+# create Home Page and FAQ URL link shortcuts
+while read t n d
+do
+	$mks -n "$n" -d "$d" $t 
+done <<EOF
+$site/index.html	Home\ Page	Cygwin\ Home\ Page\ Link
+$site/faq.html		FAQ	Cygwin\ Frequently\ Asked\ Questions\ Link
+EOF
 
-- 
2.12.3


[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-26 16:25         ` Brian Inglis
@ 2017-06-26 16:42           ` Corinna Vinschen
  2017-06-26 20:00             ` Brian Inglis
  0 siblings, 1 reply; 17+ messages in thread
From: Corinna Vinschen @ 2017-06-26 16:42 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]

On Jun 26 10:25, Brian Inglis wrote:
> On 2017-06-26 02:31, Corinna Vinschen wrote:
> > On Jun 23 12:47, Brian Inglis wrote:
> >> On 2017-06-23 12:25, Corinna Vinschen wrote:
> >>> On Jun 23 19:52, Marco Atzeri wrote:
> >>>> On 22/06/2017 15:58, Corinna Vinschen wrote:
> >>>>> I uploaded a new Cygwin test release 2.8.1-0.1
> >>>>> I'm planning for a release next week.  Please test.
> >>>> $ /etc/postinstall/cygwin-doc.sh
> >>>> Can't find directory '/usr/share/doc/cygwin-2.8.1'
> >>> Fixed in git.
> >>
> >> Darn you were fast!
> >> You might want to apply the rest of the attached format-patch,
> >> as it makes things clearer, more maintainable, and shorter.
> > 
> > Sure, but your patch doesn't apply cleanly.  Care to check?
> 
> Refreshed, retried, reattached - not seeing any differences.

Weird.  See below.

> Care to give me hint to get a clean format-patch of a changed file against your
> master?
> My approach tends to be scorched earth: rm -rf repo && git clone repo!

`git pull' should suffice...

> Ramadan is just past, so not a new moon, should I wait to sacrifice more of my
> hair, to appease git? ;^>

git am fails because your patch has still the already applied first
hunk.  If you remove that, and ideally change the subject to match
what the remaining parts of the patch are doing, it should fly.


Thanks,
Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-26 16:42           ` Corinna Vinschen
@ 2017-06-26 20:00             ` Brian Inglis
  2017-06-27  1:20               ` Andrey Repin
  2017-06-27  7:38               ` Corinna Vinschen
  0 siblings, 2 replies; 17+ messages in thread
From: Brian Inglis @ 2017-06-26 20:00 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1728 bytes --]

On 2017-06-26 10:42, Corinna Vinschen wrote:
> On Jun 26 10:25, Brian Inglis wrote:
>> On 2017-06-26 02:31, Corinna Vinschen wrote:
>>> On Jun 23 12:47, Brian Inglis wrote:
>>>> On 2017-06-23 12:25, Corinna Vinschen wrote:
>>>>> On Jun 23 19:52, Marco Atzeri wrote:
>>>>>> On 22/06/2017 15:58, Corinna Vinschen wrote:
>>>>>>> I uploaded a new Cygwin test release 2.8.1-0.1
>>>>>>> I'm planning for a release next week.  Please test.
>>>>>> $ /etc/postinstall/cygwin-doc.sh
>>>>>> Can't find directory '/usr/share/doc/cygwin-2.8.1'
>>>>> Fixed in git.
>>>>
>>>> Darn you were fast!
>>>> You might want to apply the rest of the attached format-patch,
>>>> as it makes things clearer, more maintainable, and shorter.
>>>
>>> Sure, but your patch doesn't apply cleanly.  Care to check?
>>
>> Refreshed, retried, reattached - not seeing any differences.
> 
> Weird.  See below.
> 
>> Care to give me hint to get a clean format-patch of a changed file against your
>> master?
>> My approach tends to be scorched earth: rm -rf repo && git clone repo!
> 
> `git pull' should suffice...
> 
>> Ramadan is just past, so not a new moon, should I wait to sacrifice more of my
>> hair, to appease git? ;^>
> 
> git am fails because your patch has still the already applied first
> hunk.  If you remove that, and ideally change the subject to match
> what the remaining parts of the patch are doing, it should fly.
Thanks for your patience.
Recloned, recopied from my original, reformated patch attached: hashbang changed
as this script only needs {da,}sh.
Is there an option so git will download your updated source, reject my patched
source in place, and not just overwrite it?

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

[-- Attachment #2: 0001-replace-shortcut-parameter-assignments-with-read-loo.patch --]
[-- Type: text/plain, Size: 2833 bytes --]

From 68e3280e0bce70b3c296b4815124d7fafc84774c Mon Sep 17 00:00:00 2001
From: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Date: Mon, 26 Jun 2017 13:43:40 -0600
Subject: [PATCH] replace shortcut parameter assignments with read loops, run
 with sh

---
 winsup/doc/etc.postinstall.cygwin-doc.sh | 64 ++++++++++----------------------
 1 file changed, 20 insertions(+), 44 deletions(-)

diff --git a/winsup/doc/etc.postinstall.cygwin-doc.sh b/winsup/doc/etc.postinstall.cygwin-doc.sh
index 124a5ddf5..3a9457fbb 100755
--- a/winsup/doc/etc.postinstall.cygwin-doc.sh
+++ b/winsup/doc/etc.postinstall.cygwin-doc.sh
@@ -1,12 +1,8 @@
-#!/bin/bash
+#!/bin/sh
 # /etc/postinstall/cygwin-doc.sh - cygwin-doc postinstall script.
 # installs Cygwin Start Menu shortcuts for Cygwin User Guide and API PDF and
 # HTML if in doc dir, and links to Cygwin web site home page and FAQ
 #
-# Assumes you are running setup.exe 2.510.2.2 or newer, executed by /bin/bash
-# and not /bin/[da]sh (if you are running an older setup.exe, this postinstall
-# script can't do anything).
-#
 # CYGWINFORALL=-A if install for All Users
 # installs local shortcuts for All Users or Current User in
 # {ProgramData,~/Appdata/Roaming}/Microsoft/Windows/Start Menu/Programs/Cygwin/
@@ -48,43 +44,23 @@ fi
 # mkshortcut works only in current directory - change to Cygwin Start Menu
 cd "$smpc_dir" || exit 2	# quit if not found
 
-# User Guide PDF & HTML
-p=$doc/cygwin-ug-net.pdf
-n="User Guide (PDF)"
-d="PDF Cygwin User Guide"
-
-[ -r $p ] && $mks -n "$n" -d "$d" $p
-
-i=$html/cygwin-ug-net/index.html
-n="User Guide (HTML)"
-d="HTML Cygwin User Guide"
-
-[ -r $i ] && $mks -n "$n" -d "$d" $i
-
-# API PDF & HTML
-p=$doc/cygwin-api.pdf
-n="API (PDF)"
-d="PDF Cygwin API Reference"
-
-[ -r $p ] && $mks -n "$n" -d "$d" $p
-
-i=$html/cygwin-api/index.html
-n="API (HTML)"
-d="HTML Cygwin API Reference"
-
-[ -r $i ] && $mks -n "$n" -d "$d" $i
-
-# Home Page URL
-h=$site/index.html
-n="Home Page"
-d="Cygwin $n"
-
-$mks -n "$n" -d "$d" $h
-
-# FAQ URL
-h=$site/faq.html
-n="FAQ"
-d="Cygwin Frequently Asked Questions (with answers)"
-
-$mks -n "$n" -d "$d" $h
+# create User Guide and API PDF and HTML shortcuts
+while read target name desc
+do
+	[ -r $t ] && $mks -n "$name" -d "$desc" $target
+done <<EOF
+$doc/cygwin-ug-net.pdf		User\ Guide\ \(PDF\)  Cygwin\ User\ Guide\ PDF
+$html/cygwin-ug-net/index.html	User\ Guide\ \(HTML\) Cygwin\ User\ Guide\ HTML
+$doc/cygwin-api.pdf		API\ \(PDF\)	Cygwin\ API\ Reference\ PDF
+$html/cygwin-api/index.html	API\ \(HTML\)	Cygwin\ API\ Reference\ HTML
+EOF
+
+# create Home Page and FAQ URL link shortcuts
+while read target name desc
+do
+	$mks -n "$name" -d "$desc" $target
+done <<EOF
+$site/index.html	Home\ Page	Cygwin\ Home\ Page\ Link
+$site/faq.html		FAQ	Cygwin\ Frequently\ Asked\ Questions\ Link
+EOF
 
-- 
2.12.3


[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-26 20:00             ` Brian Inglis
@ 2017-06-27  1:20               ` Andrey Repin
  2017-06-27  5:33                 ` Brian Inglis
  2017-06-27  7:56                 ` Corinna Vinschen
  2017-06-27  7:38               ` Corinna Vinschen
  1 sibling, 2 replies; 17+ messages in thread
From: Andrey Repin @ 2017-06-27  1:20 UTC (permalink / raw)
  To: Brian Inglis, cygwin

Greetings, Brian Inglis!

> Is there an option so git will download your updated source, reject my patched
> source in place, and not just overwrite it?

Assuming you have remotes in place,

git fetch --all
git checkout -B your-fix-branch origin/master

.. make your changes ...

git format-patch origin/master


-- 
With best regards,
Andrey Repin
Tuesday, June 27, 2017 04:11:22

Sorry for my terrible english...


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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-27  1:20               ` Andrey Repin
@ 2017-06-27  5:33                 ` Brian Inglis
  2017-06-27  7:56                 ` Corinna Vinschen
  1 sibling, 0 replies; 17+ messages in thread
From: Brian Inglis @ 2017-06-27  5:33 UTC (permalink / raw)
  To: cygwin

On 2017-06-26 19:16, Andrey Repin wrote:
>> Is there an option so git will download your updated source, reject my patched
>> source in place, and not just overwrite it?
> Assuming you have remotes in place,
> git fetch --all
> git checkout -B your-fix-branch origin/master
> .. make your changes ...
> git format-patch origin/master

Thanks Andrey,
I forget about branches, being used to DIY with only mainline changes. Sometimes
I had to beg for access to use source control, or download and install RCS, CVS,
Hg to use myself where policy did not disallow that.
Even where source control was used, it was often either the MS product or CVS
with tags, nothing more modern was supported.
I know some large corps rely on FS logs/journals or snapshots, where source
control lags cloud adoption and use.

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-26 20:00             ` Brian Inglis
  2017-06-27  1:20               ` Andrey Repin
@ 2017-06-27  7:38               ` Corinna Vinschen
  1 sibling, 0 replies; 17+ messages in thread
From: Corinna Vinschen @ 2017-06-27  7:38 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1877 bytes --]

On Jun 26 13:59, Brian Inglis wrote:
> On 2017-06-26 10:42, Corinna Vinschen wrote:
> > On Jun 26 10:25, Brian Inglis wrote:
> >> On 2017-06-26 02:31, Corinna Vinschen wrote:
> >>> On Jun 23 12:47, Brian Inglis wrote:
> >>>> On 2017-06-23 12:25, Corinna Vinschen wrote:
> >>>>> On Jun 23 19:52, Marco Atzeri wrote:
> >>>>>> On 22/06/2017 15:58, Corinna Vinschen wrote:
> >>>>>>> I uploaded a new Cygwin test release 2.8.1-0.1
> >>>>>>> I'm planning for a release next week.  Please test.
> >>>>>> $ /etc/postinstall/cygwin-doc.sh
> >>>>>> Can't find directory '/usr/share/doc/cygwin-2.8.1'
> >>>>> Fixed in git.
> >>>>
> >>>> Darn you were fast!
> >>>> You might want to apply the rest of the attached format-patch,
> >>>> as it makes things clearer, more maintainable, and shorter.
> >>>
> >>> Sure, but your patch doesn't apply cleanly.  Care to check?
> >>
> >> Refreshed, retried, reattached - not seeing any differences.
> > 
> > Weird.  See below.
> > 
> >> Care to give me hint to get a clean format-patch of a changed file against your
> >> master?
> >> My approach tends to be scorched earth: rm -rf repo && git clone repo!
> > 
> > `git pull' should suffice...
> > 
> >> Ramadan is just past, so not a new moon, should I wait to sacrifice more of my
> >> hair, to appease git? ;^>
> > 
> > git am fails because your patch has still the already applied first
> > hunk.  If you remove that, and ideally change the subject to match
> > what the remaining parts of the patch are doing, it should fly.
> Thanks for your patience.
> Recloned, recopied from my original, reformated patch attached: hashbang changed
> as this script only needs {da,}sh.

Pushed.


Thanks,
Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-27  1:20               ` Andrey Repin
  2017-06-27  5:33                 ` Brian Inglis
@ 2017-06-27  7:56                 ` Corinna Vinschen
  2017-06-27 18:53                   ` Brian Inglis
  1 sibling, 1 reply; 17+ messages in thread
From: Corinna Vinschen @ 2017-06-27  7:56 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

On Jun 27 04:16, Andrey Repin wrote:
> Greetings, Brian Inglis!
> 
> > Is there an option so git will download your updated source, reject my patched
> > source in place, and not just overwrite it?
> 
> Assuming you have remotes in place,
> 
> git fetch --all
> git checkout -B your-fix-branch origin/master
> 
> .. make your changes ...
> 
> git format-patch origin/master

Good advice.  Git always has multiple ways to do stuff, but this
is a pretty condensed one.

Personally I'm using a slower variation motst of the time:

  $ git checkout master
  $ git pull
  $ git checkout -b my-patch-branch
  [hack, hack, hack]
  $ git commit
  $ git format-patch -1

If the hacking takes longer I want to update my branch to the latest
upstream master:

  $ git checkout master
  $ git pull
  $ git checkout my-patch-branch
  $ git rebase [-i] master
  [more hacking]
  [...]

It's not the quickest way to handle stuff, but it's a massive
progress from CVS...


Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-27  7:56                 ` Corinna Vinschen
@ 2017-06-27 18:53                   ` Brian Inglis
  2017-06-27 19:05                     ` Achim Gratz
  0 siblings, 1 reply; 17+ messages in thread
From: Brian Inglis @ 2017-06-27 18:53 UTC (permalink / raw)
  To: cygwin

On 2017-06-27 01:56, Corinna Vinschen wrote:
> On Jun 27 04:16, Andrey Repin wrote:
>>> Is there an option so git will download your updated source, 
>>> reject my patched source in place, and not just overwrite it?
>> Assuming you have remotes in place,
>> git fetch --all
>> git checkout -B your-fix-branch origin/master
>> .. make your changes ...
>> git format-patch origin/master
> Good advice. Git always has multiple ways to do stuff,
> but this is a pretty condensed one.
> Personally I'm using a slower variation motst of the time:
>   $ git checkout master
>   $ git pull
>   $ git checkout -b my-patch-branch
>   [hack, hack, hack]
>   $ git commit
>   $ git format-patch -1
> If the hacking takes longer I want to update my branch
> to the latest upstream master:
>   $ git checkout master
>   $ git pull
>   $ git checkout my-patch-branch
>   $ git rebase [-i] master
>   [more hacking]
>   [...]
> It's not the quickest way to handle stuff, but it's a massive
> progress from CVS...

Thanks - I'll save those hints for git workflow and use in future.

Nearly always forget the branch part: gotta retrain my fingers
to add the appropriate branch commands for the source control
products I use, and do more granular commits instead of big bangs.

Even your slower variation is still faster than simple ops were
on smaller CVS repos, and more reliable from reports, although
I never had any local or remote corruption problems with CVS.

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-27 18:53                   ` Brian Inglis
@ 2017-06-27 19:05                     ` Achim Gratz
  2017-06-27 20:37                       ` Brian Inglis
  0 siblings, 1 reply; 17+ messages in thread
From: Achim Gratz @ 2017-06-27 19:05 UTC (permalink / raw)
  To: cygwin

Brian Inglis writes:
> Nearly always forget the branch part: gotta retrain my fingers
> to add the appropriate branch commands for the source control
> products I use, and do more granular commits instead of big bangs.

The thing to remember is that with git you can just as easily create the
branch when you are about to commit your first change or even
retroactively.


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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1
  2017-06-27 19:05                     ` Achim Gratz
@ 2017-06-27 20:37                       ` Brian Inglis
  0 siblings, 0 replies; 17+ messages in thread
From: Brian Inglis @ 2017-06-27 20:37 UTC (permalink / raw)
  To: cygwin

On 2017-06-27 13:05, Achim Gratz wrote:
> Brian Inglis writes:
>> Nearly always forget the branch part: gotta retrain my fingers
>> to add the appropriate branch commands for the source control
>> products I use, and do more granular commits instead of big bangs.
> 
> The thing to remember is that with git you can just as easily create
> the branch when you are about to commit your first change or even
> retroactively.

Thanks for that tip Achim, it may make it easier to remember
to branch before add, stage, or commit.
I don't even want to know about retroactively ;^>
I need to train to do it initially.

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-06-27 20:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22 14:31 [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.8.1-0.1 Corinna Vinschen
2017-06-23 17:53 ` Marco Atzeri
2017-06-23 18:25   ` Corinna Vinschen
2017-06-23 18:47     ` Brian Inglis
2017-06-26  8:31       ` Corinna Vinschen
2017-06-26 16:25         ` Brian Inglis
2017-06-26 16:42           ` Corinna Vinschen
2017-06-26 20:00             ` Brian Inglis
2017-06-27  1:20               ` Andrey Repin
2017-06-27  5:33                 ` Brian Inglis
2017-06-27  7:56                 ` Corinna Vinschen
2017-06-27 18:53                   ` Brian Inglis
2017-06-27 19:05                     ` Achim Gratz
2017-06-27 20:37                       ` Brian Inglis
2017-06-27  7:38               ` Corinna Vinschen
2017-06-24  7:35 ` Marco Atzeri
2017-06-26  8:32   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).