From e65119416646d7e2e04f2a2ecbeb1a2cf5cc18e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org>
Date: Tue, 8 Nov 2022 02:10:07 +0000
Subject: [PATCH] debian-installer-repository: add missing dependecnies at
 install time.

---
 helpers/DATA/udeb-repo/README.mkd             |  4 +++
 .../udeb-repo/aramo/aramo-udeb-rebuild-list   | 12 +++++++
 helpers/make-bind9-libs                       | 35 +++++++++++++++++++
 helpers/make-btrfs-progs                      | 32 +++++++++++++++++
 helpers/make-dmidecode                        | 32 +++++++++++++++++
 helpers/make-dosfstools                       | 32 +++++++++++++++++
 helpers/make-e2fsprogs                        | 32 +++++++++++++++++
 helpers/make-fuse3                            | 32 +++++++++++++++++
 helpers/make-jfsutils                         | 32 +++++++++++++++++
 helpers/make-libaio                           | 32 +++++++++++++++++
 helpers/make-libbsd                           | 32 +++++++++++++++++
 helpers/make-libinih1                         | 32 +++++++++++++++++
 helpers/make-open-isns                        | 32 +++++++++++++++++
 13 files changed, 371 insertions(+)
 create mode 100644 helpers/make-bind9-libs
 create mode 100644 helpers/make-btrfs-progs
 create mode 100644 helpers/make-dmidecode
 create mode 100644 helpers/make-dosfstools
 create mode 100644 helpers/make-e2fsprogs
 create mode 100644 helpers/make-fuse3
 create mode 100644 helpers/make-jfsutils
 create mode 100644 helpers/make-libaio
 create mode 100644 helpers/make-libbsd
 create mode 100644 helpers/make-libinih1
 create mode 100644 helpers/make-open-isns

diff --git a/helpers/DATA/udeb-repo/README.mkd b/helpers/DATA/udeb-repo/README.mkd
index 91e7cb82..95e537bb 100644
--- a/helpers/DATA/udeb-repo/README.mkd
+++ b/helpers/DATA/udeb-repo/README.mkd
@@ -126,6 +126,10 @@ $ apt-cache madison $(sed -n '/The following packages have unmet dependencies:/,
   sort
 ```
 
+### 4) debian-installer install time dependencies
+
+While running the debian-installer it's possible to find packages missing on the udeb repository on the syslog log, just like mentioned on the above details.
+
 ## Set upstream source
 
 Once finding source packages required from debian as several debian-installer packages has been droped from upstream Ubuntu, targeting the use of debian **stable** as source repository.
diff --git a/helpers/DATA/udeb-repo/aramo/aramo-udeb-rebuild-list b/helpers/DATA/udeb-repo/aramo/aramo-udeb-rebuild-list
index 4e2fa8af..67d6260b 100644
--- a/helpers/DATA/udeb-repo/aramo/aramo-udeb-rebuild-list
+++ b/helpers/DATA/udeb-repo/aramo/aramo-udeb-rebuild-list
@@ -58,3 +58,15 @@ ndisc6
 wide-dhcpv6
 wireless-tools
 wpa
+#debian-installer
+bind9-libs
+btrfs-progs
+dmidecode
+dosfstools
+e2fsprogs
+fuse3
+jfsutils
+libaio
+libbsd
+libinih1
+open-isns
diff --git a/helpers/make-bind9-libs b/helpers/make-bind9-libs
new file mode 100644
index 00000000..d81c78f9
--- /dev/null
+++ b/helpers/make-bind9-libs
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+#Fixed version: Just like grub2 on nabia, bind9 and bind9-libs share the same
+#source package name but only referenced by the version of the package itself.
+VERSION=0
+FIXED_VER=1:9.11.19+dfsg-2.1ubuntu3
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-btrfs-progs b/helpers/make-btrfs-progs
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-btrfs-progs
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-dmidecode b/helpers/make-dmidecode
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-dmidecode
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-dosfstools b/helpers/make-dosfstools
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-dosfstools
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-e2fsprogs b/helpers/make-e2fsprogs
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-e2fsprogs
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-fuse3 b/helpers/make-fuse3
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-fuse3
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-jfsutils b/helpers/make-jfsutils
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-jfsutils
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-libaio b/helpers/make-libaio
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-libaio
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-libbsd b/helpers/make-libbsd
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-libbsd
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-libinih1 b/helpers/make-libinih1
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-libinih1
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
diff --git a/helpers/make-open-isns b/helpers/make-open-isns
new file mode 100644
index 00000000..ee74ecb2
--- /dev/null
+++ b/helpers/make-open-isns
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+#    Copyright (C) 2022  Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+##
+# This helper is part of a series of packages that are now droppped on upstream
+# Ubuntu, therefore in order to build a working debian-installer we now fetch
+# such packages from Debian in order to build the required udeb packages.
+##
+
+VERSION=0
+NETINST=true
+. ./config
+
+
+changelog "Fetch and build as udeb dependency for debian-installer."
+compile
-- 
GitLab