From 7d2bfb732b1aeed68d64472bbdb9892780e78e0c Mon Sep 17 00:00:00 2001 From: joborun linux Date: Thu, 16 May 2024 00:59:22 +0200 Subject: [PATCH] Update the howto,md build in jobbot wiki page Update the howto,md build in jobbot wiki page --- howto.md | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/howto.md b/howto.md index c23989e..f27785c 100644 --- a/howto.md +++ b/howto.md @@ -21,12 +21,25 @@ All of the source for joborun is in those repositories. Shift into the name of the pkg you want to build. -You will notice various files, as usually the original PKGBUILD that "inspired" our PKGBUILD, if it came from arch it should be noted as PKGBUILD-arch and then PKGBUILD is our own version. +You will notice various files, as usually the original PKGBUILD that "inspired" our PKGBUILD, if it came from arch it should be noted as PKGBUILD-arch and then PKGBUILD is our own version, so you can compare. Generally the original will be from arch, or obarun PKGBUILD-oba, or AUR PKGBUILD-aur.
% cat note
if there is a note file there, it may have important information to consider before you build. +You can build any pkg in your running system but we recommend building it in a special chroot by exploding the current jobbot img found in sourceforge https://sourceforge.net/projects/joborun/files/images/ + +So from this point on the instructions are for using the special jobbot chroot, for any other setup adjust accordingly. + +----- +example:
+mount /dev/sdz99 /mnt 
+cd /mnt 
+sudo tar -xf jobbot.tar.xz ./
+sudo arch-chroot /mnt su make
+pkg -Suy
+
+----- deps: Is a file listing all the additional dependencies needed to build the package "on top" of the 'jobbot' minimal chroot which must always be checked before a package is built. @@ -35,7 +48,7 @@ deps: Is a file listing all the additional dependencies needed to build the pac diff -Nuar /src/Qsq /tmp/Qsq -Note: on our images jobbot and joborun base tarball there should be a script named /usr/local/bin/ckchroot doing exactly this. +Note: on our image jobbot tarball there should be a script named /usr/local/bin/ckchroot doing exactly this. If there is a difference of additionally installed packages it should show in the + list. @@ -43,10 +56,22 @@ Note: on our images jobbot and joborun base tarball there should be a script nam To install additional dependencies do: -
% sudo pacman -S $(cat deps)
+
+% sudo pacman -Rnsu jobbot2
+% sudo pacman -S $(cat deps)
+
+ +to restore the base chroot reverse this: + +
+% sudo pacman -Rnsu $(cat deps)
+% sudo pacman -S jobbot2
+
or make a shortcut such as depS = sudo pacman -S $(cat deps) +if you use zsh the jobbot make user has this shortcut in ~/.zshrc + key: if the source is signed, this is the GnuPgp key you need to import Simply: sh key @@ -65,13 +90,6 @@ If this is a jobextra pkg, move it to /var/cache/jobextra clean: Simply run sh clean and the directory will be left as it was when you entered it. -deps: Once again you should remove additional building dependencies when you are done by simply: - -
% sudo pacman -Rnsu $(cat deps)
- -or make a shortcut such as depR = sudo pacman -Rnsu $(cat deps) -Now repeat this for all the packages in the repo. - Summary