aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2019-10-03 06:10:36 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2019-10-03 06:10:36 +0000
commit91c14ba59a8858655a31385a4802d466c40a3004 (patch)
tree85305b8c3d5d99fb129780bb8effd9ba122207c3 /ports-mgmt
parentce7814d735f6d1efb3f17f406227214b4dfb9032 (diff)
downloadports-91c14ba59a8858655a31385a4802d466c40a3004.tar.gz
ports-91c14ba59a8858655a31385a4802d466c40a3004.zip
MFH: r513597
Attempt to fix pkg on mips. Since recently, libarchive is linked to libzstd, which itself uses threads somehow, this make the build of pkg in mips unhappy. Given libpkg is not threadsafe anyway just drop the __thread PR: 240822 Reported by: tech-lists@zyxst.net and mandree Discussed with: jhb
Notes
Notes: svn path=/branches/2019Q4/; revision=513649
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/pkg/files/patch-libpkg_pkg__jobs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ports-mgmt/pkg/files/patch-libpkg_pkg__jobs.c b/ports-mgmt/pkg/files/patch-libpkg_pkg__jobs.c
new file mode 100644
index 000000000000..7d54afff36e2
--- /dev/null
+++ b/ports-mgmt/pkg/files/patch-libpkg_pkg__jobs.c
@@ -0,0 +1,11 @@
+--- libpkg/pkg_jobs.c.orig 2019-09-18 07:11:10 UTC
++++ libpkg/pkg_jobs.c
+@@ -74,7 +74,7 @@ struct pkg_jobs_locked {
+ int (*locked_pkg_cb)(struct pkg *, void *);
+ void *context;
+ };
+-static __thread struct pkg_jobs_locked *pkgs_job_lockedpkg;
++static struct pkg_jobs_locked *pkgs_job_lockedpkg;
+
+ #define IS_DELETE(j) ((j)->type == PKG_JOBS_DEINSTALL || (j)->type == PKG_JOBS_AUTOREMOVE)
+