[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
slackwarearm:sft-repos [2023/04/20 09:27 (UTC)] mozesslackwarearm:sft-repos [2023/05/26 07:19 (UTC)] (current) mozes
Line 18: Line 18:
 Elevate yourself to the root user: Elevate yourself to the root user:
  
-[code]+<code>
 su -  su - 
-[/code]+</code>
  
-Create a directory to hold the SlackBuilds.org packages+Create a directory to hold the SlackBuilds.org recipes and application source archives
-[code]+<code>
 mkdir -p /usr/src/slackbuilds mkdir -p /usr/src/slackbuilds
 cd /usr/src/slackbuilds cd /usr/src/slackbuilds
-[/code]+</code>
  
 +
 +== Import the GPG key for the SlackBuilds.org project ==
 +
 +<code>
 +wget https://slackbuilds.org/GPG-KEY
 +gpg --import GPG-KEY
 +</code>
 +
 +The output from gpg should look similar to this:
 +<code>
 +gpg: directory `/root/.gnupg' created
 +gpg: new configuration file `/root/.gnupg/gpg.conf' created
 +gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
 +gpg: keyring `/root/.gnupg/secring.gpg' created
 +gpg: keyring `/root/.gnupg/pubring.gpg' created
 +gpg: /root/.gnupg/trustdb.gpg: trustdb created
 +gpg: key 9C7BA3B6: public key "SlackBuilds.org Development Team <slackbuilds-devel@slackbuilds.org>" imported
 +gpg: Total number processed: 1
 +gpg:               imported: 1
 +gpg: no ultimately trusted keys found
 +</code>
  
 === Locate the package you're interested in === === Locate the package you're interested in ===
Line 36: Line 57:
  
 Select the version of Slackware you're using from the drop down menu on the right hand side. Select the version of Slackware you're using from the drop down menu on the right hand side.
-For Slackware -current (the development trunk), select the latest version of Slackware.+ 
 +<note tip>For Slackware -current (the development trunk), select the latest version of Slackware.</note> 
 + 
 +=== Download the components === 
 + 
 +Typically there are a minimum of three assets to download: 
 + 
 +  - The SlackBuilds.org build recipe archive. 
 +  - The build recipe archive's GPG signature 
 +  - The source archive of the software application 
 + 
 +== Download the SlackBuilds.org recipe archive == 
 + 
 +Right click on the URLs for the SlackBuilds.org recipe archive: 
 + 
 + 
 +{{:slackwarearm:arm-sbo-rightclick-recipe-url.png?400|}} 
 + 
 +Use ''wget'' to download the assets.  
 + 
 +Type ''wget'' and paste the URL into the shell/terminal window 
 + 
 +<code> 
 +wget https://slackbuilds.org/slackbuilds/15.0/system/p7zip.tar.gz 
 +</code> 
 + 
 +== Download the SlackBuilds.org recipe archive digital signature == 
 + 
 +Right click on the URL for the SlackBuilds.org recipe archive digital signature. 
 +Type ''wget'' and paste the URL into the shell/terminal window: 
 + 
 +{{:slackwarearm:arm-sbo-recipe-gpgsig.png?400|}} 
 + 
 +<code> 
 +wget https://slackbuilds.org/slackbuilds/15.0/system/p7zip.tar.gz.asc</code> 
 + 
 +=== Verify the SlackBuilds.org recipe archive === 
 + 
 +<code> 
 +gpg --verify p7zip.tar.gz.asc 
 +gpg: assuming signed data in `p7zip.tar.gz' 
 +gpg: Signature made Sat 28 Jan 2023 01:30:52 AM GMT using DSA key ID 9C7BA3B6 
 +gpg: Good signature from "SlackBuilds.org Development Team <slackbuilds-devel@slackbuilds.org>" 
 +gpg: WARNING: This key is not certified with a trusted signature! 
 +gpg:          There is no indication that the signature belongs to the owner. 
 +Primary key fingerprint: D307 6BC3 E783 EE74 7F09  B8B7 0368 EF57 9C7B A3B6 
 +</code> 
 + 
 +You should see ''Good signature from "SlackBuilds.org'' 
 + 
 + 
 +=== Unpack the SlackBuilds recipe archive === 
 + 
 +<code> 
 +tar xf p7zip.tar.gz 
 +cd p7zip 
 +</code> 
 + 
 +=== Download the software's source archive === 
 + 
 +Right-click the URL of the software's source archive: 
 + 
 +{{:slackwarearm:arm-sbo-src-url.png?400|}} 
 + 
 +Use ''wget'' again to download it: 
 + 
 +<code> 
 +wget https://github.com/p7zip-project/p7zip/archive/v17.04/p7zip-17.04.tar.gz 
 +</code> 
 + 
 + 
 +=== Verify the integrity of the source archive === 
 + 
 +MD5 sums are displayed on the SlackBuilds page for the software archives: 
 + 
 +{{:slackwarearm:arm-sbo-src-md5sum.png?400|}} 
 + 
 +You need to compare this to the version you have downloaded and ensure they match. 
 + 
 +<code> 
 +openssl md5 p7zip-17.04.tar.gz 
 +MD5(p7zip-17.04.tar.gz)= 00acfd6be87848231722d2d53f89e4a5 
 +</code> 
 + 
 +You can either compare this visually or use a command to do it. 
 +You can copy and paste the md5sum from the web page into the shell: 
 + 
 +<code> 
 +[ "$( openssl md5 p7zip-17.04.tar.gz | awk '{print $2}' )" = "00acfd6be87848231722d2d53f89e4a5" ] && echo good 
 +good 
 +</code> 
 + 
 +=== Adjust the SlackBuild build recipe for AArch64 === 
 + 
 +An [[https://git.slackbuilds.org/templates/commit/?id=20ac57b04874a38a4a1b4aa8d0fa4ec95a5605a4|update to the SlackBuilds templates]] was made for new additions to 
 +the SlackBuilds.org repository, but at present (April 2023) most/all packages will require minor changes to handle Slackware AArch64. 
 + 
 +Fortunately in 99% of the cases we can use a single command to fix them up.  Paste in the following command: 
 + 
 +<code> 
 +sed -i '/^elif \[ "\$ARCH" = "x86_64" \]; then$/ s/x86_64/aarch64/' p7zip.SlackBuild 
 +</code> 
 + 
 +=== Build the package === 
 + 
 +<code> 
 +./p7zip.SlackBuild 
 +</code> 
 + 
 +If the package builds successfully it will be stored in ''/tmp'': 
 + 
 +{{:slackwarearm:arm-sbo-pkgbuilt.png?400|}} 
 + 
 +== Build failures due to compiler flags == 
 + 
 +In some cases the use of the ''-fPIC'' compiler flag may cause a build to fail.  In such cases the compiler will inform you of this directly, and you must remove it.   
 + 
 +Open the ''p7zip.SlackBuild'' in your favourite text editor. 
 + 
 +Locate the following section: 
 + 
 +{{:slackwarearm:arm-sbo-standardflags.png?400|}} 
 + 
 + 
 +Remove ''-fPIC'' from the ''SLKCFLAGS'' variable so that it looks like this: 
 + 
 +{{:slackwarearm:arm-sbo-removedfpic.png?400|}} 
 + 
 +Save the edited build script and re-build. 
 + 
 +== Build failures due to other reasons == 
 + 
 +The vast majority of the SlackBuilds.org package maintainers do not test their packages on ARM, and so some packages may fail to build. 
 +In such cases if you're able to fix it yourself, you should do so and submit the fix to the maintainer. 
 + 
 +If you are unable to resolve it, you can post to the [[https://www.linuxquestions.org/questions/slackware-arm-108/|Slackware ARM forum on LinuxQuestions]] for help. 
 + 
 + 
 +=== Install the package === 
 + 
 +<code>installpkg /tmp/p7zip-17.04-aarch64-1_SBo.tgz</code> 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
  
  
  
 slackwarearm:sft-repos ()