[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:33 (UTC)] mozesslackwarearm:sft-repos [2023/05/26 07:19 (UTC)] (current) mozes
Line 57: 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 === === 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. 
  
-The SlackBuild recipe and digital signature:+Type ''wget'' and paste the URL into the shell/terminal window
  
 <code> <code>
 wget https://slackbuilds.org/slackbuilds/15.0/system/p7zip.tar.gz wget https://slackbuilds.org/slackbuilds/15.0/system/p7zip.tar.gz
-wget https://slackbuilds.org/slackbuilds/15.0/system/p7zip.tar.gz.asc 
 </code> </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> <code>
Line 79: Line 105:
 </code> </code>
  
-Unpack the SlackBuilds recipe archive:+You should see ''Good signature from "SlackBuilds.org'' 
 + 
 + 
 +=== Unpack the SlackBuilds recipe archive ===
  
 <code> <code>
Line 86: Line 115:
 </code> </code>
  
-Download the software's source archive:+=== 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> <code>
 wget https://github.com/p7zip-project/p7zip/archive/v17.04/p7zip-17.04.tar.gz wget https://github.com/p7zip-project/p7zip/archive/v17.04/p7zip-17.04.tar.gz
 </code> </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> <code>
Line 96: Line 141:
 </code> </code>
  
-Compare this to the md5sum on the SlackBuilds web site:+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> <code>
 [ "$( openssl md5 p7zip-17.04.tar.gz | awk '{print $2}' )" = "00acfd6be87848231722d2d53f89e4a5" ] && echo good [ "$( openssl md5 p7zip-17.04.tar.gz | awk '{print $2}' )" = "00acfd6be87848231722d2d53f89e4a5" ] && echo good
 +good
 </code> </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.
  
-== Adjust the SlackBuild == +Fortunately in 99% of the cases we can use a single command to fix them up.  Paste in the following command:
- +
-An [[https://git.slackbuilds.org/templates/commit/?h=aarch64|update to the SlackBuilds templates]] was made for new additions to +
-the SlackBuilds.org repository, but at present (April 2023) many packages will require minor changes to handle Slackware AArch64. +
-Fortunately in 99% of the cases we can use the same compiler flags (''-O2 -fPIC'') for x86_64 as AArch64 with this command:+
  
 <code> <code>
Line 114: Line 160:
 </code> </code>
  
-In some cases ''-fPIC'' may cause a build to fail, and the compiler will inform you to remove it.  In such cases, remove ''-fPIC'' from +=== Build the package ===
-the ''SLKFLAGS'' line in the build script: +
- +
- +
-== Build the package ==+
  
 <code> <code>
Line 124: Line 166:
 </code> </code>
  
-== Install the package ==+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> 
 + 
 + 
 + 
 + 
 + 
  
-<code> 
-installpkg /tmp/p7zip-17.04-aarch64-1_SBo.tgz</code> 
  
  
-=== Feeding back issues to SlackBuilds.org developers === 
  
-... to be added.  Perhaps submit to the mailing list any changes, or contact the developer? 
-to be decided. 
  
 slackwarearm:sft-repos ()