Skip to content

Commit

Permalink
libbaseencode: hardening
Browse files Browse the repository at this point in the history
  • Loading branch information
sgn committed Mar 25, 2021
1 parent 5be9e25 commit a17e78e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions srcpkgs/libbaseencode/patches/fix-cflags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Index: libbaseencode-1.0.9/CMakeLists.txt
===================================================================
--- libbaseencode-1.0.9.orig/CMakeLists.txt
+++ libbaseencode-1.0.9/CMakeLists.txt
@@ -15,7 +15,7 @@ set(CMAKE_C_STANDARD 11)
set(BASEENCODE_HEADERS src/baseencode.h)
set(SOURCE_FILES src/base32.c src/base64.c)

-set(CMAKE_C_FLAGS "-Wall -Werror -fPIC")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -fPIC")

add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})

3 changes: 2 additions & 1 deletion srcpkgs/libbaseencode/template
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Template file for 'libbaseencode'
pkgname=libbaseencode
version=1.0.9
revision=1
revision=2
build_style=cmake
short_desc="Library for encoding decoding data use base32 or base64"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/paolostivanin/libbaseencode"
distfiles="https://github.com/paolostivanin/libbaseencode/archive/v${version}.tar.gz"
checksum=a183d7cf30d931b2a078d6f0ef64616b71ab26f9258e5f4e191778c7ace7175d
patch_args=-Np1

libbaseencode-devel_package() {
depends="libbaseencode-${version}_${revision}"
Expand Down

0 comments on commit a17e78e

Please sign in to comment.