Skip to content

Commit

Permalink
msys2-runtime-3.5: adjust some files
Browse files Browse the repository at this point in the history
After copying the files verbatim from `msys2-runtime`, this change
reflects that we want to build the MSYS2 runtime v3.5.x in this package.

Note: To make things easier to review, the patches are not yet adjusted
by running `./update-patches.sh`. That will be left for the next commit.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Mar 9, 2024
1 parent 96ef9fc commit 49cd76d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 56 deletions.
46 changes: 10 additions & 36 deletions msys2-runtime-3.5/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
# Contributor: Ray Donnelly <mingw.android@gmail.com>

pkgbase=msys2-runtime
pkgname=('msys2-runtime' 'msys2-runtime-devel')
pkgver=3.4.10
pkgrel=5
pkgbase=msys2-runtime-3.5
pkgname=('msys2-runtime-3.5' 'msys2-runtime-3.5-devel')
pkgver=3.5.1
pkgrel=1
pkgdesc="Cygwin POSIX emulation engine"
arch=('x86_64')
url="https://www.cygwin.com/"
Expand Down Expand Up @@ -250,18 +250,13 @@ build() {
LC_ALL=C make
LC_ALL=C make -j1 DESTDIR="${srcdir}"/dest install

#pushd ${CHOST}/winsup/cygwin > /dev/null
#LANG=C make libmsys2_s.a
#cp libmsys2_s.a "${srcdir}"/dest/usr/${CHOST}/lib/
#popd > /dev/null

rm -rf "${srcdir}"/dest/etc
}

package_msys2-runtime() {
package_msys2-runtime-3.5() {
pkgdesc="Posix emulation engine for Windows"
conflicts=('catgets' 'libcatgets' 'msys2-runtime-3.4')
replaces=('catgets' 'libcatgets' 'msys2-runtime-3.4')
conflicts=('catgets' 'libcatgets' 'msys2-runtime-3.3' 'msys2-runtime')
replaces=('catgets' 'libcatgets')

mkdir -p "${pkgdir}"/usr
cp -rf "${srcdir}"/dest/usr/bin "${pkgdir}"/usr/
Expand All @@ -273,11 +268,11 @@ package_msys2-runtime() {
cp -rf "${srcdir}"/dest/usr/share "${pkgdir}"/usr/
}

package_msys2-runtime-devel() {
package_msys2-runtime-3.5-devel() {
pkgdesc="MSYS2 headers and libraries"
depends=("msys2-runtime=${pkgver}")
conflicts=('libcatgets-devel' 'msys2-runtime-3.4-devel')
replaces=('libcatgets-devel' 'msys2-runtime-3.4-devel')
conflicts=('libcatgets-devel' 'msys2-runtime-3.3-devel' 'msys2-runtimedevel')
replaces=('libcatgets-devel')

mkdir -p "${pkgdir}"/usr/bin
cp -rLf "${srcdir}"/dest/usr/${CHOST}/include "${pkgdir}"/usr/
Expand All @@ -288,24 +283,3 @@ package_msys2-runtime-devel() {

cp -rLf "${srcdir}"/dest/usr/${CHOST}/lib "${pkgdir}"/usr/
}

# return 0
# To hack on this:
# cd /c/repo-MSYS2/msys2-runtime/
# pushd src/build-i686-pc-msys
# LANG=C make && make -j1 DESTDIR=/c/repo-MSYS2/msys2-runtime/src/dest install
# popd
# makepkg -sRLf
# pacman -U msys2-runtime*.xz

# Quicker:
# open cmd.exe
# set "PATH=C:\\msys32\\usr\\bin;%PATH%"
# E:
# pushd E:\m2\repo-MSYS2\msys2-runtime\src\build-i686-pc-msys\i686-pc-msys\winsup\cygwin
# C:/msys32/usr/bin/bash -c "LANG=C && make"
# copy /y new-msys-2.0.dll C:\msys32\usr\bin\msys-2.0.dll
# popd
# C:
# C:/msys32/usr/bin/strace ls / > C:/strace.txt 2>&1
#
4 changes: 2 additions & 2 deletions msys2-runtime-3.5/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The patches for this package are auto generated and managed in git:
https://github.com/msys2/Cygwin
https://github.com/msys2/msys2-runtime/tree/msys2-3.5.1

Run `./update-patches.sh` to re-create the patches.
Run `./update-patches.sh` to re-create the patches.
6 changes: 0 additions & 6 deletions msys2-runtime-3.5/tests/do_new.bat

This file was deleted.

6 changes: 0 additions & 6 deletions msys2-runtime-3.5/tests/do_new2.bat

This file was deleted.

6 changes: 0 additions & 6 deletions msys2-runtime-3.5/tests/do_old.bat

This file was deleted.

0 comments on commit 49cd76d

Please sign in to comment.