1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

Update to 1.11

Improvements:
  * better ABI name on linux
  * lots of changes in internal API to use fd when possible
  * 410.pkg-audit now uses anticongestion on freebsd 12+
  * completion improvements
  * add an extra line when printing pkg-messages to improve readability
  * add %q to pkg_printf(3) and pkg-query(8) to print altabi
  * make pkg version -r imply -R
  * New build system based on autosetup
  * pkg is now a semi static binary
  * Add 3 new aliases:
    - rall-depends: showing depenencies of a non installed package
    - rcomment: showing only the comment of a non installed package
    - rdesc: showing only the description of a non installed package
  * close stdin when running scripts
  * Tons of bug fixes
Removal:
  * removed option: pkg repo -L
  * removed script: pkg2ng
This commit is contained in:
Baptiste Daroussin 2019-05-31 09:54:49 +00:00
parent 938674217f
commit b49bc9fc24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=503131
8 changed files with 13 additions and 122 deletions

View File

@ -1,27 +1,27 @@
# $FreeBSD$
PORTNAME= pkg
DISTVERSION= 1.10.5
PORTREVISION= 5
DISTVERSION= 1.11.0
_PKG_VERSION= ${DISTVERSION}
CATEGORIES= ports-mgmt
MASTER_SITES= \
http://files.etoilebsd.net/${PORTNAME}/ \
LOCAL/portmgr \
http://mirror.shatow.net/freebsd/${PORTNAME}/ \
#MASTER_SITES= \
# http://files.etoilebsd.net/${PORTNAME}/ \
# LOCAL/portmgr \
# http://mirror.shatow.net/freebsd/${PORTNAME}/ \
MAINTAINER= pkg@FreeBSD.org
COMMENT= Package manager
LICENSE= BSD2CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= freebsd
USE_LDCONFIG= yes
USES= libtool tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-maintainer-mode
INSTALL_TARGET= install-strip
HAS_CONFIGURE= yes
PORTDOCS= NEWS
PORTSCOUT= ignore:1
CONFIGURE_ARGS= --mandir=${PREFIX}/man
# Use a submake as 'deinstall install' needs to reevaluate PKG_CMD
# so that pkg-static is used from the wrkdir
@ -80,10 +80,6 @@ PKG_DEPENDS=
PKG_BIN= ${WRKSRC}/src/pkg-static
.endif
post-install:
@${MV} ${STAGEDIR}${PREFIX}/lib/libpkg_static.a \
${STAGEDIR}${PREFIX}/lib/libpkg.a
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}/NEWS

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1518650836
SHA256 (pkg-1.10.5.tar.xz) = c2e5ff8505a7f859fd579dc3974822575de8178868fd2497cec0ec18f06da041
SIZE (pkg-1.10.5.tar.xz) = 2216560
TIMESTAMP = 1559295992
SHA256 (freebsd-pkg-1.11.0_GH0.tar.gz) = 0b85372a4c820eb639d0fb95e6225f90a9f817cb8bed6bc5b0b2eccaeafdb32f
SIZE (freebsd-pkg-1.11.0_GH0.tar.gz) = 3560696

View File

@ -1,28 +0,0 @@
diff --git a/libpkg/pkg_jobs_conflicts.c b/libpkg/pkg_jobs_conflicts.c
index 886e100c..141c69f9 100644
--- libpkg/pkg_jobs_conflicts.c.orig
+++ libpkg/pkg_jobs_conflicts.c
@@ -477,7 +477,8 @@ pkg_conflicts_check_chain_conflict(struct pkg_job_universe_item *it,
it->pkg->uid);
if (p != NULL) {
- pkg_jobs_universe_process_item(j->universe, p, &cun);
+ if (pkg_jobs_universe_process_item(j->universe, p, &cun))
+ continue;
assert(cun != NULL);
pkg_conflicts_register_chain(j, it, cun, fcur->path);
}
diff --git a/libpkg/pkg_jobs_universe.c b/libpkg/pkg_jobs_universe.c
index 1a5a2c72..725825ac 100644
--- libpkg/pkg_jobs_universe.c.orig
+++ libpkg/pkg_jobs_universe.c
@@ -570,6 +570,9 @@ pkg_jobs_universe_process_item(struct pkg_jobs_universe *universe, struct pkg *p
* flag that means that we have already tried to check our universe
*/
rc = pkg_jobs_universe_add_pkg(universe, pkg, false, &found);
+ if (rc == EPKG_CONFLICT)
+ return (rc);
+
if (result)
*result = found;

View File

@ -1,13 +0,0 @@
diff --git a/libpkg/pkg.c b/libpkg/pkg.c
index 0c472b39..b4ee9ec3 100644
--- libpkg/pkg.c
+++ libpkg/pkg.c
@@ -1668,7 +1668,7 @@ pkg_is_config_file(struct pkg *p, const char *path,
return (false);
kh_find(pkg_config_files, p->config_files, path, *cfile);
- if (cfile == NULL) {
+ if (*cfile == NULL) {
*file = NULL;
return (false);
}

View File

@ -1,16 +0,0 @@
--- libpkg/pkg_ports.c
+++ libpkg/pkg_ports.c
@@ -353,13 +353,6 @@ meta_file(struct plist *p, char *line, struct file_attr *a, bool is_config)
pkg_addconfig_file(p->pkg, path, content);
free(content);
}
- } else {
- if (is_config) {
- pkg_emit_error("Plist error, @config %s: not a regular "
- "file", line);
- free(buf);
- return (EPKG_FATAL);
- }
}
if (S_ISDIR(st.st_mode) &&

View File

@ -1,34 +0,0 @@
diff --git libpkg/pkg_add.c libpkg/pkg_add.c
index 87fb248..778336c 100644
--- libpkg/pkg_add.c
+++ libpkg/pkg_add.c
@@ -859,14 +859,21 @@ pkg_add_cleanup_old(struct pkgdb *db, struct pkg *old, struct pkg *new, int flag
* Execute pre deinstall scripts
*/
if ((flags & PKG_ADD_NOSCRIPT) == 0) {
- if ((flags & PKG_ADD_USE_UPGRADE_SCRIPTS) == PKG_ADD_USE_UPGRADE_SCRIPTS)
- ret = pkg_script_run(old, PKG_SCRIPT_PRE_UPGRADE);
- else
- ret = pkg_script_run(old, PKG_SCRIPT_PRE_DEINSTALL);
- if (ret != EPKG_OK && pkg_object_bool(pkg_config_get("DEVELOPER_MODE")))
- return (ret);
- else
- ret = EPKG_OK;
+ bool buggydeinstall = false;
+ if (strcmp(old->name, "javavmwrapper") == 0 &&
+ (strcmp(old->version, "2.5") == 0 ||
+ strcmp(old->version, "2.5_1") == 0))
+ buggydeinstall = true;
+ if (!buggydeinstall) {
+ if ((flags & PKG_ADD_USE_UPGRADE_SCRIPTS) == PKG_ADD_USE_UPGRADE_SCRIPTS)
+ ret = pkg_script_run(old, PKG_SCRIPT_PRE_UPGRADE);
+ else
+ ret = pkg_script_run(old, PKG_SCRIPT_PRE_DEINSTALL);
+ if (ret != EPKG_OK && pkg_object_bool(pkg_config_get("DEVELOPER_MODE")))
+ return (ret);
+ else
+ ret = EPKG_OK;
+ }
}
/* Now remove files that no longer exist in the new package */

View File

@ -1,11 +0,0 @@
--- src/Makefile.in.orig 2018-02-14 23:08:02 UTC
+++ src/Makefile.in
@@ -619,7 +619,7 @@ pkg_static_LDADD = @OS_LDFLAGS@ $(pkg_OBJECTS) \
$(top_builddir)/libpkg/libpkg_static.la \
$(top_builddir)/compat/libbsd_compat.la @LIBJAIL_LIB@ \
@LDNS_LIBS@ @OS_LIBS@ -larchive -lz -lutil -lbz2 -llzma -lssl \
- -lcrypto -lm $(am__append_2) $(am__append_3) $(am__append_4)
+ -lpthread -lcrypto -lm $(am__append_2) $(am__append_3) $(am__append_4)
DYNPROG = pkg
@BUILD_STATIC_TRUE@pkg_static_LDFLAGS = -all-static
dist_sysconf_DATA = pkg.conf.sample

View File

@ -9,7 +9,6 @@ include/pkg.h
lib/libpkg.a
lib/libpkg.so
lib/libpkg.so.4
lib/libpkg.so.4.0.0
libdata/pkgconfig/pkg.pc
man/man3/pkg_printf.3.gz
man/man3/pkg_repos.3.gz
@ -24,7 +23,6 @@ man/man8/pkg-backup.8.gz
man/man8/pkg-check.8.gz
man/man8/pkg-clean.8.gz
man/man8/pkg-config.8.gz
man/man8/pkg-convert.8.gz
man/man8/pkg-create.8.gz
man/man8/pkg-delete.8.gz
man/man8/pkg-fetch.8.gz
@ -52,5 +50,4 @@ man/man8/pkg-which.8.gz
man/man8/pkg.8.gz
sbin/pkg
sbin/pkg-static
sbin/pkg2ng
share/zsh/site-functions/_pkg