svn commit: r513597 - head/ports-mgmt/pkg/files

Baptiste Daroussin bapt at FreeBSD.org
Wed Oct 2 18:35:30 UTC 2019


Author: bapt
Date: Wed Oct  2 18:35:29 2019
New Revision: 513597
URL: https://svnweb.freebsd.org/changeset/ports/513597

Log:
  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 at zyxst.net and mandree
  Discussed with:	jhb

Added:
  head/ports-mgmt/pkg/files/patch-libpkg_pkg__jobs.c   (contents, props changed)

Added: head/ports-mgmt/pkg/files/patch-libpkg_pkg__jobs.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/pkg/files/patch-libpkg_pkg__jobs.c	Wed Oct  2 18:35:29 2019	(r513597)
@@ -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)
+ 


More information about the svn-ports-head mailing list