[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:51 (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 ===
Line 63: Line 64:
 Typically there are a minimum of three assets to download: Typically there are a minimum of three assets to download:
  
-1. The SlackBuilds.org build recipe archive. +  - The SlackBuilds.org build recipe archive. 
-2. The build recipe archive's GPG signature +  The build recipe archive's GPG signature 
-3. The source archive of the software application+  The source archive of the software application
  
 == Download the SlackBuilds.org recipe archive == == Download the SlackBuilds.org recipe archive ==
Line 74: Line 75:
 {{:slackwarearm:arm-sbo-rightclick-recipe-url.png?400|}} {{:slackwarearm:arm-sbo-rightclick-recipe-url.png?400|}}
  
-Paste the URL into the shell/terminal window:+Use ''wget'' to download the assets.  
 + 
 +Type ''wget'' and paste the URL into the shell/terminal window
  
 <code> <code>
Line 80: Line 83:
 </code> </code>
  
-Right click on the URL for the SlackBuilds.org recipe archive digital signature and paste it into the shell/terminal:+== 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> <code>
 wget https://slackbuilds.org/slackbuilds/15.0/system/p7zip.tar.gz.asc</code> wget https://slackbuilds.org/slackbuilds/15.0/system/p7zip.tar.gz.asc</code>
 +
 +=== Verify the SlackBuilds.org recipe archive ===
  
 <code> <code>
Line 95: 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 102: 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|}} {{: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|}} {{: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 118: 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 136: Line 160:
 </code> </code>
  
 +=== Build the package ===
  
-= Build failures ==+<code> 
 +./p7zip.SlackBuild 
 +</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 +If the package builds successfully it will be stored in ''/tmp'':
-the ''SLKFLAGS'' line in the build script:+
  
-{{:slackwarearm:arm-sbo-standardflags.png?400|}}+{{:slackwarearm:arm-sbo-pkgbuilt.png?400|}}
  
-Remove ''-fPIC'' from the flags variable so that it looks like this:+== Build failures due to compiler flags ==
  
-{{:slackwarearm:arm-sbo-removedfpic.png?400|}}+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 
  
-Save the edited build script.+Open the ''p7zip.SlackBuild'' in your favourite text editor.
  
 +Locate the following section:
  
-== Build the package ==+{{:slackwarearm:arm-sbo-standardflags.png?400|}}
  
-<code> 
-./p7zip.SlackBuild 
-</code> 
  
-If the package builds successfully it will be stored in ''/tmp'':+Remove ''-fPIC'' from the ''SLKCFLAGS'' variable so that it looks like this:
  
-{{:slackwarearm:arm-sbo-pkgbuilt.png?400|}}+{{:slackwarearm:arm-sbo-removedfpic.png?400|}}
  
 +Save the edited build script and re-build.
  
-== Install the package ==+== Build failures due to other reasons ==
  
-<code>installpkg /tmp/p7zip-17.04-aarch64-1_SBo.tgz</code>+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.
  
-=== Feeding back issues to SlackBuilds.org developers === +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.
- +
-... to be added.  Perhaps submit to the mailing list any changes, or contact the developer? +
-to be decided.+
  
  
 +=== Install the package ===
  
 +<code>installpkg /tmp/p7zip-17.04-aarch64-1_SBo.tgz</code>
  
  
 slackwarearm:sft-repos ()