[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 10:00 (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 145: Line 146:
 <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 ===
  
-== Adjust the SlackBuild build recipe ==+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.
  
-An [[https://git.slackbuilds.org/templates/commit/?h=aarch64|update to the SlackBuilds templates]] was made for new additions to +Fortunately in 99% of the cases we can use a single command to fix them up.  Paste in the following command:
-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 158: 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 ()