aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/pkg-devel
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-06-30 22:43:56 +0800
committerbdrewery <bdrewery@FreeBSD.org>2013-06-30 22:43:56 +0800
commit9df3b4ea416afaf7f04ea65318856aac5fc43c10 (patch)
tree0c264226531ba6a44ec8b41694ec7105cc7d03d4 /ports-mgmt/pkg-devel
parent9086ac351b6a8d8779f38e67b0ca33cfe6b43a4a (diff)
downloadfreebsd-ports-gnome-9df3b4ea416afaf7f04ea65318856aac5fc43c10.tar.gz
freebsd-ports-gnome-9df3b4ea416afaf7f04ea65318856aac5fc43c10.tar.zst
freebsd-ports-gnome-9df3b4ea416afaf7f04ea65318856aac5fc43c10.zip
- Fix build with -Werror
Diffstat (limited to 'ports-mgmt/pkg-devel')
-rw-r--r--ports-mgmt/pkg-devel/Makefile1
-rw-r--r--ports-mgmt/pkg-devel/files/patch-libpkg__utils.c19
2 files changed, 20 insertions, 0 deletions
diff --git a/ports-mgmt/pkg-devel/Makefile b/ports-mgmt/pkg-devel/Makefile
index a5e87b2844d2..b220f944863c 100644
--- a/ports-mgmt/pkg-devel/Makefile
+++ b/ports-mgmt/pkg-devel/Makefile
@@ -2,6 +2,7 @@
PORTNAME= pkg
DISTVERSION= 1.1.3
+PORTREVISION= 1
CATEGORIES= ports-mgmt
MASTER_SITES= http://files.etoilebsd.net/pkg/ \
http://mirror.shatow.net/freebsd/${PORTNAME}/ \
diff --git a/ports-mgmt/pkg-devel/files/patch-libpkg__utils.c b/ports-mgmt/pkg-devel/files/patch-libpkg__utils.c
new file mode 100644
index 000000000000..bce55b43cf37
--- /dev/null
+++ b/ports-mgmt/pkg-devel/files/patch-libpkg__utils.c
@@ -0,0 +1,19 @@
+commit dbb08c0d2a5da374ddc128f93eb0d57efa08ccf8
+Author: Bryan Drewery <bryan@shatow.net>
+Date: Sun Jun 30 09:37:15 2013 -0500
+
+ Return proper value in sha256_fd()
+
+diff --git libpkg/utils.c libpkg/utils.c
+index 45a220a..50dcdd1 100644
+--- libpkg/utils.c
++++ libpkg/utils.c
+@@ -396,7 +396,7 @@ cleanup:
+ close(my_fd);
+ (void)lseek(fd, 0, SEEK_SET);
+
+- return (EPKG_OK);
++ return (ret);
+ }
+
+ int