Date: Wed, 02 Jul 2014 03:36:48 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191547] New: Flag PKG_ADD_USE_UPGRADE_SCRIPTS have never be set in pkgng Message-ID: <bug-191547-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191547 Bug ID: 191547 Summary: Flag PKG_ADD_USE_UPGRADE_SCRIPTS have never be set in pkgng Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Many People Priority: Normal Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: tuupic@gmail.com This bug about pkgng In pkgng documentation written that exists scripts pre-upgrade, post-upgrade and upgrade (https://wiki.freebsd.org/pkgng#Scripts) But those scripts can not be run. Because they enables via flag PKG_ADD_USE_UPGRADE_SCRIPTS libpkg/pkg_add.c: ============================ if ((flags & PKG_ADD_NOSCRIPT) == 0) { if ((flags & PKG_ADD_USE_UPGRADE_SCRIPTS) == PKG_ADD_USE_UPGRADE_SCRIPTS) pkg_script_run(pkg, PKG_SCRIPT_POST_UPGRADE); else pkg_script_run(pkg, PKG_SCRIPT_POST_INSTALL); } ============================ But this flag never be set ============================ [root@srv5 /usr/ports/ports-mgmt/pkg]# grep -R PKG_ADD_USE_UPGRADE_SCRIPTS work/ work/pkg-1.2.7/libpkg/pkg.h.in:#define PKG_ADD_USE_UPGRADE_SCRIPTS (1U << 1) work/pkg-1.2.7/libpkg/pkg_add.c: if ((flags & (PKG_ADD_NOSCRIPT | PKG_ADD_USE_UPGRADE_SCRIPTS)) == 0) work/pkg-1.2.7/libpkg/pkg_add.c: if ((flags & PKG_ADD_USE_UPGRADE_SCRIPTS) == PKG_ADD_USE_UPGRADE_SCRIPTS) [root@srv5 /usr/ports/ports-mgmt/pkg]# ============================ So scripts pre-upgrade, post-upgrade, upgrade are broken. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191547-13>