public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3
@ 2014-09-25  8:47 Eric Blake
  2014-09-29 12:13 ` Achim Gratz
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Blake @ 2014-09-25  8:47 UTC (permalink / raw)
  To: cygwin

A new release of coreutils, 8.23-3, is available for experimental
download, leaving 8.23-2 as current, and 8.15-1 (32-bit) or 8.15-3
(64-bit) as previous.  If no issues are reported, I will promote it to
current within a week.

NEWS:
=====
This is a minor update that fixes a couple of issues: the cygwin-only
'stat --append-exe' option had been accidentally broken (last working in
8.15), and when faced with a symlink named 'l.exe', the command 'mv
l.exe l' would delete the symlink instead of dropping the .exe suffix,
as a side effect of an intentional upstream change in 8.16.  As part of
fixing those bugs, I had to do a fair bit of rewrite to the cygwin-only
patches that detect when .exe magic is occurring, and may have broken
some other corner case, although in my limited testing I couldn't find
anything obviously different.  This build is also the first against the
new ACL rules of cygwin1.dll, so there may be some oddities in ls as a
result.  Hence I'm leaving this experimental for a few days to make sure
it does not cause further regressions.  For upstream details, see
/usr/share/doc/coreutils/NEWS.

If you missed the note in 8.23-2, there is no longer an 'su' program in
coreutils; this is an upstream decision (many Linux distros are getting
su from other packages, and even though cygwin's su had come from
coreutils, it was heavily patched and doesn't work as smoothly as on
Linux).  I'm still debating whether it is worth trying to capture the
last release of coreutils' su, as patched to work on cygwin, for
distribution as an independent package; help would be appreciated from
anyone else interested in this task.

If you encounter a regression, please report it here rather than
upstream.  See also the upstream documentation in /usr/share/doc/coreutils/.

Help in porting the stdbuf utility to cygwin would be appreciated.

DESCRIPTION:
============
GNU coreutils provides a collection of commonly used utilities essential
to a standard POSIX environment.  It comprises the former textutils,
sh-utils, and fileutils packages.  The following executables are included:

[ arch base64 basename cat chcon chgrp chmod chown chroot cksum comm cp
csplit cut date dd df dir dircolors dirname du echo env expand expr
factor false fmt fold gkill groups head hostid id install join link ln
logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup nproc
numfmt od paste pathchk pinky pr printenv printf ptx pwd readlink
realpath rm rmdir runcon seq sha1sum sha224sum sha256sum sha384sum
sha512sum shred shuf sleep sort split stat stty sum sync tac tail tee
test timeout touch tr true truncate tsort tty uname unexpand uniq unlink
users vdir wc who whoami yes

UPDATE:
=======
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. Save it and run setup, answer the questions and pick up
'coreutils' from the 'Base' category.  As long as this release is
experimental, you'll have to cycle through versions to pick it up.

DOWNLOAD:
=========
Note that downloads from cygwin.com aren't allowed due to bandwidth
limitations.  This means that you will need to find a mirror which has
this update, please choose the one nearest to you:
http://cygwin.com/mirrors.html

QUESTIONS:
==========
If you want to make a point or ask a question the Cygwin mailing list is
the appropriate place.

-- 
Eric Blake
volunteer cygwin coreutils package maintainer

For more details on this list (including unsubscription), see:
http://sourceware.org/lists.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

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

* Re: [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3
  2014-09-25  8:47 [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3 Eric Blake
@ 2014-09-29 12:13 ` Achim Gratz
  2014-09-29 17:22   ` Eric Blake
  0 siblings, 1 reply; 8+ messages in thread
From: Achim Gratz @ 2014-09-29 12:13 UTC (permalink / raw)
  To: cygwin

Eric Blake <ebb9 <at> byu.net> writes:
> This build is also the first against the
> new ACL rules of cygwin1.dll, so there may be some oddities in ls as a
> result.

That hunch proved to be correct, but it is cp and not ls that is affected:

> cp -vr gnuplot.x86_64/dist/gnuplot /mnt/mirror/patch/x86_64/release/
cp: cannot create directory ‘/mnt/mirror/patch/x86_64/release/gnuplot’: File
exists
> getfacl /mnt/mirror/patch/x86_64/release/gnuplot
# file: /mnt/mirror/patch/x86_64/release/gnuplot
# owner: share-owner
# group: Domain Users
user::---
group::---
group:share-adm:rwx
mask:rwx
other:---
default:user::---
default:group::---
default:group:share-adm:rwx
default:mask:rwx
default:other:---

The user doing this operation is member of share-adm, but not the
share-owner.  It seems that cp is deciding that the (existing) directory
should be newly created, which of course fails.  Reverting to both 8.23-2 or
8.15-3 fixes that problem.


Regards,
Achim.


--
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] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3
  2014-09-29 12:13 ` Achim Gratz
@ 2014-09-29 17:22   ` Eric Blake
  2014-09-29 17:23     ` Achim Gratz
  2014-09-30 16:27     ` Achim Gratz
  0 siblings, 2 replies; 8+ messages in thread
From: Eric Blake @ 2014-09-29 17:22 UTC (permalink / raw)
  To: cygwin

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

On 09/29/2014 03:02 AM, Achim Gratz wrote:
> Eric Blake <ebb9 <at> byu.net> writes:
>> This build is also the first against the
>> new ACL rules of cygwin1.dll, so there may be some oddities in ls as a
>> result.
> 
> That hunch proved to be correct, but it is cp and not ls that is affected:
> 
>> cp -vr gnuplot.x86_64/dist/gnuplot /mnt/mirror/patch/x86_64/release/
> cp: cannot create directory ‘/mnt/mirror/patch/x86_64/release/gnuplot’: File
> exists
>> getfacl /mnt/mirror/patch/x86_64/release/gnuplot
> # file: /mnt/mirror/patch/x86_64/release/gnuplot
> # owner: share-owner
> # group: Domain Users
> user::---
> group::---
> group:share-adm:rwx
> mask:rwx
> other:---
> default:user::---
> default:group::---
> default:group:share-adm:rwx
> default:mask:rwx
> default:other:---
> 
> The user doing this operation is member of share-adm, but not the
> share-owner.  It seems that cp is deciding that the (existing) directory
> should be newly created, which of course fails.  Reverting to both 8.23-2 or
> 8.15-3 fixes that problem.

Can you give me a simple self-contained script that creates all
necessary prerequisites before attempting the failing 'cp', to help me
in trying to reproduce what is going differently here?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]

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

* Re: [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3
  2014-09-29 17:22   ` Eric Blake
@ 2014-09-29 17:23     ` Achim Gratz
  2014-09-30 16:27     ` Achim Gratz
  1 sibling, 0 replies; 8+ messages in thread
From: Achim Gratz @ 2014-09-29 17:23 UTC (permalink / raw)
  To: cygwin

Eric Blake writes:
> Can you give me a simple self-contained script that creates all
> necessary prerequisites before attempting the failing 'cp', to help me
> in trying to reproduce what is going differently here?

I'll see what I can come up with.


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

--
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] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3
  2014-09-29 17:22   ` Eric Blake
  2014-09-29 17:23     ` Achim Gratz
@ 2014-09-30 16:27     ` Achim Gratz
  2014-10-12  8:56       ` Corinna Vinschen
  1 sibling, 1 reply; 8+ messages in thread
From: Achim Gratz @ 2014-09-30 16:27 UTC (permalink / raw)
  To: cygwin

Eric Blake <eblake <at> redhat.com> writes:
> Can you give me a simple self-contained script that creates all
> necessary prerequisites before attempting the failing 'cp', to help me
> in trying to reproduce what is going differently here?

As an admin do (replace "user" with any user that is not the admin user and
I'm assuming that /tmp is not mounted "noacl").

--------------
umask 777
cd /tmp
mkdir -p ACLtest/profile.d
setfacl -m m:rwx,g:Administrators:rwx,\
d:m:rwx,d:u::---,d:g::---,d:o::---,\
d:g:Administrators:rwx,u::--- ACLtest/
chown -R user ACLtest/
getfacl ACLtest/ | setfacl -f - ACLtest/profile.d/
getfacl ACLtest ACLtest/profile.d/
ls -alR ACLtest/
cp -r /etc/profile.d/ ACLtest/
--------------

With coreutils 8.23-2 this suceeds, with the -3 release you'll get the error
cp: cannot create directory ‘ACLtest/profile.d’: File exists


Hope this helps,
Achim.



--
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] 8+ messages in thread

* Re: [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3
  2014-09-30 16:27     ` Achim Gratz
@ 2014-10-12  8:56       ` Corinna Vinschen
  2014-10-13 15:54         ` Eric Blake
  0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2014-10-12  8:56 UTC (permalink / raw)
  To: cygwin

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

On Sep 30 14:57, Achim Gratz wrote:
> Eric Blake <eblake <at> redhat.com> writes:
> > Can you give me a simple self-contained script that creates all
> > necessary prerequisites before attempting the failing 'cp', to help me
> > in trying to reproduce what is going differently here?
> 
> As an admin do (replace "user" with any user that is not the admin user and
> I'm assuming that /tmp is not mounted "noacl").
> 
> --------------
> umask 777
> cd /tmp
> mkdir -p ACLtest/profile.d
> setfacl -m m:rwx,g:Administrators:rwx,\
> d:m:rwx,d:u::---,d:g::---,d:o::---,\
> d:g:Administrators:rwx,u::--- ACLtest/
> chown -R user ACLtest/
> getfacl ACLtest/ | setfacl -f - ACLtest/profile.d/
> getfacl ACLtest ACLtest/profile.d/
> ls -alR ACLtest/
> cp -r /etc/profile.d/ ACLtest/
> --------------
> 
> With coreutils 8.23-2 this suceeds, with the -3 release you'll get the error
> cp: cannot create directory ‘ACLtest/profile.d’: File exists

It's even simpler than that:

  $ cd /tmp
  $ mkdir -p a/1/2 b/1/2
  $ touch a/1/2/x b/1/2/y
  $ cp -rp a/1/2 b/1
  cp: cannot create directory ‘b/1/2’: File exists

This is on stock NTFS with Cygwin 1.7.32 and cp from coreutils-8.23-3.


Corinna

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

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

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

* Re: [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3
  2014-10-12  8:56       ` Corinna Vinschen
@ 2014-10-13 15:54         ` Eric Blake
  2014-10-14  9:56           ` Achim Gratz
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Blake @ 2014-10-13 15:54 UTC (permalink / raw)
  To: cygwin

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

On 10/12/2014 02:56 AM, Corinna Vinschen wrote:

>> With coreutils 8.23-2 this suceeds, with the -3 release you'll get the error
>> cp: cannot create directory ‘ACLtest/profile.d’: File exists
> 
> It's even simpler than that:
> 
>   $ cd /tmp
>   $ mkdir -p a/1/2 b/1/2
>   $ touch a/1/2/x b/1/2/y
>   $ cp -rp a/1/2 b/1
>   cp: cannot create directory ‘b/1/2’: File exists

D'oh - now I see it. In my .exe code additions, I had added a '!= 0'
test that should have really been a '> 0' test; because directories
cause an expected -1 return that should not have triggered an attempt at
.exe magic.  -4 coming soon.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]

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

* Re: [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3
  2014-10-13 15:54         ` Eric Blake
@ 2014-10-14  9:56           ` Achim Gratz
  0 siblings, 0 replies; 8+ messages in thread
From: Achim Gratz @ 2014-10-14  9:56 UTC (permalink / raw)
  To: cygwin

Eric Blake <eblake <at> redhat.com> writes:
> D'oh - now I see it. In my .exe code additions, I had added a '!= 0'
> test that should have really been a '> 0' test; because directories
> cause an expected -1 return that should not have triggered an attempt at
> .exe magic.  -4 coming soon.

Fix confirmed.


Regards,
Achim.requires


--
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] 8+ messages in thread

end of thread, other threads:[~2014-10-14  9:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-25  8:47 [ANNOUNCEMENT] Updated (experimental): coreutils-8.23-3 Eric Blake
2014-09-29 12:13 ` Achim Gratz
2014-09-29 17:22   ` Eric Blake
2014-09-29 17:23     ` Achim Gratz
2014-09-30 16:27     ` Achim Gratz
2014-10-12  8:56       ` Corinna Vinschen
2014-10-13 15:54         ` Eric Blake
2014-10-14  9:56           ` Achim Gratz

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