[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#301273: marked as done (tasksel: Please trim down the default installation when tasks are selected)



Your message dated Thu, 09 Jun 2005 19:47:43 -0400
with message-id <E1DgWkR-0006Dh-00@newraff.debian.org>
and subject line Bug#301273: fixed in tasksel 2.25
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 24 Mar 2005 21:01:09 +0000
>From jfs@dat.etsit.upm.es Thu Mar 24 13:01:08 2005
Return-path: <jfs@dat.etsit.upm.es>
Received: from tornado.dat.etsit.upm.es (dat.etsit.upm.es) [138.100.17.73] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1DEZS0-0005bj-00; Thu, 24 Mar 2005 13:01:08 -0800
Received: (qmail 1137 invoked by uid 1013); 24 Mar 2005 21:01:06 -0000
Date: Thu, 24 Mar 2005 22:01:06 +0100
From: Javier =?iso-8859-1?Q?Fern=E1ndez-Sanguino_Pe=F1a?= <jfs@computer.org>
To: submit@bugs.debian.org
Subject: tasksel: Please trim down the default installation when tasks are selected
Message-ID: <20050324210106.GB17109@dat.etsit.upm.es>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="hxkXGo8AKqTJ+9QI"
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--hxkXGo8AKqTJ+9QI
Content-Type: multipart/mixed; boundary="Bu8it7iiRSEf40bY"
Content-Disposition: inline


--Bu8it7iiRSEf40bY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: tasksel=20
Priority: wishlist
Version: 2.24
Tags: patch

[ I was considering setting this as an 'important' bug as I consider this a
failure in the installation system and it has been reported too many times
but not acted upon. I have refrained myself but I feel this should be done=
=20
for sarge ]

Note: This issue has also been brought up a number of times before, please=
=20
see #270676, #246357, #272406 and #272586. I've opened up #301138 too which=
=20
would fix this "properly" but I don't expect that to happend before the=20
release. The proposed patch below could, however, be safely included in=20
sarge.

The deal here is that tasksel calls aptitude on new installations asking it=
=20
to install all the 'Standard' packages but our 'standard' system is not=20
properly standard and will pull in packages that are really development=20
only and used by a minority of our users (see #301138). This has happened=
=20
before and needs to be cut by ftp overrides, but until a consensus is=20
reached the d-i team could prevent this from happening by having tasksel=20
explicitly tell aptitude to _not_ install those packages. After all, a=20
development task should be introduced in tasksel (and has been asked for=20
already in #266702)

The attached patch fixes this issue with a temporary hack that works OK for=
=20
sarge. I have tested the patch with simulated runs of all tasks currently=
=20
provided and aptitude installs them just fine. The behaviour is as follows:

- IF tasksel is called on new installations and the user has selected a=20
task, then tasksel will ask aptitude to _not_ install any of the=20
development packages (compilers, headers, and such) of the Standard=20
priority.

- IF no tasks are selected in new installations, then users get the full
Standard: installation, including development packages.

On all other cases, the behaviour of tasksel remains the same.=20

Why would I like to see this on sarge and not postponed to etch:

- There have been a number of installation reports complaining about this
- Installing by default a compiler in an operating system is against all=20
security-wise recommendations, has been exploited by worms in the past and=
=20
will be in the future.

Hopefully the patch is self-explanatory, feel free to ask for additional=20
information. I've tested it in a chroot jail will all of the current tasks=
=20
and aptitude works OK for me in an updated sarge environment. I don't=20
expect this to fail in a chrooted sarge and I will test it if time permits.

Regards

Javier


--Bu8it7iiRSEf40bY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tasksel.blacklists.diff"
Content-Transfer-Encoding: quoted-printable

diff -Nru tasksel-2.24/debian/changelog tasksel-2.25/debian/changelog
--- tasksel-2.24/debian/changelog	2005-03-11 02:03:23.000000000 +0100
+++ tasksel-2.25/debian/changelog	2005-03-24 20:51:44.000000000 +0100
@@ -1,3 +1,12 @@
+tasksel (2.25) unstable; urgency=3Dlow
+
+  * Blacklist development packages to prevent bloated installations
+    when setting up tasks. IF the user does not select any task
+    (and does not select manual installation) then blacklists don't
+    take effect.
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Thu, 24 Mar 2005 2=
0:51:03 +0100
+
 tasksel (2.24) unstable; urgency=3Dlow
=20
   * Joey Hess
diff -Nru tasksel-2.24/tasksel.pl tasksel-2.25/tasksel.pl
--- tasksel-2.24/tasksel.pl	2005-02-23 19:58:33.000000000 +0100
+++ tasksel-2.25/tasksel.pl	2005-03-24 21:43:19.000000000 +0100
@@ -13,6 +13,20 @@
 my $packagesdir=3D"/usr/lib/tasksel/packages";
 my $descdir=3D"/usr/share/tasksel";
 my $statusfile=3D"/var/lib/dpkg/status";
+# Blacklisted packages from the Standard installation
+# These are development only packages and should be pulled through
+# the -dev tasks. Be careful with this list, if it grows too big
+# it might reach the maximum command line length. This list might
+# be trimmed down if #301138 is fixed=20
+my @blacklisted=3D("gdb", "gcc-3.3", "dpkg-dev", "libc6-dev", =20
+"manpages-dev", "flex", "g++", "linux-kernel-headers", "bin86",=20
+"gcc", "g++-3.3", "bison", "libstdc++5-3.3-dev");
+# Note: The following packages cannot be blacklisted:
+# - make, libnss-db Depends: on it and that would break the DNS task
+# - cpp and cpp-3.3, Some X packages (like xutils, xdm, wmaker, etc.)
+#   Depends: on it and blacklisting it would break the Desktop and the
+#   Print-Server task
+
=20
 sub warning {
 	print STDERR "tasksel: @_\n";
@@ -465,6 +479,14 @@
 	my @to_install=3Dmap { task_packages($_, 1) } grep { $_->{_install} } @ta=
sks;
 	push @aptitude_install, @to_install;
 =09
+	# However, if the user is installing a task and this
+	# is a new installation, then blacklist a set of packages
+	if ( $options{"new-install"} && @to_install && ! $manual_selection) {
+		foreach my $blpackage (@blacklisted) {
+			push @aptitude_install, "${blpackage}_";
+		}
+	}
+
 	# Clear screen before running aptitude.
 	if ($interactive && (@aptitude_remove || @aptitude_install) && ! $options=
{test}) {
 		system("clear");

--Bu8it7iiRSEf40bY--

--hxkXGo8AKqTJ+9QI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCQyqRi4sehJTrj0oRAmvDAJ9vxAanMJse8dWZrJDoEHjAslauNACfc9Aq
JBIm41xPI+1KZg4Yk5dmvUE=
=5gJ/
-----END PGP SIGNATURE-----

--hxkXGo8AKqTJ+9QI--

---------------------------------------
Received: (at 301273-close) by bugs.debian.org; 9 Jun 2005 23:51:38 +0000
>From katie@ftp-master.debian.org Thu Jun 09 16:51:38 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DgWoC-0002sd-00; Thu, 09 Jun 2005 16:51:36 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DgWkR-0006Dh-00; Thu, 09 Jun 2005 19:47:43 -0400
From: Joey Hess <joeyh@debian.org>
To: 301273-close@bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#301273: fixed in tasksel 2.25
Message-Id: <E1DgWkR-0006Dh-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Thu, 09 Jun 2005 19:47:43 -0400
Delivered-To: 301273-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 8

Source: tasksel
Source-Version: 2.25

We believe that the bug you reported is fixed in the latest version of
tasksel, which is due to be installed in the Debian FTP archive:

tasksel_2.25.dsc
  to pool/main/t/tasksel/tasksel_2.25.dsc
tasksel_2.25.tar.gz
  to pool/main/t/tasksel/tasksel_2.25.tar.gz
tasksel_2.25_all.deb
  to pool/main/t/tasksel/tasksel_2.25_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 301273@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <joeyh@debian.org> (supplier of updated tasksel package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu,  9 Jun 2005 19:30:45 -0400
Source: tasksel
Binary: tasksel
Architecture: source all
Version: 2.25
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Joey Hess <joeyh@debian.org>
Description: 
 tasksel    - Tool for selecting tasks for installation on Debian system
Closes: 271178 274936 275303 282166 282493 286170 292936 293108 298702 301273 301496 305148 306081 312462 312463 312464
Changes: 
 tasksel (2.25) unstable; urgency=low
 .
   * Joey Hess
     - Add libtheora0 to desktop task so totem can play these files.
       (See #301262)
     - Add Bulgarian language and desktop language tasks contributed by
       Anton Zinoviev. Closes: #271178
     - Add tf2pt1, ttf2pt1-chinese and ttfprint to chinese-s an chinese-t to
       support printing of asian fonts. Closes: #305148
     - Remove language-env from chinese-t, since language-env does not support
       Chinese simplified yet. See #301496
     - Add scim-chewing and m17n-env to chinese-t-desktop, remove old cpanel
       and chinput input methods. Closes: #301496
     - Also remove language-env from chinese-s as it doesn't support that
       either, and remove obsolete cpanel from chinese-s-desktop too.
     - Add basic Arabic tasks. Closes: #282493
     - Add printconf to print-server for automatic printer setup. Closes: #293108
     - Add windbind to file-server since it's commonly used with samba.
       Closes: #292936
     - Look for desc files in /usr/local/share/tasksel too. Closes: #286170
     - Replace mozilla with firefox in desktop task. Closes: #282166
     - Add "force" test script contributed by Free Ekanayaka. This allows
       adding Test-force lines to tasks that force them to be installed,
       skipped, marked, or shown, without needing to write any code,
       and may be useful for CDDs. Closes: #275303
     - Allow later task descs to override earlier ones, useful if you
       want to blow away the standard Debian tasks, perhaps by using Test-force
       to hide them. Closes: #274936
     - Add a "new-install" test script (and export NEW_INSTALL for test
       scripts), to allow special control of tasks during new installs.
     - Add a new "standard" task which defaults to being marked for install
       on new installs and is otherwise hidden (because removing it makes
       little sense), and which causes all standard or above priority packages
       to be installed. Closes: #301273, #298702
     - Remove the -r, -i, and -s switches as unnecessary given the standard
       task.
     - Remove the -n switch since it was intended to be used with other removed
       switches.
     - Make the lang test only do anything on new installs, to avoid tasksel
       looking at the LANG variable in everyday use.
     - Rename Packages field in input task files to Packages-list to allow
       really specifying a Packages value.
     - Deal better with ctrl-c cancel while in debconf.
   * KÄ?stutis BiliÅ«nas
     - Added openoffice.org-l10n-lt to lithuanian-desktop task.
     - Commented out kde-i18n-lt as the Lithuanian language currently is
       not supported by upstream.
     - Added aspell-lt to lithuanian task.
   * Christian Perrier
     - Fix errors in English descriptions of tasks:
       - web-server: "select packages"
       - *-desktop : "localises the desktop"
                     "that make it"
       - thai      : "for Thai speaking people"
       All translations unfuzzied
       Closes: #306081
   * Translations
     - All Bosnian translations completed by Safir Secerovic
     - All Malagasy translations added by Jaonary Rabarisoa
     - Fixes to Danish translations of language tasks by Claus Hindsgaul
     - All Vietnamese translations added by Clytie Siddall
     - Estonian translations of debconf templates by Siim Põder. Closes: #312464
     - Estonian translations of tasks by Siim Põder. Closes: #312463
     - Estonian translations of tasksel by Siim Põder. Closes: #312462
Files: 
 f56c2d8339e0340f852698895fb9434d 628 base optional tasksel_2.25.dsc
 24cdfcb4077e143d1be99c8a598d27e9 229878 base optional tasksel_2.25.tar.gz
 1dd4f5c1b367968381361fff2a33e1fa 137230 base optional tasksel_2.25_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCqNJs2tp5zXiKP0wRAm2QAJ9GsPlqIW4WqWCLA+EsSU2TRt/ZsgCeNs5r
Cx+9TqxRgqSW/Aftcxvi/sU=
=phmT
-----END PGP SIGNATURE-----



Reply to: