Page 1 of 1

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

Posted: Sat Jun 22, 2024 4:17 pm
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				
 				;;
 


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

Posted: Wed Jun 26, 2024 9:43 am
by jamesbond

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