Re: [ITP] pigz 2.8

2024-01-25 Thread ASSI via Cygwin-apps
Marco Atzeri via Cygwin-apps writes:
> BUILD_REQUIRES="zlib-devel ncompress gzip"

Why is ncompress a build dependency?  Please remove if possible.


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


Re: Unmaintained packages in base package set

2024-01-25 Thread Marco Atzeri via Cygwin-apps

On 03/01/2024 08:49, Marco Atzeri wrote:


+librsvg2 Marco Atzeri


just discovered that librsvg2 requires Rust by long time

** The librsvg 2.40.x series is the last "C only" version
of the library; it was deprecated in 2017.**

https://viruta.org/do-not-use-librsvg-2.40.x.html
https://viruta.org/docs/fmq-porting-c-to-rust.pdf

So until we have a Rust compiler no new release is possible

Regards
Marco




Re: [ITP] btop

2024-01-25 Thread Takashi Yano via Cygwin-apps
On Thu, 25 Jan 2024 15:11:12 +
Jon Turney wrote:
> On 24/01/2024 15:22, Takashi Yano via Cygwin-apps wrote:
> > +#ifdef __CYGWIN__
> > +#define _GNU_SOURCE 1
> > +#endif
> > +
> 
> I'd suggest adding -D_GNU_SOURCE=1 to CPPFLAGS, rather than patching 
> this in everywhere it's needed.
> 
> (Setting this unconditionally could be added to the build system 
> somewhere, which is theoretically upstreamable, since it's only not 
> needed on linux for :reasons:)

Sounds good! Thanks.
I'll add it to CMakeLists.txt and Makfile for CYGWIN for the time being.

> > +#ifdef __CYGWIN__
> > +typedef uint32_t DWORD
> 
> Is it not possible to just #include  here?  If not, perhaps a 
> comment why the definitions are copied would nice.

When I included  here, many conflicts occured between
posix headers and w32api headers.
However, now I have found that including w32api headers after all
the posix headers and typedef IN6_ADDR like:

#ifdef __CYGWIN__
#include 
#include 
#include 
typedef struct {
  union {
u_char Byte[16];
u_short Word[8];
  } u;
} IN6_ADDR;
#include 
#endif

solves the conflicts. Thanks!

-- 
Takashi Yano 


Re: [ITP] pigz 2.8

2024-01-25 Thread Marco Atzeri via Cygwin-apps

On 25/01/2024 19:52, Ihor via Cygwin-apps wrote:

Hi Jon! Thank you for the reply!

I see... Okay, I'm attaching the file here and going to send additional Email 
with an public SSH key.

Best regards,
Ihor



Hi Ihor,

bottom post on the cygwin mail lists

I adjusted the file to build also the debugging portion
and to NOT build in the source tree.

Also adjusted the REQUIRES (not DEPENDS) for the build.

please double check
Regards
Marco

NAME="pigz"
VERSION=2.8
RELEASE=1

CATEGORY="Archive"
SUMMARY="Parallel Implementation of GZip"
DESCRIPTION="pigz, which stands for Parallel Implementation
of GZip, is a fully functional replacement for gzip that
takes advantage of multiple processors and multiple cores
when compressing data."
HOMEPAGE="https://zlib.net/pigz/;
LICENSE="zlib"
# REQUIRES="zlib"

SRC_URI="https://zlib.net/pigz/${NAME}-${VERSION}.tar.gz;
BUILD_REQUIRES="zlib-devel ncompress gzip"

src_compile() {
cd ${S}
lndirs
cd ${B}
echo ${CFLAGS}
cygmake CFLAGS="${CFLAGS}"
}

src_test() {
cd ${B}
cygmake test
}

src_install() {
cd ${B}
exeinto /bin

doexe pigz.exe
doexe unpigz.exe

doman pigz.1
}


SSH public key (hope format isn't broken this time)

2024-01-25 Thread Ihor via Cygwin-apps
Name: Ihor D
 BEGIN SSH2 PUBLIC KEY 
E2VjZHNhLXNoYTItbmlzdHA1MjEIbmlzdHA1MjEAAACFBABxhfjVjvtfyhDDtJ
D6Zd6J2QP729k61Ythm6HKcUQ0ghJrAl7PhTfHU9iA+6YyE/b8ulkRNxJ3wPj05UYsucrH
QAAY2ak1vc4jihRBaLE81V66Id41dBoOhy4asJROSkwXUqHC2mT03FQKiui52RkJ56O1II
ivoZtprhEPaSX2l5MbVQ==
 END SSH2 PUBLIC KEY 





SSH public key

2024-01-25 Thread Ihor via Cygwin-apps
Name: Ihor D
 BEGIN SSH2 PUBLIC KEY 
E2VjZHNhLXNoYTItbmlzdHA1MjEIbmlzdHA1MjEAAACFBABxhfjVjvtfyhDDtJ
D6Zd6J2QP729k61Ythm6HKcUQ0ghJrAl7PhTfHU9iA+6YyE/b8ulkRNxJ3wPj05UYsucrH
QAAY2ak1vc4jihRBaLE81V66Id41dBoOhy4asJROSkwXUqHC2mT03FQKiui52RkJ56O1II
ivoZtprhEPaSX2l5MbVQ== END SSH2 PUBLIC KEY 

Re: [ITP] pigz 2.8

2024-01-25 Thread Ihor via Cygwin-apps
Hi Jon! Thank you for the reply!

I see... Okay, I'm attaching the file here and going to send additional Email 
with an public SSH key.

Best regards,
Ihor

On Thursday, January 25th, 2024 at 5:13 PM, Jon Turney 
 wrote:

>
>
> On 24/01/2024 16:07, Ihor via Cygwin-apps wrote:
>
> > Hi! I'd like to propose a new package: pigz, multithreaded gzip archiver.
> >
> > Some notes regarding it:
> >
> > - It's already present in most distros (Debian, Ubuntu, ...)
> > - zlib License
> > - No changes to sources are required. It's built fine on cygwin as-is.
>
>
> Thanks for looking into this!
>
> > Links:
> >
> > - Original: https://zlib.net/pigz/
> > - cygport file + built package: https://file.io/KPRA9oa0BOj7
>
>
> Unfortunately, that link says it's deleted.
>
> If you can just add the cygport file as an attachment to a mail here,
> that would be great.
>
> > Let me know please what should I do next to proceed forward with publishing 
> > the package.
>
>
> You can also submit an ssh key, as per [1]
>
> [1] https://cygwin.com/packaging/key.html

pigz.cygport
Description: Binary data


Re: [ITP] pigz 2.8

2024-01-25 Thread Jon Turney via Cygwin-apps

On 24/01/2024 16:07, Ihor via Cygwin-apps wrote:

Hi! I'd like to propose a new package: pigz, multithreaded gzip archiver.

Some notes regarding it:

- It's already present in most distros (Debian, Ubuntu, ...)
- zlib License
- No changes to sources are required. It's built fine on cygwin as-is.


Thanks for looking into this!



Links:

- Original: https://zlib.net/pigz/
- cygport​ file + built package: https://file.io/KPRA9oa0BOj7


Unfortunately, that link says it's deleted.

If you can just add the cygport file as an attachment to a mail here, 
that would be great.



Let me know please what should I do next to proceed forward with publishing the 
package.


You can also submit an ssh key, as per [1]

[1] https://cygwin.com/packaging/key.html




Re: [ITP] btop

2024-01-25 Thread Jon Turney via Cygwin-apps

On 24/01/2024 15:22, Takashi Yano via Cygwin-apps wrote:

I'd like to propose a new package btop, which is a feature-rich
resource monitor. btop is ready for many Linux distributions
including Fedora.



Thanks.

 
+#ifdef __CYGWIN__

+#define _GNU_SOURCE 1
+#endif
+


I'd suggest adding -D_GNU_SOURCE=1 to CPPFLAGS, rather than patching 
this in everywhere it's needed.


(Setting this unconditionally could be added to the build system 
somewhere, which is theoretically upstreamable, since it's only not 
needed on linux for :reasons:)



+#ifdef __CYGWIN__
+typedef uint32_t DWORD


Is it not possible to just #include  here?  If not, perhaps a 
comment why the definitions are copied would nice.


Otherwise, this looks great. I added this to your packages.



Re: Tmux crashes on copy

2024-01-25 Thread Yasuhiro Kimura via Cygwin-apps
From: Marco Atzeri via Cygwin-apps 
Subject: Re: Tmux crashes on copy
Date: Thu, 25 Jan 2024 12:11:13 +0100

> Hi,
> 
> I am using from time to time
> 
> the baseline is using
> 
>   GIT_URI=
>   GIT_REV=
>   inherit git
> 
> instead of
> 
>   SRC_URI
> 
> 
> -
> FORGE="mpi"
> NAME="octave-mpi"
> VERSION=3.1.1
> OV=3.1.0
> RELEASE=0.3
> 
> LICENSE="GPL-3.0-or-later"
> CATEGORY="Math"
> SUMMARY="Forge: bindings for basic Message Passing Interface (MPI)"
> DESCRIPTION="${SUMMARY}
> Contributed functions for GNU Octave from octave.sourceforge.net"
> HOMEPAGE="https://gnu-octave.github.io/packages/mpi;
> 
> GIT_URI="https://github.com/carlodefalco/octave-mpi;
> GIT_REV="a44db30"
> SRC_DIR="${PN}"
> inherit git
> #SRC_URI="https://github.com/carlodefalco/octave-mpi/releases/download/v${OV}/${FORGE}-${OV}.tar.gz;
> #SRC_DIR="${FORGE}"
> ..
> --

Thanks for quick reply.

By applying following changes to tmux.cygport of tmux 3.2-1, build of
tmux succeeds with latest snapshot of upstream repository.

--
diff --git a/tmux.cygport b/tmux.cygport
index 8a770f9..bd33422 100644
--- a/tmux.cygport
+++ b/tmux.cygport
@@ -1,5 +1,5 @@
 NAME="tmux"
-VERSION="3.2"
+VERSION="3.3a.330"
 RELEASE="1"
 CATEGORY="Utils"
 SUMMARY="Terminal multiplexer"
@@ -13,11 +13,13 @@ placed in /tmp. Moreover tmux provides a consistent and 
well-documented command
 interface, with the same syntax whether used interactively, as a key binding,
 or from the shell. It offers a choice of vim or Emacs key layouts."
 HOMEPAGE="http://${PN}.github.io;
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz;
+GIT_URI="https://github.com/${PN}/${PN};
+GIT_REV="ea7136fb"
+inherit git
 PATCH_URI="patches/0001-fix-control-mode.patch"
 
 DEPEND="autoconf automake pkg-config libtool gettext-devel make git
-libevent-devel libncurses-devel"
+libevent-devel libncurses-devel bison"
 
 # tmux includes ncurses as  and doesn't look for libncursesw
 CYGCONF_ARGS="CPPFLAGS=-I/usr/include/ncursesw LIBS=-lncursesw"
--

---
Yasuhiro Kimura


Re: Tmux crashes on copy

2024-01-25 Thread Marco Atzeri via Cygwin-apps

On 25/01/2024 10:04, Yasuhiro Kimura via Cygwin-apps wrote:

Switching to cygwin-apps as my question is about .cygport file.

Is there any .cygport file that downloads snapshot of repository on
GitHub as source archive?

I'd like to refer to it in order to package latest snapshot of tmux.

Best Regards.

---
Yasuhiro Kimura


Hi,

I am using from time to time

the baseline is using

  GIT_URI=
  GIT_REV=
  inherit git

instead of

  SRC_URI


-
FORGE="mpi"
NAME="octave-mpi"
VERSION=3.1.1
OV=3.1.0
RELEASE=0.3

LICENSE="GPL-3.0-or-later"
CATEGORY="Math"
SUMMARY="Forge: bindings for basic Message Passing Interface (MPI)"
DESCRIPTION="${SUMMARY}
Contributed functions for GNU Octave from octave.sourceforge.net"
HOMEPAGE="https://gnu-octave.github.io/packages/mpi;

GIT_URI="https://github.com/carlodefalco/octave-mpi;
GIT_REV="a44db30"
SRC_DIR="${PN}"
inherit git
#SRC_URI="https://github.com/carlodefalco/octave-mpi/releases/download/v${OV}/${FORGE}-${OV}.tar.gz;
#SRC_DIR="${FORGE}"
..
--




Re: Tmux crashes on copy

2024-01-25 Thread Yasuhiro Kimura via Cygwin-apps
Switching to cygwin-apps as my question is about .cygport file.

From: Brian Inglis via Cygwin 
Subject: Re: Tmux crashes on copy
Date: Sun, 21 Jan 2024 13:09:23 -0700

> On 2024-01-18 01:24, Takashi Yano via Cygwin wrote:
>> On Thu, 18 Jan 2024 16:37:59 +0900 (JST)
>> Yasuhiro Kimura wrote:
>>> On Wed, 17 Jan 2024 12:30:59 +, David Stephenson via Cygwin wrote:
> 
 When using the copy function in tmux it crashes on Enter.
 Steps:
 ctrl-[ (enter copy mode)
 Navigate to text
 space (start copy)
 Navigate to end of text
 Enter (to select highlighted text) at this point tmux crashes
 cygcheck.out (email redacted) and tmux.exe.stackdump attached
> 
> Known issue also on Fedora with tmux:
> 
>   https://github.com/tmux/tmux/issues/3699
> 
> https://github.com/tmux/tmux/commit/b202a2f1b517a3de7141fc35fbd9e39ed5ac5284
> 
> new release not yet available - maintainer will have to apply upstream
> patch, or users will have to downgrade ncurses.
> 
> It looks like ncurses maintenance lagged, while tmux was updated; now
> ncurses is being updated, so tmux needs updated to 3.3a, with above
> patch and any prereqs.

I tried to do it locally but failed because it is difficult to select
necessary and sufficient changes. So I'm now thinking of packaging
latest snapshot of upstream repository on GitHub. And I have one
question.

Is there any .cygport file that downloads snapshot of repository on
GitHub as source archive?

I'd like to refer to it in order to package latest snapshot of tmux.

Best Regards.

---
Yasuhiro Kimura