Compare commits

...

3 Commits

@ -5,10 +5,14 @@ name: debian-unstable
steps:
- name: debian-build
image: dankamongmen/unstable_builder:2022-01-29a
image: debian:unstable-slim
commands:
- export LANG=en_US.UTF-8
- export TERM=xterm
- apt-get update -y
- apt-get install -y ncurses-dev pkgconf libqrcodegen-dev libavdevice-dev cmake build-essential doctest-dev libunistring-dev libdeflate-dev libgpm-dev pandoc locales
- echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
- locale-gen
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_STATIC=off -DUSE_GPM=on -DUSE_QRCODEGEN=on -DDFSG_BUILD=on -DBUILD_FFI_LIBRARY=on
@ -17,6 +21,7 @@ steps:
- ctest --output-on-failure
- make install
- ldconfig
- apt-get install -y python3-setuptools python3-wheel python3-pip python3-pypandoc python3-cffi-backend
- cd ../cffi
- LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include python3 setup.py sdist build install
- env LD_LIBRARY_PATH=/usr/local/lib ./notcurses-pydemo > /dev/null

@ -123,7 +123,7 @@ if(NOT WIN32)
# MSYS2 needs -lssp and -fstack-protector for _FORTIFY_SOURCE
# macOS with ASAN can't handle _FORTIFY_SOURCE != 1
if(NOT ${USE_ASAN})
add_compile_definitions(_FORTIFY_SOURCE=3)
add_compile_definitions(_FORTIFY_SOURCE=2)
endif()
add_compile_options(-Wformat -Werror=format-security)
endif()

@ -141,7 +141,7 @@ setup_fbcon_bitmaps(tinfo* ti, int fd){
static bool
query_rgb(void){
bool rgb = (tigetflag("RGB") > 1 || tigetflag("Tc") > 1);
bool rgb = (tigetflag("RGB") > 0 || tigetflag("Tc") > 0);
if(!rgb){
// RGB terminfo capability being a new thing (as of ncurses 6.1), it's not
// commonly found in terminal entries today. COLORTERM, however, is a

@ -41,7 +41,7 @@ typedef struct ncvisual_details {
#define IMGALLOCALIGN 64
uint64_t ffmpeg_pkt_duration(const AVFrame* frame){
#ifdef FF_API_PKT_DURATION
#if LIBAVUTIL_VERSION_MAJOR < 59
return frame->pkt_duration;
#else
return frame->duration;

Loading…
Cancel
Save