Add notes about FEATURES=protect-owned and move the note about
[portage.git] / RELEASE-NOTES
1 Release Notes; upgrade information mainly.
2 Features/major bugfixes are listed in NEWS
3
4 portage-2.2
5 ==================================
6
7 * Portage now warns if an ebuild repository does not have a name, as several
8   new features in 2.2 make use of or require named repositories. The repository
9   name is stored in profiles/repo_name in each repository.
10 * Package set support: There are several important notes regarding package
11   sets:
12   - setnames have to be prefixed with @ (exceptions: 'world' and 'system' can
13     be used without the prefix)
14   - they may currently only include simple and versioned atoms or other sets,
15     use conditionals or any-of constructs aren't possible yet
16   - sets can be referenced either in other file-based sets or as argument to
17     emerge, but not in ebuilds, config files or other tools at this time.
18   - packages won't be unmerged if they are referenced by an installed package
19     set (with the exception of the world set, and installed being determined
20     by the world_sets file).
21 * "world" does no longer include "system" unconditionally, but you can add
22   "@system" to the world_sets file to restore the old state.
23
24 portage-2.1.6
25 ==================================
26
27 * FEATURES=fixpackages is now enabled by default via make.globals. Set
28   FEATURES="-fixpackages" in make.conf if you'd like to disable it.
29 * File collision protection is now enabled by default via make.globals with
30   FEATURES=protect-owned. In order to protect files from be overwritten or
31   removed a inappropriate times, it is recommended to leave protect-owned
32   (or the similar collision-protect feature) enabled at all times.
33 * The python namespace for portage has been sanitized, all portage related code
34   is now contained within the portage namespace. External script should be
35   updated accordingly, though links exist for backward compability.
36 * -* support in package.keywords was changed as it was inconsistent with 
37   ACCEPT_KEYWORDS behavior (also see
38   http://dev.gentoo.org/~genone/docs/KEYWORDS.stupid).
39   Previously having -* in package.keywords matched packages with KEYWORDS="-*",
40   now it resets the ACCEPT_KEYWORDS list for the given atom like it does when
41   used in ACCEPT_KEYWORDS.
42   For packages that don't specify any other KEYWORDS you can use the new **
43   token as documented in portage(5) to disable KEYWORDS filtering completely.
44
45 portage-2.1.5
46 ==================================
47
48 * The pkg_postinst phase is now called after the previous version of a
49   package has been removed. As a consequence, it is no longer possible
50   to call has_version in pkg_postinst to detect whether the current
51   install operation is an upgrade or downgrade. If this information is
52   needed during the pkg_postinst phase, do the has_version call in an
53   earlier phase (such as pkg_preinst) and store the result in a global
54   variable to be accessed by pkg_postinst when it is called. Bug #226505
55   tracks all issues related to this phase execution order change.
56 * The metadata-transfer feature is now disabled by default. This disables the
57   "Updating Portage cache" routine that used to run at the tail end of each
58   `emerge --sync` operation. If you use something like the sqlite module and
59   want to keep all metadata in that format alone (useful for querying), enable
60   FEATURES="metadata-transfer" in make.conf. You should also enable
61   FEATURES="metadata-transfer" if you have any eclasses from PORTDIR_OVERLAY
62   that override eclasses from PORTDIR (in this case, you may have disabled
63   a relevant warning message by setting PORTAGE_ECLASS_WARNING_ENABLE="0" in
64   make.conf).
65 * The parallel-fetch feature is now enabled by default. It is optimized
66   to avoid doing redundant checksums for previously downloaded files that have
67   the correct size. Run `tail -f /var/log/emerge-fetch.log` in a
68   terminal to view parallel-fetch progress. Add FEATURES="-parallel-fetch"
69   to /etc/make.conf if you want to disable this feature.
70
71 portage-2.1.4.1
72 ==================================
73
74 * If you have an overlay then you should remove **/files/digest-*
75   files (Manifest1) because they are no longer supported.
76 * If earlier versions of portage will be used to generate manifests
77   for your overlay then you should add a file named manifest1_obsolete
78   to the root of the repository in order to disable generation of the
79   Manifest1 digest files.
80
81 portage-2.1.4
82 ==================================
83
84 * Visibility filtering is now supported for binary packages, so masking behavior
85   is essentially equivalent to that of ebuilds.
86 * There is no need to have a complete portage tree available when installing binary
87   packages or uninstalling packages, but a warning message will still be displayed if
88   it appears that a valid profile is not available.
89
90 portage-2.1.3
91 ==================================
92
93 * Portage now requires >=python-2.4, but doesn't need pycrypto anymore if
94   >=python-2.5 is installed and openssl supports the rmd160 hash.
95 * The "save_summary" and "echo" elog modules are now enabled by default. Setting
96   PORTAGE_ELOG_SYSTEM in make.conf will override this, so if you don't want elog
97   set PORTAGE_ELOG_SYSTEM="" in make.conf
98 * The unmerge process will remove any file that is not claimed by another
99   package in the same slot and is not protected by CONFIG_PROTECT, even if the
100   modification time or checksum differs from the file that was originally
101   installed.  The old behavior is still available by adding -unmerge-orphans
102   to FEATURES.
103 * The world file now supports slot atoms such as 'sys-devel/gcc:3.4'. In some
104   cases, emerge --depclean may remove slots that it would not have removed
105   in the past. The emerge --noreplace command can be used to add an atom to the
106   world file and prevent matching packages from being removed.  A slot atom
107   will be recorded in the world file for any atom that is precise enough to
108   identify a specific slot.
109 * For safer operation, emerge --prune will not unmerge packages that have
110   reverse dependencies. Use --verbose to display reverse dependencies. Use
111   --nodeps to completely ignore dependencies.
112 * emerge --depclean now accepts atoms and will unmerge only the specified
113   packages if nothing depends on them. Use --verbose to display reverse
114   dependencies.
115
116 portage-2.1.2
117 ==================================
118
119 * Depending on the number of packages installed, users may notice a difference
120   in the time taken for dependency calculations.  This performance penalty is
121   due to the addition of important new features which include the ability to
122   detect reverse blockers, the building of a complete dependency graph, and the
123   ability to use installed packages to satisify dependencies even after their
124   ebuilds have been removed from the portage tree.
125 * emerge does not necessarily update build time dependencies that are not
126   strictly required.  See the --with-bdeps option in the emerge(1) man page.
127
128 portage-2.1.1
129 ==================================
130
131 * emerge --search doesn't use regular expressions now anymore by default, so
132   emerge --search dvd+rw-tools now works as expected. Regular expressions can be enabled
133   by prefixing the search string with %. 
134 * emerge --depclean algorithm is much safer than the old one.
135 * emerge --newuse detects changes in IUSE that previously went undetected.
136
137 portage-2.1
138 ==================================
139
140 * new cache framework, breaking all old cache modules.
141   If you're having problems with portage_db_cdb, this is likely the cause.
142 * USE flag output ordering has changed.  The old ordering is now an option
143   by the name of --alphabetical.  Adding the option to EMERGE_DEFAULT_OPTS
144   in make.conf will restore the old behaviour permanently.
145 * The deprecated --inject has been removed, use /etc/portage/profile/package.provided
146 * The deprecated --upgradeonly has been removed, use /etc/portage/package.* 
147   instead.
148 * 'emerge sync' has been deprecated, use 'emerge --sync' instead (same 
149   for other actions)
150 * Tools that call emerge should override the EMERGE_DEFAULT_OPTS environment
151   variable or use the emerge --ignore-default-opts option.
152 * rsync option handling has been redesigned, instead of RSYNC_* variables
153   use PORTAGE_RSYNC_EXTRA_OPTS from now on.
154 * autouse (use.defaults) has been deprecated by specifying USE_ORDER in make.defaults
155   Users may still turn this back on by specifying USE_ORDER="env:pkg:conf:auto:defaults"
156   in make.conf.  Interested in figuring out what use flags were turned off?  Check out
157   /usr/portage/profiles/base/use.defaults and other use.defaults files that correspond 
158   to your profile.
159