The current status of the source package feature is as follows: - We are no longer building images with source packages in them (don't know who made the change).
- Only people installing 'freedombox-setup' package from a regular Debian install are affected by this feature. These people are expected technically knowledgeable enough to install Debian and after that install freedombox-setup on top. I believe these are people who need feature the least. Since if they are able to get the binaries (using apt or a GUI), they can get sources too if they want. The attached patch proposes to at least disable getting the sources for people installing 'freedombox-setup' package. The have performed the following tests: - On a fully built image, sources should be present in /usr/share/packages - When install freedombox-setup on a regular Debian machine, sources should be downloaded. -- Sunil
From c26ff3c8762b695ce1e2ab1cbb04d3737b36e4d5 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <su...@medhas.org> Date: Thu, 27 Aug 2015 22:22:21 +0530 Subject: [PATCH 1/2] Remove outdated code in fetching source --- setup.d/99_provide-source | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.d/99_provide-source b/setup.d/99_provide-source index 0068fde..4068ab0 100755 --- a/setup.d/99_provide-source +++ b/setup.d/99_provide-source @@ -4,9 +4,7 @@ # source to be available, by providing the source of every package # used. -# TODO Remove on 1/1/15: " || [ 'true' = "$NOSOURCE" ]" -if [ 'false' = "$SOURCE" ] || [ 'true' = "$NOSOURCE" ] ; then - +if [ 'false' = "$SOURCE" ] ; then echo "Not adding source packages to filesystem (SOURCE=false)" exit 0 else -- 2.5.0 From 88bb947a36f8b46175c11e20c3275f71ae032f32 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <su...@medhas.org> Date: Thu, 27 Aug 2015 22:28:15 +0530 Subject: [PATCH 2/2] Default to not fetching source --- setup.d/99_provide-source | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.d/99_provide-source b/setup.d/99_provide-source index 4068ab0..45558a6 100755 --- a/setup.d/99_provide-source +++ b/setup.d/99_provide-source @@ -4,11 +4,11 @@ # source to be available, by providing the source of every package # used. -if [ 'false' = "$SOURCE" ] ; then +if [ 'true' = "$SOURCE" ] ; then + echo "Adding source packages to file system" +else echo "Not adding source packages to filesystem (SOURCE=false)" exit 0 -else - echo "Adding source packages to file system" fi targetdir=/usr/src/packages -- 2.5.0
signature.asc
Description: OpenPGP digital signature