Skip to content

Commit a5e5f72

Browse files
Andreas BlätteAndreas Blätte
authored andcommitted
merge commit dev->master
2 parents b10b242 + 856a5dc commit a5e5f72

File tree

9 files changed

+25
-43
lines changed

9 files changed

+25
-43
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
config:
28-
- {os: windows-latest, r: 'release'}
29-
# - {os: windows-2022, r: 'devel'}
28+
- {os: windows-latest, r: 'release', rtools: '42', windows-path-include-mingw: 'false'}
3029
- {os: macOS-latest, r: 'release'}
3130
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
3231
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
@@ -40,25 +39,12 @@ jobs:
4039
- uses: actions/checkout@v2
4140

4241
- uses: r-lib/actions/setup-r@v2
43-
if: matrix.config.os != 'windows-2022'
4442
with:
4543
r-version: ${{ matrix.config.r }}
44+
rtools-version: ${{ matrix.config.rtools }}
4645
http-user-agent: ${{ matrix.config.http-user-agent }}
4746
use-public-rspm: true
4847

49-
- name: Setup R (Windows UCRT)
50-
if: matrix.config.os == 'windows-latest'
51-
uses: kalibera/ucrt3/actions/r-install@main
52-
53-
- name: Install UCRT toolchain
54-
if: matrix.config.os == 'windows-latest'
55-
uses: kalibera/ucrt3/actions/toolchain-install@main
56-
with:
57-
# base ... toolchain has the compilers and libraries to build R and recommended packages
58-
# full ... additional libraries to build CRAN packages
59-
# none ... no toolchain is needed (no native code)
60-
toolchain-type: full
61-
6248
- uses: r-lib/actions/setup-pandoc@v2
6349

6450
- uses: r-lib/actions/setup-r-dependencies@v2
@@ -99,28 +85,13 @@ jobs:
9985
shell: Rscript {0}
10086

10187
- name: Check
102-
if: matrix.config.os != 'windows-2022'
10388
env:
10489
_R_CHECK_CRAN_INCOMING_REMOTE_: false
10590
run: |
10691
options(crayon.enabled = TRUE)
10792
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
10893
shell: Rscript {0}
10994

110-
# - name: Whereabouts of gcc and g++
111-
# if: matrix.config.os == 'windows-latest'
112-
# run: |
113-
# echo %PATH%
114-
# where gcc
115-
# where g++
116-
117-
- name: Check package (UCRT)
118-
if: matrix.config.os == 'windows-latest'
119-
env:
120-
_R_INSTALL_TIME_PATCHES_: no
121-
TZ: UTC
122-
uses: kalibera/R-actions/pkg-check@master
123-
12495
- name: Build Windows binary package
12596
if: matrix.os == 'windows-latest'
12697
run: pkgbuild::build(binary = TRUE, dest_path = Sys.getenv("GITHUB_WORKSPACE"))

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: RcppCWB
22
Type: Package
33
Title: 'Rcpp' Bindings for the 'Corpus Workbench' ('CWB')
4-
Version: 0.5.3
5-
Date: 2022-05-17
4+
Version: 0.5.4
5+
Date: 2022-08-30
66
Author: Andreas Blaette [aut, cre],
77
Bernard Desgraupes [aut],
88
Sylvain Loiseau [aut],

NEWS.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# RcppCWB 0.5.2.9001ff
1+
# RcppCWB 0.5.4
2+
3+
* Fixed package configuration that prevented that compiler is used for compiling
4+
CWB C scripts as intended #66.
5+
* Adding '-luuid' to PKG_FLAGS in Makevars solves linker issue FOLDERID_ #67.
6+
* GitHub Actions now working for Windows #47.
7+
8+
9+
# RcppCWB 0.5.3
210

311
* Fixed a bug in the `region_matrix_corpus()` C++ code that would not show any
412
context at all if s_attribute expansion transgressed start or end of corpus.

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ mv ./src/cwb/config.mk.mod ./src/cwb/config.mk
9898
# Adapt CWB configuration file that defines compiler to use compiler chosen
9999
# by user (Makeconf, Makevars file)
100100
echo "* adapt CWB configuration file to use compiler: $CC_R"
101-
sed -e "s#CC\s*=\s*gcc#CC=$CC_R#" ./src/cwb/config/platform/${CWB_PLATFORM_CONFIG_FILE_CC} > ./tmpfile
101+
sed -e "s/#[[:space:]]*CC[[:space:]]*=[[:space:]]*gcc/CC = $CC_R/" ./src/cwb/config/platform/${CWB_PLATFORM_CONFIG_FILE_CC} > ./tmpfile
102102
rm ./src/cwb/config/platform/${CWB_PLATFORM_CONFIG_FILE_CC}
103103
mv ./tmpfile ./src/cwb/config/platform/${CWB_PLATFORM_CONFIG_FILE_CC}
104104

cran-comments.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
## General remarks
22

3-
This is a maintenance release with bug fixes. No changes to the
4-
setup of the package.
3+
I realized ERRORS on the macOS and Windows build machines: Fixed as follows:
4+
5+
- For Windows, I add '-luuid' to PKG_FLAGS (necessary to meet new dependency of
6+
glib2).
7+
- For macOS, the CC defined in Makeconf was not passed to the compilation of
8+
the CWB source files. Changed the configure scripts accordingly.
9+
510

611
Previous aspects I repeat:
712

src/Makevars.ucrt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GLIB_DEFINES=-I"$(R_TOOLS_SOFT)/include/glib-2.0" \
55

66
PKG_CPPFLAGS=-I$(R_PACKAGE_SOURCE)/cqp -I$(R_PACKAGE_SOURCE)/cl -I$(R_PACKAGE_SOURCE)/CQi $(GLIB_DEFINES) -DPCRE_STATIC
77

8-
PKG_LIBS=-L$(R_PACKAGE_SOURCE)/cl -L$(R_PACKAGE_SOURCE)/cqp -L$(R_PACKAGE_SOURCE)/utils -lcwb -lcqp -lcl -lglib-2.0 -lintl -liconv -lws2_32 -lpcre -lole32
8+
PKG_LIBS=-L$(R_PACKAGE_SOURCE)/cl -L$(R_PACKAGE_SOURCE)/cqp -L$(R_PACKAGE_SOURCE)/utils -lcwb -lcqp -lcl -lglib-2.0 -lintl -liconv -lws2_32 -lpcre -luuid -lole32
99

1010
${SHLIB}: libcl.a libcqp.a libcwb.a
1111

src/cqp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,4 +386,4 @@ SEXP region_matrix_to_subcorpus(Rcpp::IntegerMatrix region_matrix, SEXP corpus,
386386

387387
sc = R_MakeExternalPtr(cl, R_NilValue, R_NilValue);
388388
return(sc);
389-
}
389+
}

src/cwb/config.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ FULL_MESSAGES = 1
117117
# RELEASE_OS = ??? # e.g. linux-2.6 or osx-10.4
118118

119119
## C compiler to use (GCC is highly recommended, others may not work)
120-
CC = gcc
120+
# CC = gcc
121121

122122
## Override options for C compiler and linker (complete override)
123123
# CFLAGS = -O2 -Wall

src/cwb/config/platform/darwin-arm64

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
include $(TOP)/config/platform/darwin
2626

2727
## Explicitly use Clang compiler (Apple's gcc is now just a symlink to Clang)
28-
CC = /usr/bin/clang
28+
# CC = /usr/bin/clang
2929

3030
## Only build default 64-bit architecture, optimised for this system
3131
CFLAGS = -Wall -O3 -arch arm64 -mtune=native
@@ -36,5 +36,3 @@ DEPEND_CFLAGS = -Wall -O3
3636
RELEASE_ARCH = x86_64
3737
RELEASE_OS = osx-10.7
3838

39-
40-
LDFLAGS = -foo

0 commit comments

Comments
 (0)