Re: Unmaintained packages in base package set

2024-01-02 Thread Takashi Yano via Cygwin-apps
On Sat, 23 Dec 2023 04:51:22 +0100
Marco Atzeri wrote:
> On 23/12/2023 04:42, Takashi Yano via Cygwin-apps wrote:
> > On Wed, 20 Dec 2023 12:16:05 +
> > Jon Turney via Cygwin-apps  wrote:
> >> I tweaked the unmaintained packages report [1] a bit so it identifies
> >> 'base' and 'direct or indirect base dependencies'.
> >>
> >> (But you're quite right to point out that the build requirements for a
> >> native Cygwin build are also important)
> >>
> >> [1] https://cygwin.com/packages/reports/unmaintained.html
> > 
> > I would like to take over:
> > libass
> > fontconfig
> > fribidi
> > gnutls
> > openjpeg
> > librsvg2
> > snappy
> > libssh
> > dbus
> > gtk3
> > orc
> > tdb
> > db
> > libid3tag
> > libmad
> > taglib
> > if no one like to do that, because the packages
> > I maintain use them.
> 
> all in one shot ?
> I suggest to start with the smaller beasts one by one or small groups
> I suspect GTK3 needs a lot of effort

Thanks for the advice.

Now, GTK3 package of 3.24.39 has been successfully built and packaged
in my environment with updating some other related packages.

So, firstly, I would like to take over following packages that are related
to GTK3.

fribidi 0.19.7 -> 1.0.13
libdatrie 0.28 -> 0.2.13
libthai 0.1.26 -> 0.1.29
pango1.0 1.40.14 -> 1.51.0
atk1.0 2.26.1 -> 2.38.0
gtk3 3.22.28 -> 3.24.39

> > libass
> > fontconfig
> > gnutls
> > openjpeg
> > snappy
> > libssh
> > dbus
> > orc
> > tdb
> > db
> > libid3tag
> > libmad
> > taglib
will be next steps. I will try them one by one.

> I could be interested in librsvg2 for the same reason of you

Please feel free to take it over. I'd withdraw from librsvg2.

-- 
Takashi Yano 


[ITA] pocl

2024-01-02 Thread Takashi Yano via Cygwin-apps
I'd like to adopt the pocl package.

- Update to latest upstream release.
- Enable CUDA support.

-- 
Takashi Yano 
inherit clang cmake

NAME="pocl"
VERSION=3.1
RELEASE=1
CATEGORY="Libs"
# The entire code is under MIT
# include/utlist.h which is under BSD-1-Clause (unbundled)
# lib/kernel/vecmath which is under GPL-3.0-or-later OR LGPL-3.0-or-later
LICENSE="MIT, BSD-1-Clause, GPL-3.0-or-later OR LGPL-3.0-or-later"
SUMMARY="OpenCL backend implementation"
DESCRIPTION="Portable Computing Language (pocl) aims to become a MIT-licensed
open source implementation of the OpenCL standard which can be easily adapted
for new targets and devices, both for homogeneous CPU and heterogenous GPUs/
accelerators.  pocl uses Clang as an OpenCL C frontend and LLVM for the kernel
compiler implementation, and as a portability layer."
HOMEPAGE="http://portablecl.org/";
SRC_URI="https://github.com/pocl/pocl/archive/v${VERSION}/pocl-v${VERSION}.tar.gz";

PKG_NAMES="libpocl2 libpocl-common libpocl-devel"
libpocl2_REQUIRES="clang libpocl-common"
libpocl2_CONTENTS="
usr/bin/cygpocl-2.dll
usr/bin/libpocl-devices-basic.so
usr/bin/libpocl-devices-cuda.so
usr/bin/libpocl-devices-pthread.so
"
libpocl_common_CONTENTS="
etc/OpenCL/vendors/pocl.icd
usr/share/doc/pocl/
usr/share/pocl/
"
libpocl_devel_OBSOLETES="libpoclu-devel"
libpocl_devel_REQUIRES="libpocl-common"
libpocl_devel_CONTENTS="
usr/bin/poclcc.exe
usr/lib/libpocl.dll.a
usr/lib/pkgconfig/pocl.pc
usr/lib/pocl/cygllvmopencl.dll
usr/lib/libpocl-devices-basic.dll.a
usr/lib/libpocl-devices-cuda.dll.a
usr/lib/libpocl-devices-pthread.dll.a
"


DIFF_EXCLUDES="cl.hpp* testsuite"

CYGCMAKE_ARGS="
-DPOCL_INSTALL_ICD_VENDORDIR=/etc/OpenCL/vendors
-DPOCL_ICD_ABSOLUTE_PATH=OFF
-DENABLE_ICD=ON
-DENABLE_LIBLLVMOPENCL=ON
-DENABLE_CUDA=ON
-DCMAKE_INSTALL_PREFIX=/usr
"
--- origsrc/pocl-3.1/CMakeLists.txt 2022-12-05 21:36:08.0 +0900
+++ src/pocl-3.1/CMakeLists.txt 2024-01-02 08:55:53.483796100 +0900
@@ -817,9 +819,9 @@ endif()
 # constant addrspace variables, and stack protector likely slows
 # down the kernels, so it needs to be determined whether it's worth
 # the trouble.
-set(DEFAULT_KERNEL_CL_FLAGS  "-xcl -fno-stack-protector -fPIC 
${FLOATCONV_FLAG} ${OPAQUE_PTR_FLAGS}")
-set(DEFAULT_KERNEL_C_FLAGS "-xc -std=c11 -D__CBUILD__ -fno-math-errno 
-fno-stack-protector -fPIC ${FLOATCONV_FLAG} ${OPAQUE_PTR_FLAGS}")
-set(DEFAULT_KERNEL_CXX_FLAGS "-xc++ -std=c++11 -fno-stack-protector -fPIC 
${FLOATCONV_FLAG} ${OPAQUE_PTR_FLAGS}")
+set(DEFAULT_KERNEL_CL_FLAGS  "-xcl -fno-stack-protector ${FLOATCONV_FLAG} 
${OPAQUE_PTR_FLAGS}")
+set(DEFAULT_KERNEL_C_FLAGS "-xc -std=c11 -D__CBUILD__ -fno-math-errno 
-fno-stack-protector ${FLOATCONV_FLAG} ${OPAQUE_PTR_FLAGS}")
+set(DEFAULT_KERNEL_CXX_FLAGS "-xc++ -std=c++11 -fno-stack-protector 
${FLOATCONV_FLAG} ${OPAQUE_PTR_FLAGS}")
 
 
 set(EXTRA_KERNEL_FLAGS "" CACHE STRING "Extra arguments to all kernel 
compilation commands (defaults to empty)")
@@ -883,11 +885,12 @@ if(ENABLE_SPIR)
   endif()
 
   # required for the wrapper generator
-  if(CMAKE_VERSION VERSION_LESS 3.12.0)
-find_program(Python3_EXECUTABLE NAMES "python3" REQUIRED)
-  else()
-find_package(Python3 REQUIRED COMPONENTS Interpreter)
-  endif()
+  #if(CMAKE_VERSION VERSION_LESS 3.12.0)
+  #  find_program(Python3_EXECUTABLE NAMES "python3" REQUIRED)
+  #else()
+  #  find_package(Python3 REQUIRED COMPONENTS Interpreter)
+  #endif()
+  set(Python3_EXECUTABLE "/usr/bin/python3")
 
 endif()
 
--- origsrc/pocl-3.1/cmake/LLVM.cmake   2022-12-05 21:36:08.0 +0900
+++ src/pocl-3.1/cmake/LLVM.cmake   2024-01-02 08:17:57.230897700 +0900
@@ -287,7 +287,7 @@ endforeach()
 
 macro(find_program_or_die OUTPUT_VAR PROG_NAME DOCSTRING)
   find_program(${OUTPUT_VAR}
-NAMES "${PROG_NAME}${LLVM_BINARY_SUFFIX}${CMAKE_EXECUTABLE_SUFFIX}" 
"${PROG_NAME}${CMAKE_EXECUTABLE_SUFFIX}"
+NAMES "${PROG_NAME}${LLVM_BINARY_SUFFIX}" "${PROG_NAME}"
 HINTS "${LLVM_BINDIR}" "${LLVM_CONFIG_LOCATION}" "${LLVM_PREFIX}" 
"${LLVM_PREFIX_BIN}"
 DOC "${DOCSTRING}"
 NO_CMAKE_PATH
--- origsrc/pocl-3.1/lib/CL/CMakeLists.txt  2022-12-05 21:36:08.0 
+0900
+++ src/pocl-3.1/lib/CL/CMakeLists.txt  2024-01-02 08:17:57.233896100 +0900
@@ -294,9 +294,10 @@ set_target_properties("${POCL_LIBRARY_NA
 
 target_link_libraries("${POCL_LIBRARY_NAME}" PRIVATE ${POCL_PRIVATE_LINK_LIST})
 install(TARGETS "${POCL_LIBRARY_NAME}"
-ARCHIVE DESTINATION ${POCL_INSTALL_PUBLIC_LIBDIR}/static
+ARCHIVE DESTINATION ${POCL_INSTALL_PUBLIC_LIBDIR}
 COMPONENT "dev"
 LIBRARY DESTINATION ${POCL_INSTALL_PUBLIC_LIBDIR}
+RUNTIME DESTINATION ${POCL_INSTALL_PUBLIC_BINDIR}
 COMPONENT "lib"
 )
 
--- origsrc/pocl-3.1/lib/CL/devices/cuda/CMakeLists.txt 2022-12-05 
21:36:08.0 +0900
+++ src/pocl-3.1/lib/CL/devices/cuda/CMake

Re: [ITA] pocl

2024-01-02 Thread Takashi Yano via Cygwin-apps
On Wed, 3 Jan 2024 14:14:12 +0900
Takashi Yano via Cygwin-apps  wrote:
> I'd like to adopt the pocl package.
> 
> - Update to latest upstream release.

Sorry, the latest upstream release is 5.0 however, 4.0 and later
cannot be built in current cygwin because LLVM package is old.
This update is up to 3.1.

> - Enable CUDA support.

-- 
Takashi Yano 


Re: Unmaintained packages in base package set

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

On 03/01/2024 05:59, Takashi Yano via Cygwin-apps wrote:

On Sat, 23 Dec 2023 04:51:22 +0100
Marco Atzeri wrote:

On 23/12/2023 04:42, Takashi Yano via Cygwin-apps wrote:



I suggest to start with the smaller beasts one by one or small groups
I suspect GTK3 needs a lot of effort


Thanks for the advice.

Now, GTK3 package of 3.24.39 has been successfully built and packaged
in my environment with updating some other related packages.

So, firstly, I would like to take over following packages that are related
to GTK3.

fribidi 0.19.7 -> 1.0.13
libdatrie 0.28 -> 0.2.13
libthai 0.1.26 -> 0.1.29
pango1.0 1.40.14 -> 1.51.0
atk1.0 2.26.1 -> 2.38.0
gtk3 3.22.28 -> 3.24.39



$ git diff  |grep "^+"
+++ b/cygwin-pkg-maint
+atk1.0   Takashi Yano
+fribidi  Takashi Yano
+gtk3 Takashi Yano
+libdatrieTakashi Yano
+libthai  Takashi Yano
+pango1.0


Please feel free to take it over. I'd withdraw from librsvg2.


+librsvg2 Marco Atzeri


Thanks for taking over so many packages

Marco



Re: [ITA] pocl

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

On 03/01/2024 06:25, Takashi Yano via Cygwin-apps wrote:

On Wed, 3 Jan 2024 14:14:12 +0900
Takashi Yano via Cygwin-apps  wrote:

I'd like to adopt the pocl package.

- Update to latest upstream release.


$ git diff  |grep "^+"
+++ b/cygwin-pkg-maint
+pocl Takashi Yano



Sorry, the latest upstream release is 5.0 however, 4.0 and later
cannot be built in current cygwin because LLVM package is old.
This update is up to 3.1.


- Enable CUDA support.


Curiosity, how do we support CUDA on Cygwin ?

Regards
Marco