Personally I like GNOME guidelines I don't know of any besides for material 3 and GNOME

22
6

cross-posted from: https://latte.isnot.coffee/post/288501 > [ALE](https://github.com/dense-analysis/ale) gives me a warning when I use gtk > > `#include <gtk/gtk.h> /* E: gtk/gtk.h: No such file or directory` > > This is probably happening because ALE isn't using my compiler flags `gcc $( pkg-config --cflags gtk4 ) -o program main.c $( pkg-config --libs gtk4 )` that I stole from the gtk documentation. These compiler flags allow gcc to find `gtk/gtk.h` even though it is in `gtk-4.0/gtk/gtk.h` > > How do I make ALE aware of my compiler flags?

5
0

Solution: 1. Make all command substition in a make done through the assignment operator e.g. ``` cflags != pkg-config --cflags gtk4 libs != pkg-config --libs gtk4 all: gcc $(cflags) -o watch main.c $(libs) ``` not ``` all: gcc $$(pkg-config --cflags gtk4) -o watch main.c $$(pkg-config --libs gtk4) ```` 2. add this to your .vimrc: `let g:ale_c_parse_makefile = 1` --------------------------- [ALE](https://github.com/dense-analysis/ale) gives me a warning when I use gtk `#include <gtk/gtk.h> /* E: gtk/gtk.h: No such file or directory` This is probably happening because ALE isn't using my compiler flags `gcc $( pkg-config --cflags gtk4 ) -o program main.c $( pkg-config --libs gtk4 )` that I stole from the gtk documentation. These compiler flags allow gcc to find `gtk/gtk.h` even though it is in `gtk-4.0/gtk/gtk.h` How do I make ALE aware of my compiler flags?

6
3

1. Plug in the dvd 2. Run `lsblk` to see if it got detected 3. Run `dd if=/dev/cdrom of=dvd.dvd status=progress` 4. You can now play the ripped dvd using mpv: `mpv dvd://0/dvd.dvd` If your dvd has Digital Restrictions Management there will most likely be extra steps

41
27

So I am trying to port postmarketos, I have gotten very far (everything has compiled) but there is an issue during `pmbootstrap install` Before you ask I have asked Matrix/IRC I noticed my SoC has mainline support so I'm mainlining it Phone specs: * Samsung Galaxy A127F * Exynos 850 SoC * stock bootloader Logs: * `pmbootstrap zap; pmbootstrap -v install` * [shortened](https://0.vern.cc/lM.txt) * [full](https://0.vern.cc/lX.txt) Files used: - device-samsung-a12 - [deviceinfo](http://0.vern.cc/l9.txt) - [APKBUILD](http://0.vern.cc/ly.txt) - linux-samsung-a12 - [APKBUILD](https://0.vern.cc/l6.txt) - [config-samsung-a12.aarch64](https://0.vern.cc/lV.aarch64) - [enable_HAVE_KERNEL_GZIP.patch](https://0.vern.cc/lj.patch) What I think is happening: - `mkbootimg` is failing for some reason What I think can fix it: - Disabling it. [This wiki page](https://wiki.postmarketos.org/wiki/Deviceinfo_reference) says: " generate_bootimg | Set this to true for fastboot device, so the `mkinitfs` command will generate a `boot.img` file after creating the `initfs`. Add `mkbootimg` as dependency to your device's `APKBUILD`! " I don't know if a phone using samsungs download mode counts as a "fastboot device" I have tried disabling it but heimdall then stopped at 6% [I followed the advice of the wiki](https://wiki.postmarketos.org/wiki/Troubleshooting#Heimdall:_Flashing_fails_at_7.25) but then heimdall got stuck at 27% - Adding more arguments. The error is `error: not enough arguments '/tmp/mkinitfs1981624154/boot.img'` so just add the arguments? The problem is I don't know which ones. [According to the wiki](https://wiki.postmarketos.org/wiki/Deviceinfo_reference) I could use `bootimg_custom_args` to add custom arguments, but which custom arguments? And where are the files arguments like `--kernel` should point to? Please remind me if I forgot to mention anything and I will happily edit my post :D Edit: I would just like to say thanks to everyone who has helped me on previous issues and anyone who helps me on any other issue (including this one)

2
4

GSIs sound like a way to [reinvent the square wheel](https://wikiless.funami.tech/wiki/Reinventing_the_wheel?lang=en) when it comes to uefi

6
0

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](//opensource.samsung.com) 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](https://postmarketos.org/troubleshooting) 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)

3
1
"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearOR
Now
7 210

gun/linux

original_ish_name@ latte.isnot.coffee