Tools issueshttps://gitlab.manjaro.org/groups/tools/-/issues2024-03-27T13:24:36Zhttps://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/345Avoid the /dev/loop0 busy condition.2024-03-27T13:24:36ZphoepsilonixAvoid the /dev/loop0 busy condition.When using the loopback device, the losetup command is used to resolve permission issues.
```diff:0001-losetup.patch
diff --git a/lib/util-iso-mount.sh b/lib/util-iso-mount.sh
index 0c3e05b..b776b0d 100644
--- a/lib/util-iso-mount.sh
++...When using the loopback device, the losetup command is used to resolve permission issues.
```diff:0001-losetup.patch
diff --git a/lib/util-iso-mount.sh b/lib/util-iso-mount.sh
index 0c3e05b..b776b0d 100644
--- a/lib/util-iso-mount.sh
+++ b/lib/util-iso-mount.sh
@@ -11,7 +11,8 @@
track_img() {
info "mount: [%s]" "$2"
- mount "$@" && IMG_ACTIVE_MOUNTS=("$2" "${IMG_ACTIVE_MOUNTS[@]}")
+ LOOPBACK=$(losetup --show -f "$1")
+ mount $LOOPBACK "$2" && IMG_ACTIVE_MOUNTS=("$2" "${IMG_ACTIVE_MOUNTS[@]}")
}
mount_img() {
@@ -24,6 +25,7 @@ umount_img() {
if [[ -n ${IMG_ACTIVE_MOUNTS[@]} ]]; then
info "umount: [%s]" "${IMG_ACTIVE_MOUNTS[@]}"
umount "${IMG_ACTIVE_MOUNTS[@]}"
+ losetup -d $LOOPBACK
unset IMG_ACTIVE_MOUNTS
rm -r "$1"
fi
```
```diff
diff --git a/lib/util-iso.sh b/lib/util-iso.sh
index edf50a0..8154067 100644
--- a/lib/util-iso.sh
+++ b/lib/util-iso.sh
@@ -323,6 +323,7 @@ make_image_root() {
msg "Prepare [Base installation] (rootfs)"
local path="${work_dir}/rootfs"
mkdir -p ${path}
+ sync
chroot_create "${path}" "${packages}" || die
@@ -349,6 +350,7 @@ make_image_desktop() {
msg "Prepare [Desktop installation] (desktopfs)"
local path="${work_dir}/desktopfs"
mkdir -p ${path}
+ sync
mount_fs_root "${path}"
@@ -393,6 +395,7 @@ make_image_live() {
msg "Prepare [Live installation] (livefs)"
local path="${work_dir}/livefs"
mkdir -p ${path}
+ sync
mount_fs_select "${path}"
@@ -434,6 +437,7 @@ make_image_mhwd() {
msg "Prepare [drivers repository] (mhwdfs)"
local path="${work_dir}/mhwdfs"
mkdir -p ${path}${mhwd_repo}
+ sync
mount_fs_select "${path}"
@@ -463,6 +467,7 @@ make_image_boot() {
local boot="${iso_root}/boot"
mkdir -p ${boot}
+ sync
cp ${work_dir}/rootfs/boot/vmlinuz* ${boot}/vmlinuz-${target_arch}
```https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/344Fix for an error and Warning in the mkinitcpio command in the prepare_initram...2024-03-28T04:40:10ZphoepsilonixFix for an error and Warning in the mkinitcpio command in the prepare_initramfs function in utils-iso-boot.sh.(WARNING: errors were encountered during the build. The image may not be complete.)```
==> Prepare [/iso/boot]
--> overlayfs mount: [/var/lib/manjaro-tools/buildiso/gnome/x86_64/bootfs]
-> Copying initcpio ...
<skip>
==> Creating xz-compressed initcpio image: '/boot/initramfs.img'
WARNING: errors were encounte...```
==> Prepare [/iso/boot]
--> overlayfs mount: [/var/lib/manjaro-tools/buildiso/gnome/x86_64/bootfs]
-> Copying initcpio ...
<skip>
==> Creating xz-compressed initcpio image: '/boot/initramfs.img'
WARNING: errors were encountered during the build. The image may not be complete.
```
One reason for this is that the symbolic links for libnss_files.so.2 and libnss_dns.so.2 do not exist in the glibc package.
We suggest commenting out the add_symlink in in miso_pxe_common.
```diff
diff --git a/initcpio/install/miso_pxe_common b/initcpio/install/miso_pxe_common
index eec9a7e..3d935f1 100644
--- a/initcpio/install/miso_pxe_common
+++ b/initcpio/install/miso_pxe_common
@@ -8,9 +8,9 @@ build() {
add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig
# Add hosts support files+dns
- add_symlink /usr/lib/libnss_files.so.2 $(readlink /usr/lib/libnss_files.so.2)
+ #add_symlink /usr/lib/libnss_files.so.2 $(readlink /usr/lib/libnss_files.so.2)
add_binary $(readlink -f /usr/lib/libnss_files.so.2)
- add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2)
+ #add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2)
add_binary $(readlink -f /usr/lib/libnss_dns.so.2)
add_dir /etc
```https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/343In the new kernel package, extramodules have been removed from the PATH.2024-01-28T13:08:26ZphoepsilonixIn the new kernel package, extramodules have been removed from the PATH.In the new kernel package, extramodules have been removed from the PATH.
Therefore, the following action will need to be taken.
You may need the KERNEL-headers package for Packages-Root.
Other proposed fixes
```
local _kernver=$(cat ...In the new kernel package, extramodules have been removed from the PATH.
Therefore, the following action will need to be taken.
You may need the KERNEL-headers package for Packages-Root.
Other proposed fixes
```
local _kernver=$(cat $1/boot/*.kver|awk '{print $1}')
```
```
diff --git a/lib/util-iso-boot.sh b/lib/util-iso-boot.sh
index aa012b7..29a22c3 100644
--- a/lib/util-iso-boot.sh
+++ b/lib/util-iso-boot.sh
@@ -18,7 +18,7 @@ prepare_initcpio(){
prepare_initramfs(){
cp ${DATADIR}/mkinitcpio.conf $1/etc/mkinitcpio-${iso_name}.conf
- local _kernver=$(cat $1/usr/lib/modules/*/version)
+ local _kernver=$(cat $1/usr/lib/modules/*/build/version)
if [[ -n ${gpgkey} ]]; then
su ${OWNER} -c "gpg --export ${gpgkey} >${USERCONFDIR}/gpgkey"
exec 17<>${USERCONFDIR}/gpgkey
```https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/342update tool box2023-12-16T08:08:31ZFrede Hupdate tool box`https://forum.manjaro.org/t/suggest-remove-lib32-from-minimal/147500`
There is several small issues which can be fixed the the attached patch
[feat-no-multilib-bugfix-defaults-conf.patch](/uploads/c8f3aa4cdf051badd9a922efe3b6ebf4/feat...`https://forum.manjaro.org/t/suggest-remove-lib32-from-minimal/147500`
There is several small issues which can be fixed the the attached patch
[feat-no-multilib-bugfix-defaults-conf.patch](/uploads/c8f3aa4cdf051badd9a922efe3b6ebf4/feat-no-multilib-bugfix-defaults-conf.patch)
1. issue #341 (shell check)
2. issue #340 (cosmetics for data/mkinitcpio.conf)
3. feature to disable multilib from command line `-n` - affecting bin/buildiso.in, lib/util.sh, lib/util-iso.sh
4. makefile missing cleanup check-yaml
5. data/pacman-default.conf -> removed community, enable ParallelDownloads
6. data/pacman-multilib.conf -> removed community, enable ParallelDownloads
@philm all is tested and fully functional - but please check my patchhttps://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/341[lib/util.sh] fix invalid brackets2023-12-16T07:57:31ZFrede H[lib/util.sh] fix invalid bracketsIn function init_profiles() there is invalid brackets `]]`
[02-remove-invalid-brackets.patch](/uploads/f2ac23be6ad6b82723ac71e99b92b01c/02-remove-invalid-brackets.patch)In function init_profiles() there is invalid brackets `]]`
[02-remove-invalid-brackets.patch](/uploads/f2ac23be6ad6b82723ac71e99b92b01c/02-remove-invalid-brackets.patch)https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/340[data/mkinitcpio.conf] old bash array style fix2023-12-16T07:57:56ZFrede H[data/mkinitcpio.conf] old bash array style fixPlease these forum topics for discussions on the syntax
```
https://forum.manjaro.org/t/mkinitcpio-conf-correct-hooks-and-syntax/152025
https://forum.manjaro.org/t/mkinitcpio-conf-correct-hooks-and-syntax/152025/21
```
[01-fix-mkinitcp...Please these forum topics for discussions on the syntax
```
https://forum.manjaro.org/t/mkinitcpio-conf-correct-hooks-and-syntax/152025
https://forum.manjaro.org/t/mkinitcpio-conf-correct-hooks-and-syntax/152025/21
```
[01-fix-mkinitcpio-old-array-style.patch](/uploads/d36732e3e58949b11ee90d36abf1d0c7/01-fix-mkinitcpio-old-array-style.patch)https://gitlab.manjaro.org/tools/development-tools/manjaro-chrootbuild/-/issues/10cp: cannot stat '$': No such file or directory2023-11-08T21:12:58ZMark Wagiecp: cannot stat '$': No such file or directoryMaybe a syntax error with r311.gc161b6e-1. Using r308.gb3efa6f-1 is fine.
```
:: Configure branch [unstable]
:: Update chroot file system
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to...Maybe a syntax error with r311.gc161b6e-1. Using r308.gb3efa6f-1 is fine.
```
:: Configure branch [unstable]
:: Update chroot file system
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to date
:: Starting full system upgrade...
there is nothing to do
cp: cannot stat '$': No such file or directory
/usr/lib/manjaro-chrootbuild/util-pkg.sh: line 45: cd: /var/lib/chrootbuild/build/gnome-shell-extension-forge: No such file or directory
/usr/bin/chrootbuild: line 5: cd: /build/$: No such file or directory
/usr/bin/chrootbuild: line 6: PKGBUILD: No such file or directory
validating keys:
gpg: directory '/build/.gnupg' created
gpg: keybox '/build/.gnupg/pubring.kbx' created
==> ERROR: PKGBUILD does not exist.
==> ERROR: Building package [gnome-shell-extension-forge] failed.
Cleaning up.
```https://gitlab.manjaro.org/tools/development-tools/manjaro-chrootbuild/-/issues/9sometimes cannot download sources2023-10-01T09:07:38ZJozef Mlichsometimes cannot download sourcesI was trying to rebuild few packages in the row and I have seen following error message:
```
==> Validating source files with sha256sums...
1.32.0.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
```
I...I was trying to rebuild few packages in the row and I have seen following error message:
```
==> Validating source files with sha256sums...
1.32.0.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
```
It looks like the sources wasn't downloaded at all.
The issue wasn't reproducible every time. I was using `-n`.
(whole script with PKGBUILDS is here)
https://github.com/nemomobile-ux/nemo-packaging/blob/0d37ebc13219cec89bca0ad91fe857d0c58c26b5/deploy4.sh#L55
so the command was:
```
chrootbuild -r /mnt/data/buildchroot -D -f -n -b arm-stable -p mce-headers
```
Unfortunately, the issue is not reproducible with clear chroot and build of single package.
In the end I have decided to provide extra packages via extra repository.https://gitlab.manjaro.org/tools/development-tools/manjaro-chrootbuild/-/issues/8allow to use custom repo2023-10-31T08:52:49ZJozef Mlichallow to use custom repoI would like to use custom repo with chrootbuild command.
Unfortunately, I am not able to create pull request directly. The patch is at
https://github.com/jmlich/manjaro-chrootbuild/commit/bdb738ebe81a0c44b981933a8f37b70ac1e1e0f7
It sh...I would like to use custom repo with chrootbuild command.
Unfortunately, I am not able to create pull request directly. The patch is at
https://github.com/jmlich/manjaro-chrootbuild/commit/bdb738ebe81a0c44b981933a8f37b70ac1e1e0f7
It should be similar to changes made at
https://gitlab.manjaro.org/manjaro-arm/applications/manjaro-arm-tools/-/issues/34
After that patch I am using script like this
```
chrootbuild -c -D -f -k "http://localhost/build-results/nemomobile.db" -p $pkg_name
```https://gitlab.manjaro.org/tools/development-tools/manjaro-tools-livecd/-/issues/2pacman-key --populate fails.2023-07-21T05:37:26Zphoepsilonixpacman-key --populate fails.In the live environment,
pacman-key --populate fails if /etc/pacman.d/mirrorlist is not exist.
It would be better to run the mirror ranking script before pacman-init.service.
[0001-pacman-key-populate-fails.patch](/uploads/a78a5cea110d2...In the live environment,
pacman-key --populate fails if /etc/pacman.d/mirrorlist is not exist.
It would be better to run the mirror ranking script before pacman-init.service.
[0001-pacman-key-populate-fails.patch](/uploads/a78a5cea110d284f2f16c9d5305ba8f8/0001-pacman-key-populate-fails.patch)
Reference link:
[https://github.com/phoepsilonix/manjaro-tools-livecd/commit/e9d9c1f27a51c05e4a31cddb31d9e1d61ab5dbe8](https://github.com/phoepsilonix/manjaro-tools-livecd/commit/e9d9c1f27a51c05e4a31cddb31d9e1d61ab5dbe8)https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/339manjaro tools2023-06-18T09:51:40ZRobin Wheelermanjaro toolsPlease Change "multilib.conf" in the data folder and pacman-default.conf also in the data folder as per
https://github.com/robin0800/manjaro-tools
the link contains detailsPlease Change "multilib.conf" in the data folder and pacman-default.conf also in the data folder as per
https://github.com/robin0800/manjaro-tools
the link contains detailshttps://gitlab.manjaro.org/tools/development-tools/manjaro-chrootbuild/-/issues/7add option to install (specific) kernel to chrootfs2023-03-13T22:04:40ZBernhard Landaueradd option to install (specific) kernel to chrootfsIn some rare cases builds rely on the presence of a specific kernel.
Functionality can easily be achieved with an option `-X <kernel>`In some rare cases builds rely on the presence of a specific kernel.
Functionality can easily be achieved with an option `-X <kernel>`Bernhard LandauerBernhard Landauerhttps://gitlab.manjaro.org/tools/development-tools/manjaro-tools-livecd/-/issues/1pacman-key --populate fails if /etc/pacman.d/mirrorlist is not present.2023-07-21T05:36:56Zphoepsilonixpacman-key --populate fails if /etc/pacman.d/mirrorlist is not present.In the live environment,
pacman-key --populate fails if /etc/pacman.d/mirrorlist is not exist.
It would be better to run the mirror ranking script before pacman-init.service.
[0001-pacman-key-populate-fails.patch](/uploads/a78a5cea110d2...In the live environment,
pacman-key --populate fails if /etc/pacman.d/mirrorlist is not exist.
It would be better to run the mirror ranking script before pacman-init.service.
[0001-pacman-key-populate-fails.patch](/uploads/a78a5cea110d284f2f16c9d5305ba8f8/0001-pacman-key-populate-fails.patch)
Reference link:
[https://github.com/phoepsilonix/manjaro-tools-livecd/commit/e9d9c1f27a51c05e4a31cddb31d9e1d61ab5dbe8](https://github.com/phoepsilonix/manjaro-tools-livecd/commit/e9d9c1f27a51c05e4a31cddb31d9e1d61ab5dbe8)https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/338Time to update manjaro-tools and buildiso?2023-01-10T17:10:05ZRoel VanraepenbuschTime to update manjaro-tools and buildiso?When i tried to buid plasma-mobile, I first got this message:
error: failed retrieving file 'core.db' from manjaro.moson.eu : Could not resolve host: manjaro.moson.eu
After changing the mirror to one that exists, I got this messagees:
...When i tried to buid plasma-mobile, I first got this message:
error: failed retrieving file 'core.db' from manjaro.moson.eu : Could not resolve host: manjaro.moson.eu
After changing the mirror to one that exists, I got this messagees:
error: target not found: ipw2100-fw
error: target not found: ipw2200-fw
error: target not found: manjaro-firmware
If I do a manual search tot the packages, they do not seem to exist.https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/337failed retrieving file2023-01-10T17:10:54ZTiofailed retrieving fileWhen `buildiso -p xfce` I get this error recently:
```
-> Installing packages to /var/lib/manjaro-tools/buildiso/xfce/x86_64/rootfs
:: Synchronizing package databases...
core.db failed to download
error: failed retrieving file 'core.db...When `buildiso -p xfce` I get this error recently:
```
-> Installing packages to /var/lib/manjaro-tools/buildiso/xfce/x86_64/rootfs
:: Synchronizing package databases...
core.db failed to download
error: failed retrieving file 'core.db' from manjaro.moson.eu : Failed to connect to manjaro.moson.eu port 443 after 289 ms: Couldn't connect to server
error: failed to synchronize all databases (download library error)
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
```
I refreshed the mirrors and all that. Does not work. Used to work well. Where could the issue be? I tried different VPN connections to change the IP but same exact error. I cannot access manjaro.moson.eu from my machine it seems.https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/issues/336change default build repo server2023-01-10T17:10:05ZVitor Lopeschange default build repo serversince october 23rd 2022 https://manjaro.moson.eu is offline according to this information
(https://forum.manjaro.org/t/mirror-removal-manjaro-moson-eu-2022-10-23/122625)
this repo is set as default in manjaro-tools.conf
please change ...since october 23rd 2022 https://manjaro.moson.eu is offline according to this information
(https://forum.manjaro.org/t/mirror-removal-manjaro-moson-eu-2022-10-23/122625)
this repo is set as default in manjaro-tools.conf
please change to active repo or set additional info to set up the repo before build imagehttps://gitlab.manjaro.org/tools/development-tools/manjaro-chrootbuild/-/issues/6Custom makepkg.conf2022-10-08T16:58:16ZMark WagieCustom makepkg.confI've just made a change to the default `makepkg.conf` to restore it to more sane defaults. See https://gitlab.manjaro.org/packages/core/pacman/-/issues/7#note_27826
I'll take a look later and see about an MR if I figure it out. Either w...I've just made a change to the default `makepkg.conf` to restore it to more sane defaults. See https://gitlab.manjaro.org/packages/core/pacman/-/issues/7#note_27826
I'll take a look later and see about an MR if I figure it out. Either way, it should be fairly simple to set a custom `MAKEFLAGS` value.
EDIT: I won't push the changes until this is resolved.https://gitlab.manjaro.org/tools/development-tools/manjaro-chrootbuild/-/issues/5mkdir: cannot create directory: Permission denied2022-05-13T22:03:06ZMark Wagiemkdir: cannot create directory: Permission deniedAfter updating to `manjaro-chrootbuild` r275.g768b0c0-1, running `sudo chrootbuild -H -p <package> -c`:
```
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'git' with GID 973.
Creating user 'gi...After updating to `manjaro-chrootbuild` r275.g768b0c0-1, running `sudo chrootbuild -H -p <package> -c`:
```
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'git' with GID 973.
Creating user 'git' (git daemon user) with UID 973 and GID 973.
(2/4) Reloading system manager configuration...
Skipped: Running in chroot.
(3/4) Arming ConditionNeedsUpdate...
(4/4) Warn about old perl modules
mkdir: cannot create directory ‘/build/crankshaft/src’: Permission denied
==> ERROR: An unknown error has occurred. Exiting...
/usr/bin/chrootbuild: line 9: 1070587 User defined signal 1 makepkg -$2 --noconfirm
```https://gitlab.manjaro.org/tools/development-tools/manjaro-chrootbuild/-/issues/4not possible to build vim anymore: 'pacman' failed to install missing depende...2022-05-02T17:10:10ZPhilip Hnot possible to build vim anymore: 'pacman' failed to install missing dependencies.It's not possible to build vim, failed to retrieve some dependencies.
```bash
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
==> ERR...It's not possible to build vim, failed to retrieve some dependencies.
```bash
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> gpm
-> ruby
-> libxt
-> gtk4
-> lua
-> tcl
-> libcanberra
==> ERROR: Could not resolve all dependencies.
```https://gitlab.manjaro.org/tools/development-tools/manjaro-chrootbuild/-/issues/3PGP's invalide2022-04-21T07:08:43ZPhilip HPGP's invalideMark's PGP Key is invalide?
```
checking package integrity...
error: filesystem: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/filesystem-2021.12.07-3-x86_64.pkg.tar.zst is corrupted (inva...Mark's PGP Key is invalide?
```
checking package integrity...
error: filesystem: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/filesystem-2021.12.07-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/bashrc-manjaro-5.1.016-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/bash-5.1.016-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/systemd-libs-250.4-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: bashrc-manjaro: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
error: bash: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
error: systemd-libs: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
error: python-npyscreen: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
error: pacman-mirrors: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
error: pacman: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
error: failed to commit transaction (invalid or corrupted package)
:: File /var/cache/pacman/pkg/python-npyscreen-4.10.5-7-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/pacman-mirrors-4.23.2-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/pacman-6.0.1-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install chroot filesystem.
Cleaning up.
```