problems with porting postmarketOS to samsung galaxy a12.Could not find aport for package

Phone used for testing (not that I got that far): Samsung Galaxy A127F

Kernel source code used:

  1. Search for "SM-A127F_CIS_13_Opensource.zip" from samsungs website
  2. Move it to somewhere like ~/projects/postmarketos/stock/SM-A127F_CIS_13_Opensource.zip (referred to as $stock from now on)
  3. unzip $stock using unzip $stock command
  4. there should now be a "Kernel.tar.gz" file. Make a new directory called "Kernel" (the path to this directory would be called $kernel from now on.) Move Kernel.tar.gz to $kernel. Extract $kernel by running tar -xf Kernel.tar.gz

As you can guess I couldn't find the kernel in a git repo so I followed the wikis advice of running pmbootstrap samsung-a12 --src=/$kernel

[15:44:27] ERROR: Could not find aport for package: samsung-a12
[15:44:27] See also: <https://postmarketos.org/troubleshooting>
Run 'pmbootstrap log' for details.

well that seems interesting

I didn't find any reference to the error message in the wiki and while I did find a promising google result (proxied through a metasearch engine of course) it was a reddit thread that wasn't archived by the wayback machine

Why this might have happened:

  • the wiki said that if you didn't install pmbootstrap through git the places would change. I didn't install it through git but it might be assuming I did
  • the wiki never said if I had to change anything in "linux-samsung-a12/APKBUILD", so I assumed I didn't need to change anything, maybe I did?

Log:

mirrordir_alpine=edge

[v23.06]
description=Latest release / Recommended for best stability
branch_pmaports=v23.06
branch_aports=3.18-stable
mirrordir_alpine=v3.18

[v22.12]
description=Old release (supported until: 2023-07-07)
branch_pmaports=v22.12
branch_aports=3.17-stable
mirrordir_alpine=v3.17

[v22.06]
description=Old release (unsupported)
branch_pmaports=v22.06
branch_aports=3.16-stable
mirrordir_alpine=v3.16

[v21.12]
description=Old release (unsupported)
branch_pmaports=v21.12
branch_aports=3.15-stable
mirrordir_alpine=v3.15

[v21.06]
description=Old release (unsupported)
branch_pmaports=v21.06
branch_aports=3.14-stable
mirrordir_alpine=v3.14

[v21.03]
description=Old release (unsupported)
branch_pmaports=v21.03
branch_aports=3.13-stable
mirrordir_alpine=v3.13

[v20.05]
description=Old release (unsupported)
branch_pmaports=v20.05
branch_aports=3.12-stable
mirrordir_alpine=v3.12
(012374) [15:03:00] ERROR: Could not find aport for package: samsung-a12
(012374) [15:03:00] See also: <https://postmarketos.org/troubleshooting>
(012374) [15:03:00] Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pmb/__init__.py", line 63, in main
    getattr(frontend, args.action)(args)
  File "/usr/lib/python3.11/site-packages/pmb/helpers/frontend.py", line 114, in build
    arch_package = args.arch or pmb.build.autodetect.arch(args, package)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pmb/build/autodetect.py", line 46, in arch
    aport = pmb.helpers.pmaports.find(args, pkgname)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pmb/helpers/pmaports.py", line 181, in find
    raise RuntimeError("Could not find aport for package: " +
RuntimeError: Could not find aport for package: samsung-a12

(012382) [15:03:04] % tail -n 60 -F /home/user/.local/var/pmbootstrap/log.txt
(012382) [15:03:04] *** output passed to pmbootstrap stdout, not to this log ***

Operating System used for building: Arch (btw)

PureTryOut,

First of all the command you would need is pmbootstrap build samsung-a12 --src=<whatever>. Secondly instead of "samsung-a12" you should put the name of the package there. I'm assuming the package you're making isn't called that, and if it was you should rename it as it should be device-samsung-a12 instead.

pmbootstrap is complaining that it can't find the package, as you didn't indicate the right package name. And if it did find the package it wouldn't know what to do with it as you didn't tell pmbootstrap what to actually do (e.g. "build").

But if you want help it's better joining our Matrix channels, in your case specifically :postmarketos.org.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxphones@lemmy.ml
  • ethstaker
  • thenastyranch
  • GTA5RPClips
  • everett
  • Durango
  • rosin
  • InstantRegret
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • mdbf
  • slotface
  • cisconetworking
  • kavyap
  • JUstTest
  • normalnudes
  • modclub
  • cubers
  • ngwrru68w68
  • khanakhh
  • tacticalgear
  • tester
  • provamag3
  • Leos
  • osvaldo12
  • anitta
  • megavids
  • lostlight
  • All magazines