Bug in FD64-v901's pkgbuild system and its fix

versatile 64-bit multi-user Linux distribution


Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
tatemono
Posts: 31
Joined: Sat Oct 08, 2022 10:25 am
Has thanked: 18 times
Been thanked: 11 times

Bug in FD64-v901's pkgbuild system and its fix

Post by tatemono »

[BUG]
Load fd64-devx_901.sfs and run /usr/src/pkgbuild/all-rebuild.sh. Then the following error message appears.

Code: Select all

# /usr/src/pkgbuild/all-rebuild.sh
/usr/src/pkgbuild/all-rebuild.sh: line 95: syntax error: unexpected "fi"

[FIX]
Apply the following "sed" command to fix the above-mentioned bug in "/usr/src/pkgbuild/all-rebuild.sh". Please refer to the following messages for details.

Code: Select all

# cp -p /usr/src/pkgbuild/all-rebuild.sh /usr/src/pkgbuild/all-rebuild.sh.ORIG
# sed -i -e '94s/#/:#/' -e '102s/#/:#/' /usr/src/pkgbuild/all-rebuild.sh
# diff -Nau /usr/src/pkgbuild/all-rebuild.sh.ORIG /usr/src/pkgbuild/all-rebuild.sh
--- /usr/src/pkgbuild/all-rebuild.sh.ORIG	2023-07-09 16:25:39.000000000 +0000
+++ /usr/src/pkgbuild/all-rebuild.sh	2024-06-01 09:27:58.821641728 +0000
@@ -91,7 +91,7 @@
 			%replaces|%replaces-before|%pre-replaces) # remove some packages permanently
 				find_pkg $PKG_DIR $p $FINDPKG_CACHE || continue # do it at both build and install time
 				if [ -e $BASE_DIR/var/log/packages/$PKG ]; then
-					#uninstall_only
+					:#uninstall_only
 				fi				
 				;;
 
@@ -99,7 +99,7 @@
 				[ -z $install_only ] && continue                # do it at install time
 				find_pkg $PKG_DIR $p $FINDPKG_CACHE || continue
 				if [ -e $BASE_DIR/var/log/packages/$PKG ]; then
-					#uninstall_only
+					:#uninstall_only
 				fi				

EDIT (the 22nd of June, 2024): The subject was modified and its was "Bug in /usr/src/pkgbuild/all-rebuild.sh, contained in fd64-devx_901.sfs, and its fix".

Last edited by tatemono on Sat Jun 22, 2024 4:15 pm, edited 1 time in total.
jamesbond
Posts: 721
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 125 times
Been thanked: 409 times

Re: Bug in /usr/src/pkgbuild/all-rebuild.sh, contained in fd64-devx_901.sfs, and its fix

Post by jamesbond »

Confirmed the bug, and also the fix, thank you.

Post Reply

Return to “FatDog64”