Skip to content

Commit c14ffce

Browse files
committed
bump libpng for security bug fixes
1 parent 74e5727 commit c14ffce

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
language: c
55

6-
sudo: false
6+
dist: trusty
7+
sudo: required
8+
# sudo: false
79

810
cache:
911
apt: true
@@ -40,6 +42,9 @@ before_install:
4042
- ln -s $(which gcc-4.8) bin/gcc
4143
- ln -s $(which c++-4.8) bin/c++
4244
- ln -s $(which g++-4.8) bin/g++
45+
# - curl "http://ftp.gnu.org/gnu/automake/automake-1.13.1.tar.gz" > automake-1.13.1.tar.gz
46+
# - tar -zxvf automake-1.13.1.tar.gz
47+
# - (cd automake-1.13.1 && ./configure --prefix=`pwd`/../ && make -j5 && make install)
4348
- export PATH=$PWD/bin:$PATH
4449

4550
install:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,6 @@ $(OUTPUT_DIR)/spec/base:
162162
ln -sf ../../../spec $(OUTPUT_DIR)/spec/base
163163

164164
test: $(OUTPUT_DIR)/spec $(OUTPUT_DIR)/.busted
165-
cd $(OUTPUT_DIR) && busted -l ./luajit --exclude-tags=notest
165+
cd $(OUTPUT_DIR) && ./luajit $(shell which busted) ./spec/base/unit
166166

167167
.PHONY: test

thirdparty/libpng/CMakeLists.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8.3)
33

44
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
55
include("koreader_thirdparty_common")
6+
include("koreader_thirdparty_git")
67

78
enable_language(C CXX)
89

@@ -16,14 +17,19 @@ set(CFG_ENV_VAR "CC=\"${CC}\" CXX=\"${CXX}\" CPPFLAGS=\"${CPPFLAGS}\" LDFLAGS=\"
1617
set(CFG_OPTS "-q --prefix=${BINARY_DIR} --disable-static --enable-shared --host=\"${CHOST}\"")
1718
set(CFG_CMD_STR "${CFG_ENV_VAR} ${SOURCE_DIR}/configure ${CFG_OPTS}")
1819

20+
ko_write_gitclone_script(
21+
GIT_CLONE_SCRIPT_FILENAME
22+
https://github.com/glennrp/libpng.git
23+
v1.6.21
24+
${SOURCE_DIR}
25+
)
26+
1927
set(LIBPNG_VER "1.6.19")
2028
include(ExternalProject)
2129
ExternalProject_Add(
22-
libpng
23-
URL http://download.sourceforge.net/libpng/libpng-${LIBPNG_VER}.tar.gz
24-
URL_MD5 3121bdc77c365a87e054b9f859f421fe
25-
DOWNLOAD_DIR ${KO_DOWNLOAD_DIR}
26-
# PATCH_COMMAND sh autogen.sh
30+
${PROJECT_NAME}
31+
DOWNLOAD_COMMAND ${CMAKE_COMMAND} -P ${GIT_CLONE_SCRIPT_FILENAME}
32+
PATCH_COMMAND sh autogen.sh
2733
CONFIGURE_COMMAND sh -c ${CFG_CMD_STR}
2834
BUILD_COMMAND $(MAKE) -j${PARALLEL_JOBS} --silent
2935
INSTALL_COMMAND $(MAKE) -j${PARALLEL_JOBS} --silent install

0 commit comments

Comments
 (0)