Bug in FD64-v902'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-v902's pkgbuild system and its fix

Post by tatemono »

[BUG]
Load fd64-devx_902.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 103: 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 '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	2024-06-07 08:23:49.000000000 +0000
+++ /usr/src/pkgbuild/all-rebuild.sh	2024-06-22 00:00:22.236740358 +0000
@@ -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				
 				;;
 

jamesbond
Posts: 717
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 124 times
Been thanked: 402 times

Re: Bug in FD64-v902's pkgbuild system and its fix

Post by jamesbond »

Thank you @tatemono, I missed that one.
Fixed now for next release.

Post Reply

Return to “FatDog64”