Merge ~mwhudson/debian-cd/+git/ubuntu:no-source-isos into ~ubuntu-cdimage/debian-cd/+git/ubuntu:main

Proposed by Michael Hudson-Doyle
Status: Merged
Merged at revision: 398472c0da6ba292299f4998db91344e6438938b
Proposed branch: ~mwhudson/debian-cd/+git/ubuntu:no-source-isos
Merge into: ~ubuntu-cdimage/debian-cd/+git/ubuntu:main
Diff against target: 340 lines (+3/-268)
3 files modified
Makefile (+0/-17)
build_all.sh (+3/-4)
dev/null (+0/-247)
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+459682@code.launchpad.net

Description of the change

remove most code to do with making source ISOs

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

looks like there are still some references to 'src' and 'source' here that ought to be cleaned up as part of this merge.

$ grep -li src * 2>/dev/null
Makefile
README
$

review: Needs Fixing
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Yes fair. I took a rather extreme approach for the README, hope that's ok.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

So my initial commit got merged despite the needs fixing review? In any case I've just updated this to remove some more references.

Revision history for this message
Steve Langasek (vorlon) wrote :

On Sun, Feb 11, 2024 at 08:35:58PM -0000, Michael Hudson-Doyle wrote:

> So my initial commit got merged despite the needs fixing review? In any
> case I've just updated this to remove some more references.

Oops! Terrible local review workflow, sorry.

I'll follow through on this now

Revision history for this message
Steve Langasek (vorlon) wrote :

Yes fair. I took a rather extreme approach for the README, hope that's ok.

> --- a/README
> +++ /dev/null

lol ok fair

Revision history for this message
Steve Langasek (vorlon) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/Makefile b/Makefile
index e8bc4b3..021bb6c 100644
--- a/Makefile
+++ b/Makefile
@@ -48,16 +48,10 @@ endif
48ifndef BINDISKINFO48ifndef BINDISKINFO
49export BINDISKINFO="$(CAPPROJECT)$(CAPSUBPROJECT) $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) $(FULLARCH) ($$DATE)"49export BINDISKINFO="$(CAPPROJECT)$(CAPSUBPROJECT) $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) $(FULLARCH) ($$DATE)"
50endif50endif
51ifndef SRCDISKINFO
52export SRCDISKINFO="$(CAPPROJECT)$(CAPSUBPROJECT) $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) Source-$$num ($$DATE)"
53endif
54# ND=No-Date versions for README51# ND=No-Date versions for README
55ifndef BINDISKINFOND52ifndef BINDISKINFOND
56export BINDISKINFOND="$(CAPPROJECT)$(CAPSUBPROJECT) $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) $(FULLARCH)"53export BINDISKINFOND="$(CAPPROJECT)$(CAPSUBPROJECT) $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) $(FULLARCH)"
57endif54endif
58ifndef SRCDISKINFOND
59export SRCDISKINFOND="$(CAPPROJECT) $(DEBVERSION) \"$(CAPCODENAME)\" - $(OFFICIAL) Source-$$num"
60endif
61ifndef BINVOLID55ifndef BINVOLID
62ifeq ($(ARCH),powerpc)56ifeq ($(ARCH),powerpc)
63BINVOLID="$(CAPPROJECT) $(DEBVERSION) ppc"57BINVOLID="$(CAPPROJECT) $(DEBVERSION) ppc"
@@ -72,9 +66,6 @@ else
72BINVOLID="$(CAPPROJECT) $(DEBVERSION) $(ARCH)"66BINVOLID="$(CAPPROJECT) $(DEBVERSION) $(ARCH)"
73endif67endif
74endif68endif
75ifndef SRCVOLID
76SRCVOLID="$(CAPPROJECT) $(DEBVERSION) Source $$num"
77endif
78ifndef MKISOFS69ifndef MKISOFS
79export MKISOFS=/usr/bin/mkisofs70export MKISOFS=/usr/bin/mkisofs
80endif71endif
@@ -103,12 +94,10 @@ endif
103## Internal variables 94## Internal variables
104apt=$(BASEDIR)/tools/apt-selection95apt=$(BASEDIR)/tools/apt-selection
105list2cds=$(BASEDIR)/tools/list2cds96list2cds=$(BASEDIR)/tools/list2cds
106list2src=$(BASEDIR)/tools/list2src
107add_packages=$(BASEDIR)/tools/add_packages97add_packages=$(BASEDIR)/tools/add_packages
108add_dirs=$(BASEDIR)/tools/add_dirs98add_dirs=$(BASEDIR)/tools/add_dirs
109add_bin_doc=$(BASEDIR)/tools/add-bin-doc99add_bin_doc=$(BASEDIR)/tools/add-bin-doc
110scanpackages=$(BASEDIR)/tools/scanpackages100scanpackages=$(BASEDIR)/tools/scanpackages
111scansources=$(BASEDIR)/tools/scansources
112add_files=$(BASEDIR)/tools/add_files101add_files=$(BASEDIR)/tools/add_files
113set_mkisofs_opts=$(BASEDIR)/tools/set_mkisofs_opts102set_mkisofs_opts=$(BASEDIR)/tools/set_mkisofs_opts
114add_secured=$(BASEDIR)/tools/add_secured103add_secured=$(BASEDIR)/tools/add_secured
@@ -202,16 +191,10 @@ PrintVars:
202 DATE=$${CDIMAGE_DATE:-`date +%Y%m%d`} ; \191 DATE=$${CDIMAGE_DATE:-`date +%Y%m%d`} ; \
203 echo BINDISKINFO: ; \192 echo BINDISKINFO: ; \
204 echo $(BINDISKINFO) ; \193 echo $(BINDISKINFO) ; \
205 echo SRCDISKINFO: ; \
206 echo $(SRCDISKINFO) ; \
207 echo BINDISKINFOND: ; \194 echo BINDISKINFOND: ; \
208 echo $(BINDISKINFOND) ; \195 echo $(BINDISKINFOND) ; \
209 echo SRCDISKINFOND: ; \
210 echo $(SRCDISKINFOND) ; \
211 echo BINVOLID: ; \196 echo BINVOLID: ; \
212 echo $(BINVOLID) ; \197 echo $(BINVOLID) ; \
213 echo SRCVOLID: ; \
214 echo $(SRCVOLID) ; \
215198
216default:199default:
217 @echo "Please refer to the README file for more information"200 @echo "Please refer to the README file for more information"
diff --git a/README b/README
218deleted file mode 100644201deleted file mode 100644
index 3be8e05..0000000
--- a/README
+++ /dev/null
@@ -1,247 +0,0 @@
1YACS - Yet Another CD Script :-)
2================================
3(better known as debian-cd)
4
5Copyright 1999-2001 Rapha�l Hertzog <hertzog@debian.org>
6This set of tools is licensed under the General Public License
7version 2 or any later version. You can find it in
8/usr/share/common-licenses/GPL on a Debian GNU system.
9
10Thanks to Steve McIntyre <stevem@chiark.greenend.org.uk> for his
11work on slink_cd/debian_cd. Some ideas come from his script.
12
13Thanks to all the contributors on the debian-cd mailing list.
14
15What is needed?
16===============
17Software:
18- the apt-get (>= 0.3.11.1) tool
19- apt-utils (for apt-ftparchive)
20- perl (>= 5.004)
21- bash (or another POSIX shell)
22- make
23- mkisofs/mkhybrid (mkisofs also provides the isoinfo binary used by the
24 Pseudo Image Kit)
25- the perl Digest::MD5 module
26- lynx (for text version of README.html) and todos from sysutils
27 to convert docs to DOS format (although you can rip that out, too)
28Other:
29- lots of free space on your disks
30- a Debian mirror, on a partition where you can write.
31 If you can't write on it then you may try to use a symlink farm,
32 but it's not the recommended way to build Debian CDs.
33
34
35 -------------------------------
36 - GENERATING DEBIAN CD IMAGES -
37 -------------------------------
38
39
40For the people that don't have time, here's the quick explanation:
41==================================================================
42
43Edit the CONF.sh and change the PATHs for the mirror and so on.
44$ sensible-editor CONF.sh
45$ . CONF.sh
46$ make distclean
47$ make apt-setup
48$ make list COMPLETE=1 SIZELIMIT1=625000000 SRCSIZELIMIT=665000000
49$ make official_images
50[ alternatively, if you only want binary images:
51 $ make bin-official_images ]
52
53However, you really should consider reading further for more information.
54You can also take a look at build_all.sh for an automatized way of building
55CD images.
56
57How to build a CD set - step by step
58====================================
59
60If you haven't already, change to the /usr/share/debian-cd/ directory.
61
62The process of building a CD is composed of the following steps:
63
64- first configure what is needed in CONF.sh and source it in your shell:
65
66 $ . CONF.sh
67
68 The exported environment variables will be used by all the
69 tools involved here (Makefiles, perl scripts, shell scripts).
70
71 If you want to build CD images for more than one arch, you will
72 have to build them one after the other (you may use a shell
73 script for this).
74
75 Note that the temporary dir must be on the same device than the
76 mirror because debian-cd uses hardlinks for generating an image
77 tree. If you can't do this, you'll have to use the symlink farm.
78 The symlink farm is explained at the end of this README.
79
80 Keep in mind that the environment variables will stay in the
81 environment after your debian-cd run, and may interfere with
82 other program using the same variables (e.g. kernel-package).
83 So if you want to be 100% safe, run debian-cd in a
84 separate shell that you can leave after you're done.
85
86- then we clean everything that may still be there from previous runs:
87
88 $ make distclean
89
90- now we'll check if your mirror is ok (with good Packages files):
91
92 $ make mirrorcheck
93
94- then we initialize the temporary directory used for the build:
95
96 $ make apt-setup
97
98- now you can decide what you want on your CDs
99
100 $ make list TASK=tasks/debian-2.2 COMPLETE=1
101
102 or
103
104 $ make list TASK=tasks/gnome COMPLETE=0 SIZELIMIT=576716800
105
106 or
107
108 $ export NONFREE=1; make list TASK=tasks/your-task-here COMPLETE=1
109
110 or for something like an official image (without non-free) :
111
112 $ make list COMPLETE=1 SIZELIMIT1=576716800
113
114 .... take a look at the file tasks/* to see the options you can have :)
115
116 You can change the behaviour of this command with the following
117 variables:
118 - if NONFREE is set, then packages from non-free will be allowed
119 (NONFREE must be exported to all sub-shells)
120 - if EXTRANONFREE is set, then non-free packages will be included
121 on an extra CD (the last CD in fact). Don't use NONFREE and
122 EXTRANONFREE at the same time !
123 (EXTRANONFREE must be exported to all sub-shells)
124 - if COMPLETE is set, all packages that are not listed in the
125 selected task file will be included at the end
126 - if SIZELIMIT is set, it will be used as the maximum size that
127 we can put into each CD
128 - if SIZELIMIT<X> (with <X> beeing a integer) is set, it will be used
129 as the maximum size of the X'th binary CD. SIZELIMIT<X> overrides
130 SIZELIMIT ...
131
132 This target calls the target "bin-list" can be used to build only binary
133 CDs.
134
135- it may be time to add the disks-arch stuff and to make the CDs bootable:
136
137 $ make bootable
138
139 This affects only the binary CDs.
140
141 Size calculation is imprecise for bootable CDs (usually the first CDs
142 in the set), so you may need to manually adjust SIZELIMIT* variables
143 to account for the size of the booting stuff used.
144
145- now, we'll add the binary packages to the temporary tree:
146
147 $ make packages
148
149- if you want to install additional files:
150
151 $ make bin-extras CD=1 ROOTSRC=/home/ftp/ DIR=goodies/wordperfect
152 $ make src-extras CD=3 ROOTSRC=/home/ftp/ DIR=goodies/kernel-2.3
153
154 The first will copy /home/ftp/goodies/wordperfect/ to the first binary
155 CD. It will be in <root of the cd>/goodies/wordperfect/. You can call
156 make extras multiple times if you need more.
157
158 Please note that the files to be copied should be on the same partition
159 than your mirror (unless you use a symlink farm).
160
161 If you want to do customize your CD even more, you can use the hook
162 system. Read more about that below.
163
164- We can add an md5sum.txt file on each CD to enable users to check their
165 files:
166
167 $ make md5list
168
169 This calls the targets 'bin-md5list' and 'src-md5list'. You can
170 choose to call only bin-md5list if you're building only binary images.
171
172- now we can create the images:
173
174 $ make images
175
176 If you don't have enough space for all images, you can generate
177 only one image (of the second binary CD for example) with:
178
179 $ make bin-image CD=2
180
181 Of course if you want to build all binary images you'll use:
182
183 $ make bin-images
184
185 Note: here we use "make images", but you could as well use
186 "make official_images" since the latter is the same as the former
187 with some dependencies on targets that you already launched
188 (make bootable packages sources).
189
190- if you want to generate a MD5SUMS file with the md5sums of the
191 images you can do it with:
192
193 $ make imagesums
194
195
196Official images
197===============
198
199If you use make official_images you're building CD images that have
200the same properties than official CD images but they still doesn't
201have the name of "Official Images". The name of the images is given
202by setting the OFFICIAL and DEBVERSION environment variable (check
203CONF.sh).
204
205Please never ever use the "Official" name for a CD image that you
206built yourself. The only images that can be called "Official" are the
207ones built by Debian itself and which are provided on Debian's
208servers.
209
210The default configuration shipped with this package will automatically
211name the images "Unofficial". CD will work exactly in the same way
212with all Debian tools, only the label is different. That means you
213can use build_all.sh to build your "Unofficial" images without modifying
214anything.
215
216
217Additional targets
218==================
219
220Image format
221------------
222
223You may want to generate images in ISO 9660 or raw formats.
224
225Set the IMAGE_FORMAT variable in CONF.sh. You can choose "iso" for generation
226of .iso (default), or "img" for generation of raw images.
227
228
229About the symlink farm
230======================
231
232If you don't have write access on the disk where you have the mirror
233or if for another reason hardlink cannot be used, you can try to
234use a symlink farm. Instead of having real files, your temporary tree
235will be filled with symlinks that mkhybrid will change into files when
236it will build the image. You'll need to use a special options. You
237have 2 lines of options in CONF.sh as examples.
238
239I've never tested the symlink farm ... it may well generate unusable
240images. Don't use it for ISO images that will used by many users.
241
242Note that you will also need a patched mkhybrid that does support the
243-F option. Have a look here about it :
244http://www.chiark.greenend.org.uk/~stevem/DebianCD/
245
246The mkhybrid package in Debian does support this -F option since
247potato (Debian 2.2).
diff --git a/build_all.sh b/build_all.sh
index b3cedc3..8a7686d 100755
--- a/build_all.sh
+++ b/build_all.sh
@@ -1,6 +1,6 @@
1#!/bin/sh1#!/bin/sh
22
3# Script to build everything possible : sources and binaries for all archs3# Script to build images for all archs
44
5. ./CONF.sh5. ./CONF.sh
66
@@ -48,11 +48,10 @@ do
48 fi48 fi
49 SIZE_ARGS="$SIZE_ARGS SIZELIMIT${CD}=$FULL_SIZE"49 SIZE_ARGS="$SIZE_ARGS SIZELIMIT${CD}=$FULL_SIZE"
50 done50 done
51 FULL_SIZE=`echo "($DEFSRCSIZE - $size) * 1024 * 1024" | bc`
52 echo " ... building the images"51 echo " ... building the images"
53 make bin-list $SIZE_ARGS SRCSIZELIMIT=$FULL_SIZE52 make bin-list $SIZE_ARGS
54 export OUT=$TMP_OUT/$FULLARCH; mkdir -p $OUT53 export OUT=$TMP_OUT/$FULLARCH; mkdir -p $OUT
55 make bin-official_images $SIZE_ARGS SRCSIZELIMIT=$FULL_SIZE54 make bin-official_images $SIZE_ARGS
56 if [ $? -gt 0 ]; then55 if [ $? -gt 0 ]; then
57 echo "ERROR WHILE BUILDING OFFICIAL IMAGES !!" >&256 echo "ERROR WHILE BUILDING OFFICIAL IMAGES !!" >&2
58 if [ "$ATTEMPT_FALLBACK" = "yes" ]; then57 if [ "$ATTEMPT_FALLBACK" = "yes" ]; then

Subscribers

People subscribed via source and target branches