Re: Request for test by users seeing 0.00 load average in spite of a busy system

2024-10-02 Thread Christian Franke via Cygwin
Mark Geisert via Cygwin wrote: Hi folks, I may have a handle on why you're seeing 0.00 load averages. Would you kindly compile the attached program, run it, and post its results along with which version of Windows you are running? For example,     gcc -Wall -ggdb -o test test.c -lpdh     ./tes

Re: pread()/pwrite() fail with EBADF in child process if already used before fork()

2024-09-24 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Found during test of 'stress-ng --pseek ...' from current upstream stress-ng git HEAD: Testcase: $ uname -r 3.5.4-1.x86_64 $ cat pfail.c #include #include #include #include int main() {   int fd = open(&

Re: pread()/pwrite() fail with EBADF in child process if already used before fork()

2024-09-23 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Found during test of 'stress-ng --pseek ...' from current upstream stress-ng git HEAD: Testcase: $ uname -r 3.5.4-1.x86_64 $ cat pfail.c #include #include #include #include int main() {   int fd = open("pwrite.tmp", O_RDWR|O_CREAT|O

pread()/pwrite() fail with EBADF in child process if already used before fork()

2024-09-22 Thread Christian Franke via Cygwin
Found during test of 'stress-ng --pseek ...' from current upstream stress-ng git HEAD: Testcase: $ uname -r 3.5.4-1.x86_64 $ cat pfail.c #include #include #include #include int main() {   int fd = open("pwrite.tmp", O_RDWR|O_CREAT|O_BINARY, 0666);   if (fd < 0) {     perror("open"); retur

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Christian Franke via Cygwin
Brian Inglis via Cygwin wrote: On 2024-09-19 07:27, Christian Franke via Cygwin wrote: Mark Liam Brown via Cygwin wrote: On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Christian Franke via Cygwin
Mark Liam Brown via Cygwin wrote: On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-16 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-15 Thread Christian Franke via Cygwin
Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file. Later readdir() returns a different name

readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-15 Thread Christian Franke via Cygwin
If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file. Later readdir() returns a different name which could not be used to access the file. Testcase with U+1F321 (Thermometer): $ uname -r 3.5.4-1.x86_64 $ printf $'\U0001F321' | od -A none -t

pthread_sigqueue(): First parameter is incompatible with glibc

2024-09-12 Thread Christian Franke via Cygwin
Cygwin /usr/include/pthread.h: int pthread_sigqueue (pthread_t *, int, const union sigval); Linux /usr/include/x86_64-linux-gnu/bits/sigthread.h: extern int pthread_sigqueue (pthread_t __threadid, int __signo, const union sigval __value) __THROW; It is apparently

Re: Cygwin a bit slow

2024-04-10 Thread Christian Franke via Cygwin
J M via Cygwin wrote: ... Specifically for this problem, I have investigated the problem and can be related to pipes and antivirus. Specifically while true do echo ABC | grep AAA done It makes the cpu of that antivirus go up. This is as expected because malware scanners hook into Win32 API's

Re: util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-04-02 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: ,,, BTW, according to the Linux kernel sources, BLKPBSZGET etc return 'unsigned int' and not 'unsigned long' since first appearance in 2.6.32-rc3 (2009?): https://elixir.bootlin.com/linux/v2.6.32-rc3/source/block/ioctl.c#L276 https:

Re: util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-04-02 Thread Christian Franke via Cygwin
Bruce Jerrick via Cygwin wrote: Downgrading to util-linux-2.33.3-3 does not help. The related code differs, but has the same problem. I take that back. The above should read "util-linux-2.33.1-3". But it was OK in util-linux-2.33.1-3 . Yes, this is correct. I possibly downgraded util-linux

Re: util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-04-02 Thread Christian Franke via Cygwin
Hi Mark, Mark Geisert via Cygwin wrote: Hi Christian, On 3/31/2024 1:11 AM, Christian Franke via Cygwin wrote: Testcase: # cygcheck -f /sbin/fdisk.exe util-linux-2.39.3-1 # /sbin/fdisk.exe -l /dev/sdd Disk /dev/sdd: 465.76 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512

util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-03-31 Thread Christian Franke via Cygwin
Testcase: # cygcheck -f /sbin/fdisk.exe util-linux-2.39.3-1 # /sbin/fdisk.exe -l /dev/sdd Disk /dev/sdd: 465.76 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 34359738880 bytes I/O size (minimum/optimal): 34359738880 b

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-24 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Mar 23 10:57, Christian Franke via Cygwin wrote: On Mar 21 16:15, Corinna Vinschen via Cygwin wrote: On Mar 21 09:58, Christian Franke via Cygwin wrote: .. I just gave it a try on W11. The results are even more funny than I anticipated: ... So, yeah

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-23 Thread Christian Franke via Cygwin
On Mar 21 16:15, Corinna Vinschen via Cygwin wrote: On Mar 21 09:58, Christian Franke via Cygwin wrote: .. I just gave it a try on W11. The results are even more funny than I anticipated: ... So, yeah, with your observations especially on older W10 versions and with 8.1 doing the same thing

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-21 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Mar 20 12:39, Christian Franke via Cygwin wrote: Corinna Vinschen via Cygwin wrote: You have to create an application with an application manifest not supporting your OS. For Cygwin apps, this occured when you built, say, an executable under Windows 8.1

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-20 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Mar 19 09:18, Bill Stewart via Cygwin wrote: On Tue, Mar 19, 2024 at 9:01 AM Richard Campbell wrote: On Tue, Mar 19, 2024 at 9:04 AM Bill Stewart via Cygwin wrote: Can you please clarify the circumstances under which the RtlGetVersion function "may not

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-19 Thread Christian Franke via Cygwin
Cedric Blancher via Cygwin wrote: How does cygwin uname -s work, i.e. how does it get the OS version, revision and build number ('10.0-19045')? I tried to replicate it via GetVersionEx(), but that is deprecated. AFAICS, MS does not offer an official way to retrieve the actual Windows version

Re: Setup.exe suggestions

2024-02-28 Thread Christian Franke via Cygwin
Hi, Lavrentiev, Anton wrote ... For new installations, it'd be great to have the most suitable (in most cases, the most recent) version shown as the first selection in all those pulldown version lists in the "New" columns. The logical order would be "the preferred (latest) version", "the vers

Re: cygport 0.36.8-1

2024-02-14 Thread Christian Franke via Cygwin
Jon Turney via Cygwin wrote: On 13/02/2024 13:02, Christian Franke via Cygwin wrote: Jon Turney via Cygwin wrote: On 12/02/2024 16:49, ASSI via Cygwin wrote: Christian Franke via Cygwin writes: This requires that always the same build directory is used. Would that be solvable by using

Re: cygport 0.36.8-1

2024-02-13 Thread Christian Franke via Cygwin
Jon Turney via Cygwin wrote: On 13/02/2024 13:02, Christian Franke via Cygwin wrote: Jon Turney via Cygwin wrote: On 12/02/2024 16:49, ASSI via Cygwin wrote: Christian Franke via Cygwin writes: This requires that always the same build directory is used. Would that be solvable by using

Re: cygport 0.36.8-1

2024-02-13 Thread Christian Franke via Cygwin
Jon Turney via Cygwin wrote: On 12/02/2024 16:49, ASSI via Cygwin wrote: Christian Franke via Cygwin writes: This requires that always the same build directory is used. Would that be solvable by using -ffile-prefix-map or is there more to it? That should now be used in 0.36.8, so something

Re: cygport 0.36.8-1

2024-02-12 Thread Christian Franke via Cygwin
Jon Turney wrote on cygwin-announce list: The following packages have been uploaded to the Cygwin distribution: * cygport-0.36.8-1 cygport is the standard method for building and maintaining packages for the Cygwin distribution. ...   Add initial support for SOURCE_DATE_EPOCH Testcas

Cygwin build from source is broken since binutils-2.42-1

2024-02-12 Thread Christian Franke via Cygwin
This is not a binutils regression: A build from cygwin 3.5.0-1 src package or current newlib-cygwin git main (bfb68a9) with new binutils-2.42-1 fails with: " In file included from ../../../../winsup/utils/dumper.cc:23: /usr/include/bfd.h:2748:1: error: expected initializer before ‘ATTRIBUTE_WA

Re: Add ability to hide non-standard itoa/utoa() in stdlib.h ?

2024-01-22 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Jan 22 16:47, Christian Franke via Cygwin wrote: Busybox does not build OOTB on Cygwin due to the addition of itoa/utoa() to newlib in 2014: https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=32c96dd This is because Busybox use local functions with

Re: where is parted?

2024-01-11 Thread Christian Franke via Cygwin
matth...@gmx.li wrote: fdisk reports the same partition type as sfdisk. It report "Microsoft basic data" for NTFS as well as for FAT32 partitions. That is as expected and differs from MBR disks. The same GPT partition GUID is used for NTFS and the various FAT filesystem types. https://en.wik

Re: where is parted?

2024-01-11 Thread Christian Franke via Cygwin
Matthias--- via Cygwin wrote: I'm using sfdisk for analysing partitions on msdos partition tables. Unfortunately it don't support GPT tables. Is there another tool, like parted, what can be used? /sbin/fdisk from package util-linux-2.33.1-2 supports GPT. -- Regards, Christian -- Problem rep

Re: Run a Cygwin process with "higher" scheduler priority

2023-10-15 Thread Christian Franke via Cygwin
Brian Inglis via Cygwin wrote: On 2023-10-14 07:47, Eliot Moss via Cygwin wrote: On 10/14/2023 7:39 AM, Cedric Blancher via Cygwin wrote: On Fri, 11 Aug 2023 at 19:14, Brian Inglis wrote: ... ... $ cygcheck -p usr/bin/chrt Found 2 matches for usr/bin/chrt util-linux-debuginfo-2.33.1-2 - uti

Re: setup 2.927 release candidate - please test

2023-10-14 Thread Christian Franke via Cygwin
Jon Turney via Cygwin wrote: A new setup release candidate is available at: ... - Translation updates. - Add German and Polish translations (thanks to weblate contributors Markus, Ettore Atalan, Luis Mengel and WaldiS) Some small adjustments have been made to the layout of the dialog templ

Re: /usr/bin/dd *.iso to USB stick?

2023-09-23 Thread Christian Franke via Cygwin
Jim Garrison via Cygwin wrote: On 9/21/2023 22:40, Martin Wege via Cygwin wrote: Hello, How can I use /usr/bin/dd to copy a *.iso image (Debian netinstall boot image) to a USB stick as raw bytes? I do this frequently.  You must start the Cygwin shell with admin rights, then use Windows Disk M

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Christian Franke via Cygwin
Martin Wege via Cygwin wrote: On Fri, Sep 22, 2023 at 9:42 AM Christian Franke via Cygwin wrote: Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights? No (AFAIK). I use psexec from Sysinternals tools (https

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Christian Franke via Cygwin
Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights? No (AFAIK). I use psexec from Sysinternals tools (https://learn.microsoft.com/sysinternals/downloads/psexec) This starts a Cygwin terminal as SYSTEM use

Re: std::runtime_error on std::locale("")

2023-09-22 Thread Christian Franke via Cygwin
Takashi Yano via Cygwin wrote: On Thu, 21 Sep 2023 21:06:59 +0200 Christian Franke wrote: ... According to libstdc++ source, the internal function locale::facet::_S_create_c_locale() calls some __newlocale() which apparently does not arrive at newlocale() from cygwin1.dll. But cygstdc++-6.dll

Re: std::runtime_error on std::locale("")

2023-09-21 Thread Christian Franke via Cygwin
Brian Inglis via Cygwin wrote: On 2023-09-21 10:28, Takashi Yano via Cygwin wrote: On Fri, 22 Sep 2023 01:12:04 +0900 Takashi Yano wrote: I wonder why the following code throws std::runtime_error even though the LC_ALL is set to valid locale other than "C". This does not occur only when LC_ALL

cygport may not create debug info if top directory contains a symlink

2023-09-16 Thread Christian Franke via Cygwin
Found during tests of busybox package: If the path of the top build directory contains a symlink and the project's build scripts normalize pathnames, no debug info is created by cygport. This is because options like  -fdebug-prefix-map=${B}=/usr/src/debug/${PF} have no effect because ${B} cont

[ANNOUNCEMENT] busybox 1.36.1-1

2023-09-15 Thread Christian Franke via Cygwin
The following packages have been uploaded to the Cygwin distribution: * busybox-1.36.1-1 * busybox-standalone-1.36.1-1 * busybox-doc-1.36.1-1 BusyBox combines tiny versions of many (un)common utilities into a single executable. It is still smaller than bash. https://busybox.net/about.html Th

Re: Cygwin console: Different default background color when terminal runs as Admin?

2023-08-18 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Aug 18 11:51, Martin Wege via Cygwin wrote: On Fri, Aug 18, 2023 at 7:27 AM Jonathon Merz via Cygwin wrote: On Thu, Aug 17, 2023 at 7:13 PM Martin Wege via Cygwin wrote: Just an idea: Could the default background color of the Cygwin console be changed f

Re: Cygwin console: Different default background color when terminal runs as Admin?

2023-08-18 Thread Christian Franke via Cygwin
Jonathon Merz via Cygwin wrote: On Thu, Aug 17, 2023 at 7:13 PM Martin Wege via Cygwin wrote: Just an idea: Could the default background color of the Cygwin console be changed from black to grey (or RED) if the terminal has been started with Administrator rights? Assuming that: 1. The Admini

Re: [ANNOUNCEMENT] Updated: groff-1.23.0-1

2023-07-23 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: ... - Man pages could no longer be formatted with a specific font. Only    header and footer lines use the selected font then, the rest stays    at the default font 'T': […] Intentional change or regression? IDK, ask upstream. OK, will do. D

Re: [ANNOUNCEMENT] Updated: groff-1.23.0-1

2023-07-23 Thread Christian Franke via Cygwin
ASSI via Cygwin wrote: Christian Franke via Cygwin writes: ASSI via Cygwin wrote: - Various PDF fonts produce warnings but seem to work in general: $ echo "Hello, World!" | groff -Tpdf -f A > hello.A.pdf /usr/bin/gropdf: warning: The download file in '/usr/share/groff/1.23.0

Re: [ANNOUNCEMENT] Updated: groff-1.23.0-1

2023-07-22 Thread Christian Franke via Cygwin
ASSI via Cygwin wrote: GNU roff has been updated to the latest upstream version 1.23.0. The following packages are available on Cygwin: groff-1.23.0-1 groff-perl-1.23.0-1 groff-X11-1.23.0-1 - Various PDF fonts produce warnings but seem to work in general: $ echo "Hello, World!" | grof

[ANNOUNCEMENT] ddrescue 1.27-1

2023-01-28 Thread Christian Franke via Cygwin
te-if-done' of ddrescuelog no longer returns an error if the mapfile is read from standard input. Instead it behaves like '-D, --done-status' because there is nothing to delete. 'ddrescuelog --show-status' now rounds percentages up to get the sum closer to 100%. The d

Re: Question about slow access to file information

2023-01-17 Thread Christian Franke via Cygwin
Eliot Moss via Cygwin wrote: On 1/15/2023 3:38 AM, Christian Franke via Cygwin wrote: Eliot Moss via Cygwin wrote: I have a separate drive mounted this way: d:/ /cygdrive/d ntfs binary,posix=0,user,noacl,auto 0 0 One thing I use it for is to store backup files.  These tend to be 2 Gb chunks

Re: Question about slow access to file information

2023-01-14 Thread Christian Franke via Cygwin
Eliot Moss via Cygwin wrote: I have a separate drive mounted this way: d:/ /cygdrive/d ntfs binary,posix=0,user,noacl,auto 0 0 One thing I use it for is to store backup files.  These tend to be 2 Gb chunks, and there can be hundreds of them in the backup directory.  (The drive is 5Tb.)  The Wi

Re: Cygwin setup reporter as malware

2022-12-09 Thread Christian Franke via Cygwin
Dan Harkless via Cygwin wrote: On 12/9/2022 3:39 AM, Oskar Skog via Cygwin wrote: On 2022-12-07 23:54, Dan Harkless via Cygwin wrote: > No.  It's normal and common for software like Cygwin, which has the > power to be used maliciously (as opposed to, say, a Minesweeper game or > something), t

Re: [ANNOUNCEMENT] Updated: setup (2.923)

2022-11-22 Thread Christian Franke
Adam Dinwoodie wrote: ... - Add Ctrl-I/R/U as keyboard accelerators for install/reinstall/uninstall in the package chooser (thanks to Christian Franke) I am also very grateful for this, too – I'm a keyboard monkey and I find the current package selection process somewhat tedious – but I&#

Re: fish-3.5.0-1: /etc/fish/conf.d/cygwin.fish only readable by owner

2022-10-24 Thread Christian Franke
Andrew Schulman via Cygwin wrote: The permission of cygwin.fish looks somewhat random (depends on umask during build?): $ tar tvf fish-3.4.1-1.tar.xz etc/defaults/etc/fish/conf.d/cygwin.fish -rw-r-xr-- ... 1101 2022-04-07 20:34 etc/defaults/etc/fish/conf.d/cygwin.fish $ tar tvf fish-3.5.0-1.tar

Re: Smartctl issues in Cygwin with elevated terminal

2022-09-13 Thread Christian Franke
Hamish McIntyre-Bhatty wrote: I recently noticed that smartctl only works when the Cygwin Terminal isn't run as administrator - the opposite way round to Linux where you need superuser privileges to access the disk. With Administrator privileges on Windows 11, I get: "Read Device Identity Fai

Re: How to get setup to *re*install a package from the command line

2022-09-07 Thread Christian Franke
Eliot Moss wrote: I've not been able to find a way to get setup, when used from the command line, to *re*install an existing package, so as to repair any brokenness. For context, I had my disk get trashed and restored from a cloud backup. However, that tool is not entirely competent about everyt

Re: Ctrl+Space not working under Windows Terminal

2022-09-06 Thread Christian Franke
Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: I then see "C-@" echoed in the minibuffer, and the resulting *Help* buffer says WFIW, in the DEC VT terminals (from where most of ANSI controls stem from), Ctrl-Space used to generate a NUL character (ASCII '\0'), and so maybe it is seen as

Re: setup 2.920 release candidate - please test

2022-08-15 Thread Christian Franke
Achim Gratz wrote: Christian Franke writes: This version aborts if "Sync" setting is reverted to "Best". If the abort goes away when building setup with the previous version of libsolv then you might have found an easier reproducer for a bug I'm chasing… Running i

Re: setup 2.920 release candidate - please test

2022-08-14 Thread Christian Franke
Jon Turney wrote: A new setup release candidate is available at:  https://cygwin.com/setup/setup-2.920.x86_64.exe (64 bit version)  https://cygwin.com/setup/setup-2.920.x86.exe    (32 bit version) Please test, and report any problems here. This version aborts if "Sync" setting is reverted t

Re: resolv.conf and gnupg2

2022-08-11 Thread Christian Franke
Andrey Repin wrote: Greetings, Christian Franke! ... Unfortunately the ipconfig output is always localized, so this does only work OOTB with English versions of Windows. The ipconfig parsing is also broken due to two reasons: - The current Cygwin versions of awk, grep and sed no longer

Re: resolv.conf and gnupg2

2022-08-09 Thread Christian Franke
Lee wrote: On 8/9/22, Christian Franke wrote: Brian Inglis wrote: I've been running with /etc/resolv.conf for a few years now, generated from the ISP info from ipconfig and lists of public DNS servers and suffixes. The attached postinstall script 0p_l_etc_resolv_conf.dash generates

Re: resolv.conf and gnupg2

2022-08-09 Thread Christian Franke
Brian Inglis wrote: I've been running with /etc/resolv.conf for a few years now, generated from the ISP info from ipconfig and lists of public DNS servers and suffixes. The attached postinstall script 0p_l_etc_resolv_conf.dash generates a new resolv.conf and replaces the current if different

Re: Deleting a directory with the same name as a shortcut deletes everything in CWD

2022-08-08 Thread Christian Franke
Oskar Skog wrote: Deleting a directory with the same name as a shortcut deletes everything in the current working directory. Tested on: CYGWIN_NT-10.0-19044 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin CYGWIN_NT-10.0-22000 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin Script to rep

Re: [PATCH setup] Add new option --chown-admin

2022-07-09 Thread Christian Franke
Jon Turney wrote: On 07/07/2022 15:45, Christian Franke wrote: Jon Turney wrote: On 06/07/2022 17:34, Christian Franke wrote: Jon Turney wrote: On 06/07/2022 08:14, Christian Franke wrote: [...] BTW: 'nt_sec.setDefaultSecurity (isAdmin)' is never called with 'is

Re: [ANNOUNCEMENT] fish 3.5.0-1

2022-07-05 Thread Christian Franke
Andrew Schulman via Cygwin-announce wrote: fish 3.5.0-1 is now available in Cygwin. This release has many small improvements and bug fixes since the previous Cygwin release, 3.4.1-1. See the upstream release notes[1] for a list. Please note this minor permission issue which may affect install

Re: [ANNOUNCEMENT] cygport 0.35.2-1

2022-07-04 Thread Christian Franke
Jon Turney wrote: The following packages have been uploaded to the Cygwin distribution: * cygport-0.35.2-1 cygport is the standard method for building and maintaining packages for the Cygwin distribution. Jon Turney (7):   Add LICENSE variable I would suggest to print a note or warning

fish-3.5.0-1: /etc/fish/conf.d/cygwin.fish only readable by owner

2022-07-02 Thread Christian Franke
The permission of cygwin.fish looks somewhat random (depends on umask during build?): $ tar tvf fish-3.4.1-1.tar.xz etc/defaults/etc/fish/conf.d/cygwin.fish -rw-r-xr-- ... 1101 2022-04-07 20:34 etc/defaults/etc/fish/conf.d/cygwin.fish $ tar tvf fish-3.5.0-1.tar.xz etc/defaults/etc/fish/conf.d

[ANNOUNCEMENT] New: etckeeper 1.18.17-1

2022-07-02 Thread Christian Franke
oes not perform the initialization of /etc/.git. Run 'etckeeper init && etckeeper commit' manually under the same user which is effective during setup. Christian Franke -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/fa

[ANNOUNCEMENT] New: pass 1.7.4-1

2022-07-02 Thread Christian Franke
the PATH, gpg2 takes precedence. Non-Cygwin versions of gpg2 or gpg are also supported if no Cygwin gnupg* Package is installed. Christian Franke -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.h

[ANNOUNCEMENT] smartmontools 7.3-1

2022-06-27 Thread Christian Franke
Christian Franke -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

Re: duplicity 0.7.19-1, python-fasteners 0.16.3-1: Missing dependency python-monotonic?

2022-05-07 Thread Christian Franke
Libor Ukropec wrote: Hi Christian, few moments ago I uploaded 0.8.22 duplicity which should have all dependencies in cygwin. Any feedback is welcome. A first quick backup+restore test worked as expected. Thanks, Christian -- Problem reports: https://cygwin.com/problems.html FAQ:

duplicity 0.7.19-1, python-fasteners 0.16.3-1: Missing dependency python-monotonic?

2022-05-03 Thread Christian Franke
Testcase: $ cygcheck -f /usr/bin/duplicity duplicity-0.7.19-1 $ duplicity --version Traceback (most recent call last):   File "/usr/bin/duplicity", line 42, in     import fasteners   File "/usr/lib/python2.7/site-packages/fasteners/__init__.py", line 23, in     from fasteners.lock import loc

Re: Editing with vim clears Windows 10 file system archive bit.

2021-11-15 Thread Christian Franke
Steve Ward via Cygwin wrote: Description of problem: While using vim 8.2 on cygwin 3.3 (x86_64) on Windows 10, when editing an existing file with vim and saving it, the Window’s file system archive bit is always left cleared (not modified state). This happens, whether the archive bit was set (is

Re: Portable CygWin version for Windows?

2021-11-14 Thread Christian Franke
Peter Steiner via Cygwin wrote: On webpage https://cygwin.com/ I found only a CgyWin Installer to download. I occasionally use Cygwin installed to NTFS partitions of USB flash drives for many years now. No problems so far, but the use cases were typically limited to "rescue" purposes (mintt

Re: [ANNOUNCEMENT] Test: cygutils 1.4.16-4 (TEST)

2021-08-23 Thread Christian Franke
Takashi Yano via Cygwin wrote: On Fri, 20 Aug 2021 16:28:42 -0700 Mark Geisert wrote: Hi Takashi, Takashi Yano via Cygwin wrote: ... However, I encountered a problem with putclip. Run 'echo | putclip' and paste clipboard to notepad.exe. Pasted string is garbled in my environment. Wha

[PATCH] cygutils-extra 1.4.16-3: cygdrop: Fix printf format strings

2021-08-14 Thread Christian Franke
Christian From 4cf442906ea9654543dd6683960993361f02e525 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sat, 14 Aug 2021 15:14:27 +0200 Subject: [PATCH] cygdrop: Fix printf format strings. --- src/cygdrop/cygdrop.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s

[PATCH] cygutils-extra 1.4.16-3: cygdrop: Fix crash

2021-08-14 Thread Christian Franke
From 330e4c8033ea17c312867906092397425d977c07 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sat, 14 Aug 2021 14:32:25 +0200 Subject: [PATCH] cygdrop: Fix return type of 'void' function. This fixes a crash with recent versions of g++ (GCC Bugzilla 96181). --- src/cygdrop/cygdrop

licensecheck 2.15.8-1: Requires Dpkg/IPC.pm which is not available

2021-03-06 Thread Christian Franke
licensecheck does not longer work: $ cygcheck -f /bin/perl perl_base-5.32.1-1 $ cygcheck -f /bin/licensecheck licensecheck-2.15.8-1 $ licensecheck Can't locate Dpkg/IPC.pm in @INC (you may need to install the Dpkg::IPC module) (@INC contains: /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-

[ANNOUNCEMENT] smartmontools 7.2-1

2021-02-08 Thread Christian Franke
Christian Franke -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

Re: [cygwin] DD bug fails to wipe last 48 sectors of a disk

2020-06-28 Thread Christian Franke
Andrey Repin wrote: dd if=/dev/zero of=/dev/sda iflag=fullblock bs=4M status=progress The root of the problem is that the Windows WriteFile() function apparently does not support truncated writes at EOM. If seek_position + write_size > disk_size, then WriteFile() does nothing and returns an

Re: pread() from /dev/sda fails with: Illegal seek

2020-01-12 Thread Christian Franke
David Balažic wrote: I'm porting an app from Linux to Cygwin and stumbled on this problem: pread on /dev/sda fails with Illegal seek. The simplified code is: #include #include #include #include int main(int argc, char *argv[]) { unsigned int sector_size = 512; void *buf = calloc(sec

[ANNOUNCEMENT] smartmontools 7.1-1

2020-01-02 Thread Christian Franke
://www.smartmontools.org/query?milestone=Release+7.0 Christian Franke -- 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

subversion-1.11.1-1+libserf1_0-1.3.9-1: Segfault after failed connect + empty serf debug package

2020-01-01 Thread Christian Franke
Subversion segfaults with null instruction pointer after a failed connect. This affects the http and https protocols but not the svn protocol. Related report: https://cygwin.com/ml/cygwin/2019-11/msg00126.html Testcase: $ uname -srvmo CYGWIN_NT-10.0 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64 Cygw

Re: Postfix+Cygwin: "mail system startup failed"

2019-06-21 Thread Christian Franke
Greywolf wrote: Greetings! First the important stuff: [uname -a]: CYGWIN_NT-10.0 milliways 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin [windows]: Windows 10 Pro for Workstations Build 16299.rs3_release_svc.180808-1748 [this is a work computer so getting updates for it may not be possible]

Re: [ANNOUNCEMENT] TEST: Cygwin 3.0.0-0.1

2019-01-30 Thread Christian Franke
Corinna Vinschen wrote: I uploaded a new Cygwin test release 3.0.0-0.1 ... What's new: --- ... - Support for case sensitive directories. mkdir(2) automatically creates directories within the Cygwin installation dir as case sensitive now. This feature requires Windows 10 1803

Re: After installing nc (netcat), nc.exe is not found

2018-07-12 Thread Christian Franke
Brian Inglis wrote: On 2018-07-11 14:10, Mark Hansen wrote: ... and I know better than to ask my corporate IT folks to make an exception for me :( Perhaps you could use other packages to get your work done, ... Busybox provides a tiny version of nc: $ busybox nc BusyBox v1.23.2 (2015-07-05

Re: GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream

2018-06-22 Thread Christian Franke
Christian Franke wrote: Marco Atzeri wrote: On 6/12/2018 7:11 PM, Christian Franke wrote: ... The attached patch for /usr/lib/gcc/*-pc-cygwin/7.3.0/include/c++/bits/basic_string.h fixes this. Please forget this patch. It was bases on a wrong assumption and only cures symptoms. It

Re: GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream

2018-06-13 Thread Christian Franke
Marco Atzeri wrote: On 6/12/2018 7:11 PM, Christian Franke wrote: ... The attached patch for /usr/lib/gcc/*-pc-cygwin/7.3.0/include/c++/bits/basic_string.h fixes this. Christian Thanks Christian for the investigation. It seems an upstream bug so could you report it there ? Done: https

Re: GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream

2018-06-12 Thread Christian Franke
Ivan Shynkarenka wrote: I use x64 bit Cygwin and it failed in my home, work and Appveyor. I add cygcheck.out with my environment. I'm sorry about misspell prefix space in my prev example. Please try the following one: #include #include int main(int argc, char** argv) { std::string line

Re: starting smartd automatically

2018-05-29 Thread Christian Franke
Nuzhna Pomoshch wrote: I have (in my very limited time with cygwin) noticed that some daemons (sshd, syslog-ng) are run as Windows services, and started at boot. I have installed smartmontools, and see that it has a more traditional (linux) installation. The smartd start script is in /etc/rc.d/i

_FORTIFY_SOURCE has no effect for C++ due to usage of #define

2018-03-06 Thread Christian Franke
Cygport now sets _FORTIFY_SOURCE=2 for C and C++ but this has no effect for C++. In __SSP_FORTIFY_LEVEL is always set to 0 if __cplusplus is defined. This is needed because ... use #defines to replace the functions. Testcase: $ cat copy.c #include char sbuf[42], *dbuf; void to_sbuf(const

[ANNOUNCEMENT] smartmontools 6.6-1

2018-02-28 Thread Christian Franke
Prop controllers. - SCSI: Default timeout increased to 1 minute. - HDD, SSD and USB additions to drive database. - New smartmontools-* mailing list addresses. - Man page formatting reworked. - Windows: Support for Windows 10 NVMe driver (stornvme.sys). - Windows: Fix CSMI access for IRST driver 15.2.

Re: calloc speed difference

2018-01-12 Thread Christian Franke
Lee wrote: Why is the cygwin gcc calloc so much slower than the i686-w64-mingw32-gcc calloc? 1:12 vs 0:11 $cat calloc-test.c #include #include #define ALLOCATION_SIZE (100 * 1024 * 1024) int main (int argc, char *argv[]) { for (int i = 0; i < 1; i++) { void *temp = calloc(

rebase-4.4.3-1 regression: Too many DLLs for available address space

2018-01-11 Thread Christian Franke
After 4.4.3-1 upgrade, rebase always fails on 32- and 64-bit Cygwin: $ rebase -s -T /var/cache/rebase/rebase_all rebase: Too many DLLs for available address space: Cannot allocate memory Using /bin/rebaseall does not help. A downgrade to 4.4.2-1 fixes the problem. The DLL address range on 32-b

Re: problem with i686-w64-mingw32-gcc -fstack-protector-all

2017-10-08 Thread Christian Franke
Lee wrote: + ./ssp.exe testtestx ./doit: line 11: 9128 Illegal instruction ./ssp.exe testtestx + echo -e '\n\n' The *** stack smashing detected *** message from MinGW runtime is only visible if stdio is attached to a Windows console. Yes! But even after re-reading https://github.com/min

Re: problem with i686-w64-mingw32-gcc -fstack-protector-all

2017-10-04 Thread Christian Franke
Lee wrote: Maybe I'm just Doing It Wrong, but gcc -fstack-protector-all seems to be working correctly & i686-w64-mingw32-gcc -fstack-protector-all seems to be broken - eg: $./ssp testtestx Illegal instruction printf's that happen before the stack over-write don't show up & no "*** stack s

Re: Request update GCC

2017-06-26 Thread Christian Franke
JonY wrote: On 06/25/2017 04:03 AM, JonY wrote: GCC 5 is starting to show its age: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 Would you mine testing GCC6? IIRC exception handling is broken in 6, which is why it is stuck in test. I suppose I can put gcc 6.3 in test soon. Woops, look

[ANNOUNCEMENT] postfix 2.11.9-1

2017-04-22 Thread Christian Franke
removes a dependency to obsolete libdb4.8 on x86. For upstream changes, see HISTORY.bz2 starting at 20141025 and RELEASE_NOTES section "Incompatible change with Postfix 2.11.6". Christian Franke -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygw

Re: Use a default path in exec*p*() if PATH is unset?

2017-04-12 Thread Christian Franke
cyg Simple wrote: ... But I don't believe that env --ignore-environment should be using execvp and should be using execv instead. That is for the upstream coreutils team to decide though. Possibly not, as it would also require to check whether PATH is set later in the command line. Always u

Re: Use a default path in exec*p*() if PATH is unset?

2017-04-11 Thread Christian Franke
cyg Simple wrote: -i, --ignore-environment start with an empty environment A relative use of the executable will not be found if the environment is empty. Not necessarily (see Linux, *BSD, ...). POSIX says this is "implementation-defined" - under the assumption that 'env' uses execvp()

Re: Use a default path in exec*p*() if PATH is unset?

2017-04-11 Thread Christian Franke
Thomas Wolff wrote: Am 10.04.2017 um 22:29 schrieb Christian Franke: A few years after https://cygwin.com/ml/cygwin/2014-09/msg00204.html I found another use case of an unset PATH variable: The configure script from mandoc (http://mdocml.bsd.lv/) uses this interesting approach to query

Use a default path in exec*p*() if PATH is unset?

2017-04-10 Thread Christian Franke
A few years after https://cygwin.com/ml/cygwin/2014-09/msg00204.html I found another use case of an unset PATH variable: The configure script from mandoc (http://mdocml.bsd.lv/) uses this interesting approach to query default CC command from make: CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env

[ANNOUNCEMENT] ddrescue 1.22-1

2017-02-19 Thread Christian Franke
multiplier may now be appended to any of the other multipliers. For example, 'ks' = kilosectors (1000 * sector_size), or 'Kis' = kibisectors (1024 * sector_size). Options '--ask' and '-vv' now always show file size, even if model and serial number are also s

Re: cppcheck 1.77 Segmentation fault (64-bit)

2017-02-07 Thread Christian Franke
David Stacey wrote: ... Anyway, my assumption at the moment is that this is an issue with libstdc++. Any thoughts? The export table of cygstdc++-6.dll 6.3.0-1 is broken, see: https://cygwin.com/ml/cygwin/2017-02/msg00093.html Christian -- Problem reports: http://cygwin.com/problems.

Re: gcc-6.3.0-1 regression: libstdc++6 DLL breaks exception handling

2017-02-07 Thread Christian Franke
JonY wrote: On 01/26/2017 10:30 AM, Christian Franke wrote: After upgrading to gcc test version 6.3.0-1, C++ exception handling is broken if DLL version of new libstdc++6 is used. Noted, I'll consider the test version broken for now. Meantime I examined the testcase with gdb: Th

  1   2   3   4   5   >