# changelog

author: Toshio Kuratomi <a.badger@gmail.com> - 1.5-2
changelog:
  - Verify that .pth files are correct.
  - Update license tag for new guidelines.
  - Update setuptools BR for changes in rawhide.


author: Clark Williams <williams@redhat.com> - 0.6.11-1
changelog:
  - added error() calls to print command output on failed commands
  - added installdeps command for long-term chroot management


author: Clark Williams <williams@redhat.com> - 0.6.9-1
changelog:
  - applied Eric Work's patch to fix defaults vs. command line option problem
    (BZ 215168)
  - use /etc/mock/defaults.cfg if --configdir specified and no defaults found
    in the specified configdir
    (BZ 209407)
  - applied Jesse Keatings patch for arch specifi config files
    (BZ 213516)


author: Seth Vidal <skvidal@phy.duke.edu>
changelog:
  - mock 0.3 - security release
  - mock-helper allowed execution of arbitrary commands by member of mock
    group


author: Clark Williams <williams@redhat.com> - 1.0.28-1
changelog:
  - From Dennis Gilmore <dennis@ausil.us>
    - add Fedora 17 mock configs
    - have configs reflect the dropping of dist- for koji repos
    - add configs for arm hardware floating point


author: Clark Williams <williams@redhat.com> - 1.0.27-1
changelog:
  - fixed missing files from Makefile.am
  - change [local] repo definition for f16+ configs [BZ# 753735]
  - don't run createrepo inside chroot [BZ# 783926]
  - from Ville Skyttä <ville.skytta@iki.fi>
    - llow setting https, ftp, and no proxy in addition to http.


author: Clark Williams <williams@redhat.com> - 1.0.26-1
changelog:
  - added header output for test sections
  - Added a mount plugin for handling additional user-specified mounts.
  - modify do_rebuild() to use chroot function doChroot()
  - move mount management into classes
  - remove setting TMPDIR in chroot environment [BZ# 769728]
  - add code to allow global proxy in chroot [BZ# 766199]
  - explicitly set unprivileged umask in --shell [BZ# 747119]
  - add bind-mount config to create sourcedirs [BZ# 706174]
  From Marko Myllynen <myllynen@redhat.com>:
       - Allow mock repos to use yum priorities [BZ# 771604]
  From Alfred <alfred@leakybucket.org>:
       - fix dangling symlink when using SCM [BZ# 758781]
  From Ville Skyttä <ville.skytta@iki.fi>:
       - Get rid of chrootEnvUpdate, just update backend env directly, and always pass it.
       - Log env when executing commands.


author: Clark Williams <williams@redhat.com> - 1.0.25-1
changelog:
  - modify creation of default.cfg link to force creation if the
    symlink exists but doesn't point to a valid config [BZ# 741145]
  - remove TZ from default environment [BZ# 754701]
  - unbuffer output from --chroot command [BZ# 744761]
  - added -debug stanzas in configs [BZ# 610823]
  - report package contents of chroot after init [BZ# 736858]
  - add _umountall() call to clean [BZ# 502922]
  - updated release checklist overview and 1.1 checklist
  - add code to tmpfs plugin to try a force umount on umount fail
  - add 'lazy' option (-l) to umount
  - prevent exceptions when showing installed packages on EPEL-4
  - deleted unused (or cannot be used) configs
  - from Davi Arnaut <davi.arnaut@gmail.com>
    - set chroot environment variables from config files [BZ# 753179]


author: Clark Williams <williams@redhat.com> - 1.0.24-1
changelog:
  - fixed shell command handling [BZ# 750075]
  - from Marko Myllynen <myllynen@redhat.com>:
    - Fix SCM integration on RHEL 5 [BZ# 749518]
  - from Ville Skyttä <ville.skytta@iki.fi>
    - bash completion fixes


author: Clark Williams <williams@redhat.com> - 1.0.23-1
changelog:
  - modified bind_mount and tmpfs plugins to use hooks for shell and chroot
  - refactored --shell and --chroot commands [BZ# 619533,728004,745550]
  - added input validation for --buildsrpm [BZ# 743173]
  - ensured configs don't have execute bit set [BZ# 744013]
  - modified root cache pluging to not cache bind mounts [BZ# 744727]
  - removed invalid excludes from epel-{4,5}-x86_64 configs [BZ# 533762]
  - From Marko Myllynen <myllynen@redhat.com>:
    - Set HOME properly when doing SCM checkouts [BZ# 745394]
    - Support for setting timestamps for Git checkouts [BZ# 745396]
  - From Yury V. Zaytsev <yury@shurup.com>:
    - fix incorrect-fsf-address rpmlint warning [BZ#741068] 
  - From Jan Vcelak <jvcelak@redhat.com>:
    - resolve SELinux filesystem mountpoint [BZ# 734781]


author: Clark Williams <williams@redhat.com> - 1.0.22-1
changelog:
  - Fixed logging issues due to namespace change [BZ# 740232,739550,739972]
  - Fixed error removing old RMP db files [BZ# 738052]
  - From Yury V. Zaytsev <yury@shurup.com>:
    - SELinux plugin uses Python 2.5 syntax [BZ# 740327]
    - Fix inconsistent permissions in specfile [BZ# 715286]


author: Clark Williams <williams@redhat.com> - 1.0.21-1
changelog:
  - From Toshio Ernie Kuratomi <a.badger@gmail.com>
    - Fix install path of mockbuild module and default path to module dir


author: Clark Williams <williams@redhat.com> - 1.0.20-1
changelog:
  - add custom exception for unshare(2) failures
  - change getLog().warn to getLog().warning for consistency
  - fix namespace collision with python-mock [BZ# 601725]
  - from Kirby Zhou <kirbyzhou@sogou-inc.com>
    - remove rpmdb files before rebuilding SRPM [BZ# 719008]
  - from Marko Myllynen <myllynen@redhat.com>
    - integrate mock with RHN
  - from Giam Teck Choon <choon@choon.net>
    - add support for passing options to yum-buildep via mock cfg


author: Clark Williams <williams@redhat.com> - 1.0.19-1
changelog:
  - fixed incorrect python version requirement
  - remove f13 configs
  - added exception for unshare(2) failures [BZ# 718714]
  - added back 'newinstance' mount option to devpts (with symlink logic)
  - fixed epel-6-* configurations [BZ# 679885, 719740]
  - from Matt Domsch <Matt_Domsch@dell.com>
    - tmpfs plugin typo fix


author: Clark Williams <williams@redhat.com> - 1.0.18-1
changelog:
  - remove 'newinstance' mount parameter from devpts filesystem mount (BZ# 711175)
  - modify --chroot command to print command output
  - update the python requirement to >= 2.6 for 1.1.x mock branch
  - updated build procedure using fedpkg
  - added Fedora 16 configuration files
  - from James Laska <jlaska@redhat.com>
    - fix log message typo in SELinux plugin
  - from Yury V. Zaytsev <yury@shurup.com>
    - Fix inconsistent permissions fixing on /var/cache/mock in SPEC template (BZ 715286)


author: Clark Williams <williams@redhat.com> - 1.0.17-1
changelog:
  - rewrote part of selinux plugin for python 2.4
  - raise exception if running mock and user not member of mock group (BZ# 630791)
  - call setsid() to kill controlling terminal in chroot (BZ# 672713,501096)
  - Went back to creating /dev/tty and /dev/ptmx in all chroots (BZ# 683111)
  - Fixed problem where mock was not constrained to the chroot (BZ# 669733)
  - Fix typo in /dev/tty creation code for EPEL{4,5} (BZ# 675803)
  - From Marko Myllynen <myllynen@redhat.com>:
    - updated SCM integration (BZ# 670453)
  - from Masatake YAMATO <yamato@redhat.com>:
    - fixed invocation typo in exception.py (BZ# 634555)
  - From Jan Vcelak <jvcelak@redhat.com>:
    - updated selinux plugin (BZ# 573111, 667190)
  - From Levente Farkas <lfarkas@lfarkas.org>:
    - adding missing macro for epel-5 configs (BZ# 695298)
  - From  Mathieu Bridon <bochecha@fedoraproject.org> and
          Remi Collet <fedora@famillecollet.com>:
    - fix chroot cleanup issues (BZ# 668222)
    - fix ccache ownership issues (BZ# 700983)
  - From Dan Horák <dan@danny.cz>:
    - added s390 back as legal arch for s390x (BZ# 678047)
  - From Ville Skyttä <ville.skytta@iki.fi>:
    - Fixes shell escaping issue by using tuples rather than strings


author: Clark Williams <williams@redhat.com> - 1.0.16-1
changelog:
  - commented out /dev/tty handling code in backend.py (BZ# 609201)
  - fix createrepo generated root-owned repository data (BZ# 668278)
  - From Jesse Keating <jkeating@redhat.com>
    - Make "dist" for rawhide configs be "rawhide" (BZ# 506157)
  - From Ville Skyttä <ville.skytta@iki.fi>
    - Make --enable/disable-plugin completion work again.
    - Add --install bash completion.
    - Delete trailing whitespace.
  - From Dennis Gilmore <dennis@ausil.us>
     - add the f15 mock configs
     - use the s390 mirrorlists for s390 configs
     - add rawhide arm config


author: Clark Williams <williams@redhat.com> - 1.0.15-1
changelog:
  - corrected examples section of the mock.1 man page
  - added logging for 'install' and 'update' commadns (BZ# 594477)
  - added log file of root cache creation (BZ# 444796)
  - added logging to the scrub command
  - added unlockBuildRoot() method to clean up build root lockfile
  - From Michael Hampton <error@ioerror.us>:
    - Add -f (force) option to userdel when recreating mockbuild user (BZ# 662223)
  - From Marko Myllynen <myllynen@redhat.com>:
    - Integrate Mock with SCMs (CVS/Git/SVN)
    - document SCM build options in usage and man page
  - From Masatake YAMATO <yamato@redhat.com>:
    - add runtime location of plugins (BZ# 634224)


author: Clark Williams <williams@redhat.com> - 1.0.14-1
changelog:
  - add 'legal_host_arches' config option to configs (BZ# 622792)
  - add root check and group check (BZ# 662223)
  - from Ville Skyttä <ville.skytta@iki.fi>:
    - Try to set up an appropriate default.cfg symlink at post install time
    - Clean up disttag usage
    - Drop obsolete and nonfunctional F-8 bits from specfile
    - Drop no longer used requiresTextFromHdr() and uniqReqs()
    - Install build deps with yum-builddep
    - Add comment why binary packages are built with --nodeps


author: Clark Williams <williams@redhat.com> - 1.0.13-1
changelog:
  - replace call to perl with native python edit function
  - change permissions of selinux plugin 'filesystems' file
  - from Ville Skyttä <ville.skytta@iki.fi>:
    - Find out completions for --*-plugin dynamically
    - Keep $COLUMNS in consolehelper environment for --help formatting
    - Document --scrub, --enable-plugin, and --disable-plugin
    - Fix option name in --enable-plugin/--disable-plugin error string
    - Add --scrub completion
    - Complete on *.spm (*.src.rpm are sometimes named like that e.g. in SUSE)
    - Fix buildsrpm() docstring
    - Error message improvements


author: Clark Williams <williams@redhat.com> - 1.0.12-1
changelog:
  - add cmpKernelEVR function to compare kernel versions (BZ# 526414)
  - added commandline argument checking for --buildsrpm (BZ# 605800)
  - create empty faillog and lastlog in <chroot>/var/log (BZ# 585973 & 633435)
  - changed copyin/copyout prints from debug to info
  - from Alan Franzoni <mailing@franzoni.eu>:
    - reworked the root object _umountall() method
  - fix epel4 chroot cleanup and umountall issue


author: Clark Williams <williams@redhat.com> - 1.0.11-1
changelog:
  - fix problem with mock.util.rmtree interaction with selinux plugin
  - change integer constants to symbolic from errno package
  - from Paul Howarth <paul@city-fan.org>:
    - add i586 as a legal target arch
    - Retain order of umountCmds
    - Exclude bind-mounted cache dirs from root cache
    - noarch is always a legal arch
    - Update packages after unpacking root cache


author: Clark Williams <williams@redhat.com> - 1.0.10-1
changelog:
  - append rather than insert umount of /proc/filesystems (BZ# 620825)
  - set state correctly for SELinux (BZ# 620143)
  - turn off updates-released repository for prerelease fedora-14 configs


author: Clark Williams <williams@redhat.com> - 1.0.9-1
changelog:
  - From Jan Vcelak <jvcelak@redhat.com>:
    - added an selinux plugin
  - From Kalev Lember <kalev@smartlink.ee>:
    - patch to tmpfs plugin to allow specifying max fs size
  - From Ricky Zhou <rzhou@redhat.com>:
    - allow --sources to specify either single file or directory (BZ# 510409)
  - From Dennis Gilmore <dennis@ausil.us>:
    - updated epel-6 config files
  - From Paul B. Schroeder <paulbsch@haywired.net>:
    - add the --scrub option for cleaning up cache (BZ# 450726)
  - added symlink from /proc/self/fd to /dev/fd in the chroot (BZ# 526414)
  - changed from referencing defaults.cfs to site-defaults.cfg (BZ# 600487)
  - added i686 architecture
  - deleted f10 and f11 configs
  - fixed cachefile filtering logic
  - moved rpmdb clean block of code to work with --offline option
  - added logic to detect invalid architecture combinations (BZ# 607144)
  - added description of how to add user to the mock group (BZ# 570434)


author: Clark Williams <williams@redhat.com>- 1.0.6-1
changelog:
  - added code to check for SELinux being enabled or disabled
    and avoid calling 'chcon' if disabled
  - add conditional Require of python-hashlib if building for
    the EL5 distro


author: Clark Williams <williams@redhat.com>- 1.0.5-1
changelog:
  - from Jesse Keating <jkeating@redhat.com>:
    - fixed 'useradd' option conflict with EPEL (-N vs -n)
    - added Fedora 13 configs


author: Clark Williams <williams@redhat.com>- 1.0.4-1
changelog:
  - added patch from Seth Vidal <skvidal@fedoraproject.org> to 
    automatically run createrepo on generated rpms


author: Clark Williams <williams@redhat.com>- 1.0.2-1
changelog:
  - added IPv6 localhost entry for default /etc/hosts (BZ# 545435)
  - removed output of gethostname() in IPv4 localhost entry as this
    caused koji problems and cause 'localhost' to be put into generated
    rpms, rather than the output of hostname
  - add code to setup /dev/pts differently on EL* than on FC* hosts


author: Clark Williams <williams@redhat.com>- 1.0.0-1
changelog:
  - modified pty devpts mount code to actually work (BZ# 510183)
  - deleted F9 configs
  - version bump to 1.0.0


author: Clark Williams <williams@redhat.com>- 0.9.20-1
changelog:
  - conditionalized import of uuid to avoid failure on RHEL5
  - added autoconf/automake mojo to prefer using rpmbuild-md5 for
    cross-platform rpm compatibility


author: Jesse Keating <jkeating@redhat.com>- 0.9.18-1
changelog:
  - Update for Fedora 12 and 13 configs
  - Patch from dgilmore to clean up epel configs
  - Update configs for new koji static-repo locations
  - Don't automatically update the chroot in a --no-clean scenario


author: Clark Williams <williams@redhat.com>- 0.9.17-1
changelog:
  - Patch from Jakub Jelinek <jakub@redhat.com> for mounting
    /dev/pts correctly in the chroot (BZ# 510183)
  - raise exception when --shell specified for uninitialized chroot
    (BZ# 506288)
  - add directory and infrastructure to allow dbus to run inside
    chroot (BZ# 460574)
  - patch from Levente Farkas <lfarkas@lfarkas.org> to fix exclude
    in EPEL 5 x86_64 config


author: Clark Williams <williams@redhat.com> - 0.9.14-1
changelog:
  - logging cleanup (mikem)
  - add new exception for resultdir not available (mebrown)
  - moved mock cache dir to /var/cache/mock (williams)
  - added version variable and version banner to logs (williams)
  - removed import of popen2 to whack deprecated message (williams)
  - prevent disabling ccache on epel-5 (tmz)
  - added configs for sparc and s390 (dgilmore)
  - fixed git log command used in build (tmz)
  - added copy of spec/sources for building srpms (mebrown)
  - changed unlink to rmdir (mebrown)
  - set HOME directory globally (mikeb)
  - commented out privlege drop in --copyin (williams)


author: Clark Williams <williams@redhat.com> - 0.9.12-1
changelog:
  - internal setarch support for s390/s390x (mikem)
  - Refer to the .newkey location of current Fedora 8/9 updates. (jkeating)
  - [bz458234] Picked up corrected patch (pmatilai)


author: Clark Williams <williams@redhat.com> - 0.9.11-1
changelog:
  - added workarounds for rawhide rpm (BZ 455387 and 458234)
  - disabled tmpfs plugin on epel-4-x86_64
  - fixed autotools breakage in configure.ac


author: Jesse Keating <jkeating@redhat.com> - 0.9.9-1
changelog:
  - Update config files for Fedora 9
  - Comment out multilib excludes, no longer needed in F9+ with yum multilib changes


author: Jesse Keating <jkeating@redhat.com> - 0.9.8-1
changelog:
  - modify rootcache logic to rebuild cache if config files have newer timestamp
  - For Fedora 8 and higher, use priority failover method
  - Point to the correct static-repo for rawhide stuff.
  - Move "devel" to "rawhide" to match current Fedora naming schemes.


author: Michael Brown <mebrown@michaels-house.net> - 0.9.7-1
changelog:
  - redo mock.util.do() to use python subprocess module, which should be
    much more maintainable than our old homegrown code.
  - Fix exclude= lines once again. Yum fnmatch parser doesnt understand [!x]
    notation
  - add --unpriv and --cwd options to run chroot commands without elevated privs
    and in a specific working directory (under the root).
  - mount all filesystems when running chroot commands
  - remove redundant ccache init since we now source /etc/profile.d/ccache.sh


author: Clark Williams <williams@redhat.com> - 0.9.6-1
changelog:
  - renamed configs and put compat symlinks in place
  - misc cleanups (whitespace fixes, info messages, etc.)
  - tmpfs plugin fix
  - split --target and --arch command line arguments
  - changed from -l to --login on bash invocations
  - create /dev/full in chroot


author: Michael Brown <mebrown@michaels-house.net> - 0.9.4-1
changelog:
  - Result dir was not honoring --uniqueext=
  - make rpmbuild run under a chroot login shell
  - mock is now noarch due to drop of all binary components
  - add tmpfs plugin (disabled by default)
  - slightly more friendly logs.


author: Clark Williams <williams@redhat.com> - 0.9.3-1
changelog:
  - added '--copyin' and '--copyout' modes
  - added makeChrootPath() method to Root
  - replaced most ad hock usages of .rootdir with makeChrootPath()
  - updated man page && added test cases
  - added 'help' target to Makefile.am


author: Michael Brown <mebrown@michaels-house.net> - 0.9.1-1
changelog:
  - fix 'mock shell' command when passing more than one arg.
  - add --orphanskill mode which only does orphankill
  - make 'mock --shell' noninteractive and logged to root.log
  - fix for file-based BuildRequires
  - add sparcs to constant list for auto-setarch


author: Michael Brown <mebrown@michaels-house.net> - 0.9.0-1
changelog:
  - drop suid helper and use consolehelper instead.
  - add unshare() call rather than clone(CLONE_NEWNS...)


author: Michael Brown <mebrown@michaels-house.net> - 0.8.16-1
changelog:
  - drop FC6 configs. FC6 no longer supported
  - add --trace cmdline parameter
  - make logs slightly less verbose


author: Michael Brown <mebrown@michaels-house.net> - 0.8.15-1
changelog:
  - fix traceback when root cache doesnt exist.
  - add "--with", "--without", and "--define" cmdline parameters which are passed
    to rpmbuild (courtesy Todd Zullinger)


author: Michael Brown <mebrown@michaels-house.net> - 0.8.12-1
changelog:
  - fix builds of multiple srpms
  - fix 'mock install'
  - use python-decoratortools for better python 2.3 back compat


author: Clark Williams <williams@redhat.com> - 0.8.11-1
changelog:
  - fixes from mebrown:
  -   added back -q and -v flags
  -   print yum output by default
  -   added --offline option
  -   cleaned up uid handling


author: Michael Brown <mebrown@michaels-house.net> - 0.8.10-1
changelog:
  - fix 'shell' command
  - fix a couple different selinux avc denial messages (didnt affect functionality)


author: Michael Brown <mebrown@michaels-house.net> - 0.8.9-1
changelog:
  - Fixes so that mock will run cleanly on RHEL5
  - Add glib-devel.i386, glib2-devel.i386 to yum exclude list as it breaks
    builds.
  - Add backwards-compatibility code for old-style 'automatically assume rebuild'
    convention
  - automake symlink accidentally included in tarball rather than file
    (py-compile)
  - update manpage


author: Michael Brown <mebrown@michaels-house.net> - 0.8.8-1
changelog:
  - make it run correctly when called by the 'root' user
  - internal_setarch: optionally run 'setarch' internally. This
    eliminates the need to run "setarch i386 mock ..." when building on
    target_arch != build_arch. This is turned on by default. Limitations:
    must have 'ctypes' python module available, which is only available
    by default in python 2.5, or as an extension module in <= 2.4.
    If the 'ctypes' module is not available, this feature will be
    disabled and you must manually run 'setarch'.
  - Does not run 'clean' action for 'shell', 'chroot', 'install', or
    'installdeps' (docs updated)
  - fix build for top_builddir != top_srcdir
  - fix 'installdeps' so that it works with both rpms/srpms
  - missing device file /dev/ptmx was causing 'expect' command to always
    fail. Affected any SRPM build that used 'expect'.
  - hard spec file dep on python >= 2.4 due to python syntax changes.
  - resultdir can now contain python-string substitutions for any
    variable in the chroot config.
    rebuild my.src.rpm
  - add 'dist' variable to all chroot config files so that it is
    available for resultdir substitutions.
  - give good error message when logging.ini cannot be found.
  - change default logging format to remove verbosity from build.log.
  - make logging format configurable from defaults.cfg or chroot cfg.
  - less verbose state.log format


author: Michael Brown <mebrown@michaels-house.net> - 0.8.3-1
changelog:
  - BZ# 336361 -- cannot su - mockbuild
  - BZ# 326561 -- update manpage
  - BZ# 235141 -- error with immutable bit


author: Michael Brown <mebrown@michaels-house.net> - 0.8.0-1
changelog:
  - huge number of changes upstream
  - convert to setuid wrapper instead of old setuid helper
  - lots of bugfixes and improvements
  - /var/cache/yum now saved and bind-mounted
  - ccache integration
  - rootcache improvements (formerly called autocache)


author: Michael Brown <mebrown@michaels-house.net> - 0.7.1-1
changelog:
  - Fix problem with autocache where different users couldnt share same cache
  - Fix problem creating resolv.conf in rootfs
  - cleanup perms on rootfs /etc/


author: Clark Williams <williams@redhat.com> - 0.7-1
changelog:
  - fixed bind mount problems
  - added code to allow multiple users to use --no-clean
  - merged mock-0-6-branch to head and changed version


author: Clark Williams <williams@redhat.com> - 0.6.17-1
changelog:
  - added F-7 config files (BZ#242276)
  - modified epel configs for changed mirrorlist location (BZ#239981)
  - added bind mount of /dev (BZ#236428)
  - added copy of /etc/resolv.conf to chroot (BZ#237663 and BZ#238101)


author: Clark Williams <williams@redhat.com> - 0.6.16-1
changelog:
  - timeout code adds new cmdline option that will kill build process after
    specified timeout. Useful for automated builds of things that may hang during
    build and you just want it to fail.


author: Clark Williams <williams@redhat.com> - 0.6.1-1
changelog:
  - added fix from David Lutterkort for RHEL
  - refactored some conditional blocks for simplicity
  - added this entry for Dennis Gilmore's aurora SPARC fixes


author: Paul Howarth <paul@city-fan.org> - 0.5-2
changelog:
  - For FC < 5 or Red Hat Linux 9, include elfutils
  - For non-Fedora distrbutions, require redhat-release instead of fedora-release
  - For Red Hat Linux 8 and earlier, require fileutils instead of coreutils
  - Red Hat Linux 8 requires findutils for brp-strip


