[Bug 205998] release/release.sh fails if packages are already installed in chroot

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 7 08:10:36 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205998

            Bug ID: 205998
           Summary: release/release.sh fails if packages are already
                    installed in chroot
           Product: Base System
           Version: 10.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ngie at FreeBSD.org

I used release/release.sh in a chroot more than once, and unfortunately it
failed when installing packages in the chroot, until I replaced the following
`install` lines with `reinstall` (which effectively does -DFORCE_PKG_REGISTER).

It might be a good idea to use similar logic with chroots that are used more
than once..

$ svn diff release/                                                             
Index: release/release.sh
===================================================================
--- release/release.sh  (revision 293115)
+++ release/release.sh  (working copy)
@@ -275,7 +275,7 @@
                        PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}"
                        chroot ${CHROOTDIR} make -C /usr/ports/textproc/docproj
\
                                ${PBUILD_FLAGS} OPTIONS_UNSET="FOP IGOR" \
-                               install clean distclean
+                               reinstall clean distclean
                fi
        fi

@@ -282,7 +282,7 @@
        if [ ! -z "${EMBEDDEDPORTS}" ]; then
                for _PORT in ${EMBEDDEDPORTS}; do
                        eval chroot ${CHROOTDIR} make -C /usr/ports/${_PORT} \
-                               BATCH=1 FORCE_PKG_REGISTER=1 install clean
distclean
+                               BATCH=1 FORCE_PKG_REGISTER=1 reinstall clean
distclean
                done
        fi

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list