Skip to content

Commit

Permalink
misc/libpri: update to 1.6.1
Browse files Browse the repository at this point in the history
ChangeLog: https://www.asterisk.org/asterisk-news/libpri-1-6-1-now-available/

 * .github: Add Releaser workflow
 * Link README to README.md
 * Makefile: Fix modern compiler errors.
 * Makefile: Add the ability to build libpri on MacOS for Linux target.
 * q931.c: Fix subaddress finding octet 4.

Reported by:	portscout
  • Loading branch information
fernape committed Aug 22, 2023
1 parent 065f5a9 commit b04e09d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion misc/libpri/Makefile
@@ -1,5 +1,5 @@
PORTNAME= libpri
PORTVERSION= 1.6.0
PORTVERSION= 1.6.1
CATEGORIES= misc
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/libpri/releases/

Expand Down
6 changes: 3 additions & 3 deletions misc/libpri/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1544570232
SHA256 (libpri-1.6.0.tar.gz) = 7225ea7ec334a115f9dc08e71f55589c38cb4e00b13964cd2f08cc4e6123e3f6
SIZE (libpri-1.6.0.tar.gz) = 340578
TIMESTAMP = 1692260005
SHA256 (libpri-1.6.1.tar.gz) = d4d1a62766695455f1b616f5f7603458e6d23df787ebabc31ffda1c6298d0509
SIZE (libpri-1.6.1.tar.gz) = 334119
24 changes: 12 additions & 12 deletions misc/libpri/files/patch-Makefile
@@ -1,5 +1,5 @@
--- Makefile.orig 2017-01-27 23:25:12.000000000 +0700
+++ Makefile 2018-12-12 06:20:14.634544000 +0700
--- Makefile.orig 2023-08-16 15:52:02 UTC
+++ Makefile
@@ -24,7 +24,7 @@
# Uncomment if you want libpri not send PROGRESS_INDICATOR w/ALERTING
#ALERTING=-DALERTING_NO_PROGRESS
Expand All @@ -8,8 +8,8 @@
+CC?=gcc
GREP=grep
AWK=awk

@@ -34,7 +34,7 @@
AR=ar
@@ -36,7 +36,7 @@ PROC?=$(shell uname -m)
# SONAME version; should be changed on every ABI change
# please don't change it needlessly; it's perfectly fine to have a SONAME
# of 1.2 and a version of 1.4.x
Expand All @@ -18,12 +18,12 @@

STATIC_LIBRARY=libpri.a
DYNAMIC_LIBRARY:=libpri.so.$(SONAME)
@@ -68,10 +68,10 @@
@@ -70,10 +70,10 @@ DYNAMIC_OBJS= \
$(STATIC_OBJS)
CFLAGS ?= -g
CFLAGS += $(CPPFLAGS)
-CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
-CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-zero-length-bounds -Wno-stringop-overflow
+CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-zero-length-bounds -Wno-stringop-overflow
CFLAGS += -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
-INSTALL_PREFIX=$(DESTDIR)
-INSTALL_BASE=/usr
Expand All @@ -32,7 +32,7 @@
libdir?=$(INSTALL_BASE)/lib
ifneq ($(findstring Darwin,$(OSARCH)),)
SOFLAGS=$(LDFLAGS) -dynamic -bundle -Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
@@ -89,7 +89,7 @@
@@ -91,7 +91,7 @@ else
ifeq (${OSARCH},FreeBSD)
LDCONFIG_FLAGS=-m
CFLAGS += -I../zaptel -I../zapata
Expand All @@ -41,7 +41,7 @@
endif
endif
ifeq (${OSARCH},SunOS)
@@ -149,12 +149,12 @@
@@ -151,12 +151,12 @@ install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
mkdir -p $(INSTALL_PREFIX)$(libdir)
mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include
ifneq (${OSARCH},SunOS)
Expand All @@ -58,16 +58,16 @@
else
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
install -f $(INSTALL_PREFIX)$(libdir) -m 755 $(DYNAMIC_LIBRARY)
@@ -190,7 +190,7 @@
@@ -192,7 +192,7 @@ MAKE_DEPS= -MD -MT $@ -MF .$(subst /,_,$@).d -MP
$(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $<

%.lo: %.c
- $(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(MAKE_DEPS) -fPIC -c -o $@ $<

$(STATIC_LIBRARY): $(STATIC_OBJS)
ar rcs $(STATIC_LIBRARY) $(STATIC_OBJS)
@@ -198,7 +198,7 @@
$(AR) rcs $(STATIC_LIBRARY) $(STATIC_OBJS)
@@ -200,7 +200,7 @@ $(STATIC_LIBRARY): $(STATIC_OBJS)

$(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
$(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
Expand Down

0 comments on commit b04e09d

Please sign in to comment.