Commit Graph

1383 Commits

Author SHA1 Message Date
Oliver Smith 741719501f
ki18n: add patch fixing plasma-workspace build
It was hanging for hours when cross compiling. This patch should fix
it. Source for the patch: <https://phabricator.kde.org/D12231>
2018-05-04 17:13:46 +02:00
Oliver Smith ef7b875218
qt5-qtsensors: remove
It is in upstream now, and our version still was at QT 5.9 (which made
the upstream compatibility testcase fail).
2018-05-03 21:14:30 +02:00
Oliver Smith e4829e688a
Update binutils-* to upstream (2.30-r0) 2018-05-03 21:14:30 +02:00
Martijn Braam 91906e2891
Hammerhead cleanup (#1460)
* aports/device: device-lg-hammerhead: Removed weston workaround
* aports/device: device-lg-hammerhead: Changed console output to ttyMSM0 for mainline
* aports/device: device-lg-hammerhead: Enabled xwayland for weston
2018-05-03 16:22:30 +02:00
Oliver Smith f5cf5400c7
kdeclarative: bump pkgrel because of qt update [skip ci] 2018-05-03 01:54:20 +02:00
Oliver Smith eb3e409703
kirigami2: don't depend on plasma-framework-dev
This was a circular dependency, because plasma-framework depends on
kirigami2-dev. Furthermore it broke building, because the old
plasma-framework-dev could not be used as it depended on a package that
has been renamed.
2018-05-03 01:23:42 +02:00
Oliver Smith f1d9745674
KDE: bump pkgrels of pkgs using qt5-qtx11extras 2018-05-02 22:56:22 +02:00
Oliver Smith 6bb9600c4b
KDE: fix depend on renamed qt5-qtx11extras
Old package name was qt5-x11extras.
2018-05-02 22:50:29 +02:00
Oliver Smith 873b29eccd
Disable LuneOS UI (see #1459) [skip ci]
Moved from aports/main to aports/luna, so we can disable the entire
folder from building in the binary repository:
* qt5-qtwebengine
* postmarketos-ui-luna
2018-05-02 22:38:19 +02:00
Craig Tatlor df6e677c6e aports/device: add support for the sony xperia z2 (sirius) 2018-05-02 22:53:49 +02:00
Craig Tatlor dc3939ed6b aports/main: linux-postmarketos-qcom: various configuration updates for sirius 2018-05-02 22:53:49 +02:00
Craig Tatlor e5adf54262 aports/main: linux-postmarketos-qcom: update kernel 2018-05-02 22:53:49 +02:00
Craig Tatlor 3385f1b515 aports/main: linux-postmarketos-qcom: remove unused patch 2018-05-02 22:53:49 +02:00
Craig Tatlor 6fe1917f78 aports/main: linux-postmarketos-qcom: generate a dt.img for use with qcdt based devices 2018-05-02 22:53:49 +02:00
Oliver Smith 0af81edd44
qt5-qtwebchannel: fix dependency
qt5-websockets has been renamed to qt5-qtwebsockets in Alpine.
2018-05-02 20:23:19 +02:00
Oliver Smith 676d22fd8a
Bump pkgrels of KDE packages after QT upgrade [skip ci]
These are private QT API users (see #978), so they need to be rebuilt:
kwayland, kwin, plasma-framework
2018-05-02 07:47:29 +02:00
Oliver Smith 6c6d0d3e28
Update QT packages to QT 5.10 [skip ci]
Alpine's QT packages are at 5.10 as well, see #1458.
Building binary packages is going to take some time, I'm on it.
2018-05-02 01:42:24 +02:00
Martijn Braam 26a0a018ca
Updated gcc-armhf, gcc-aarch64 and gcc-x86_64 to r8 (#1456) 2018-05-01 15:17:32 +02:00
Marcin Mielniczuk 36c5ce3ca4 Be more verbose about the missing aports directory (#1454)
Show the expected path in the error message.
2018-05-01 00:49:20 +00:00
Oliver Smith 543705262b
Only print 'pmbootstrap log' msg to stdout (#1453)
Prevent the "Run 'pmbootstrap log' for details" message from being
written to the log file that gets read with "pmbootstrap log". Because
when the output of "pmbootstrap log" is pasted somewhere and people
analyze it, the message sounds like this is not the output of
"pmbootstrap log" (like it happened the other day in #postmarketOS).
2018-05-01 00:22:16 +00:00
Daniele Debernardi 827a60cd25 Add install flag to generate separate boot and system images (#1442)
* Usage: pmbootstrap install --split
* Make obvious that export is the next step when split images are created
* Fix note for missing rootfs image on export
  * Change wording from "system image" to "rootfs image"
  * The idea was to show the note only when the rootfs image was not
    generated yet. But this was broken, because the path we checked for
    was missing the chroot path prefix (which is added now).
  * Also don't display the message, when the split image files exist
2018-05-01 00:18:40 +00:00
Oliver Smith 4e665a2190
Recreate device nodes in chroot after shutdown (#1447)
Device nodes in the chroots get created in a tmpfs, so they can be
created even if the filesystem where the chroot resides does not
support device nodes (#1317). In "pmbootstrap shutdown" we umount the
`dev` folder, which means all device nodes that were created inside
this folder are gone. This commit changes the code to actually recreate
the device nodes when using the chroot again.

Details:
* move `pmb.chroot.init.create_device_nodes` to
  `pmb.chroot.mount.crete_device_nodes`
* don't call it in `pmb.chroot.init()` anymore, but in
  `pmb.chroot.mount_dev_tmpfs()`
* Create the `null` device as well (`apk --initdb` also creates it on
  `init`, but we don't call it after `shutdown`)
2018-04-29 22:17:57 +00:00
Oliver Smith f49da75998
Fix binfmt_misc check (#1449)
We require binfmt_misc to run programs of foreign architectures (e.g.
armhf) with QEMU. This is set up by default in most distributions, but
in some (e.g. Alpine, Void) it needs to be configured manually (see
 the troubleshooting page in the wiki).

We have a check in place, which points to that troubleshooting wiki
page. However, the check was flawed, because we assumed the binfmt_misc
folder would not exist.

Thanks to @fxkrait for making the fix and for testing it!
2018-04-28 23:10:54 +00:00
Oliver Smith a1598dc55d
Fix randomized pkg providers for python < 3.6 (#1446) 2018-04-28 21:32:00 +00:00
Nikolay b90a3c1054 Add initial device support for Xiaomi Redmi Note 4 (xiaomi-mido) (#1415)
* Add initial device support for Xiaomi Redmi Note 4 (xiaomi-mido)

* Update APKBUILD

* Update APKBUILD

* Wifi support for Xiaomi Redmi Note 4

* Update APKBUILD

* Download firmware from different repo for Xiaomi Redmi Note 4

* Split up cat line
2018-04-25 11:40:16 +02:00
Oliver Smith 14e234264f
msm-fb-refresher: use initfs hook (#1438)
The `msm-fb-refresher` updates the screen for msm based devices. It is
not needed for all devices, so we had some extra code in the initramfs,
that would only add it when the `deviceinfo_msm_refresher` variable was
set. However, we are able now to add files to initramfs hooks, so this
hack can be removed and simplify everything.

Changes:
* Remove `deviceinfo_msm_refresher` from all deviceinfos
* Add sanity check for it
* Move all `deviceinfo` sanity checks to an extra function
* `postmarketos-mkinitfs`: remove code for msm refresher
* `msm-fb-refresher`: add initramfs hook
2018-04-24 21:09:53 +00:00
Sicelo e6e4682180 Fix issues with lock.sh for i3wm/N900 (#1439) 2018-04-23 21:04:31 +00:00
Oliver Smith d6391791f7
Set all of user's groups in "pmbootstrap install" (#1432)
The postmarketos-base package used to make the user part of the "video"
and "audio" groups. However, this did not work reliably, and we were
adding the "wheel" group in "pmbootstrap install" anyway.

Now all groups get added in "pmbootstrap install", and the names of the
groups have been moved to `pmb.config.install_user_groups`.
2018-04-23 20:52:03 +00:00
Oliver Smith 9c83cdcea1
Display wiki link on dependency error (#1410) 2018-04-23 20:51:06 +00:00
j0ki a9e07049e8 samsung-i9195: WiFi support (#1324)
* firmware-samsung-i9195: new wlan subpackage
* samsung-i9195: add wlan firmware to nonfree-firmware dependencies
* firmware-samsung-i9195: change pkgver to sequential numbering.
this breaks package management. be careful when updating this package.
the old version was `201707.1`, which is higher than `1.1.0`.
2018-04-23 20:43:46 +00:00
Jacob Juric 186ecadfa6 Initial support for Motorola Moto G4 Play (motorola-harpia) (#1437)
Currently, Weston boots with a working touch interface, and USB networking.
2018-04-22 21:12:48 +00:00
Oliver Smith cace84e807
Remove uboot-tools again (upstream is fixed)
Reverts 83633a9237.
2018-04-21 20:39:25 +02:00
Nikk Saan 74fc996b40 Upgrade linux-pmos-stable to 4.16.2 (#1435)
Fix for n900 audio not working
2018-04-21 16:21:35 +00:00
Oliver Smith 1c70c35e87
GitHub templates for issues and PRs (#1434) 2018-04-21 16:17:17 +00:00
Callum A. D. Thomson 813ca0e213 Device samsung i8190 (Galaxy SIII mini) (#1428)
Working: Display, Touch, USB networking, FDE
2018-04-21 14:55:39 +00:00
alive4ever f2957c287c
xiaomi-armani: load wlan module on default runlevel
Previous post install action results in loading wlan module during
sysinit. This is not possible since wlan device is only exposed after
wcnss-wlan service. This also delays ssh startup for approximately 3
minutes.

Loading wlan module should only be done on default runlevel, after
wcnss-wlan service has been started.

Also add a reference fb.modes file, although directfb applications still
doesn't work and cause the framebuffer driver to crash.
2018-04-21 01:17:51 +02:00
Bhushan Shah 74a6a22fec
Properly style the plasma-mobile
This provides some configuration which provides better plasma mobile
experience in terms of scaling, fonts and theme
2018-04-21 00:37:57 +02:00
Bhushan Shah 3fb9a0ff06 Fix wireless on hammerhead after mainline move (#1430)
- Ship the wifi calibration data where upstream driver expects it
- Ship modules-load.conf to load wifi driver automatically

Fixes #1426
2018-04-20 17:21:22 +02:00
Oliver Smith a77a0dcc32
Add envkernel.sh: instant mainlining environment (#1424)
Changes:
* `helpers/envkernel.sh`:
  * installs everything needed for kernel compilation in the native
    chroot
  * mounts the kernel source to `/mnt/linux` inside the chroot
  * creates `/mnt/linux/.output` and chowns it to the `pmos` user, that
    folder will be used for the kernel build output
  * sets up aliases for `make`, `pmbootstrap`, `pmbroot`, `kernelroot`
* new action `pmbootstrap work_migrate`: does the interactive work
  folder migration if necessary, otherwise it doesn't output anything
  * when calling this first, we can safely use all other commands
    non-interactively without showing the output

Benefits:
* Fast setup (especially for people who are new to kernel
  compilation
  * No need to figure out distribution specific package names
    (cross compilers!)
  * No need to do a test build just to verify that the right
    packages are installed
* Less error prone
  * The right dependencies are always installed
  * `ARCH` and `CROSS_COMPILE` variables always get set automatically
    and based on `deviceinfo_arch`
  * If the build environment is broken for some reason, just zap and
    start over
* Easy to reproduce problems

Notes:
* `make menuconfig` works as well
* Sourcing was tested with `zsh`, `bash` and `fish`, it should be easy to
  extend for other shells
2018-04-19 21:27:38 +00:00
Duncan Guthrie 8927ac5c3a New UI: matchbox (#1420)
Add matchbox-window-manager, matchbox-desktop, and their associated
dependencies.
2018-04-19 19:01:02 +00:00
Bhushan Shah f62cf38f74
Remove the linux-lg-hammerhead
The King is dead, long live the King!
2018-04-19 20:22:09 +02:00
Bhushan Shah bbd93abafd
switch the lg-hammerhead to linux-postmarketos-qcom
- Currently just graphics along with weston tested
- Depend on firmware-adreno from device-lg-hammerhead
- Reduce dep of linux-firmware
- Just pull qcom, bracm and adreno firmware
2018-04-19 20:22:09 +02:00
Bhushan Shah c3e1f99148
Modify adreno firmware package
- Remove a300_*.fw as they are in linux-firmware-qcom
- Install to /lib/firmware/qcom
2018-04-19 20:22:09 +02:00
Bhushan Shah 37b80a276a
Add newer version of libdrm (2.4.91) 2018-04-19 20:22:09 +02:00
Bhushan Shah ebaca39807
Add the linux-postmarketos-qcom package
This is based on the linux-postmarketos-mainline, uses the fork of
<https://github.com/postmarketOS/linux>
2018-04-19 20:22:09 +02:00
Oliver Smith b1b5acd79d
Fix test/test_build_package.py
Tested with Travis on an extra branch before pushing to master this
time.
2018-04-19 02:29:48 +02:00
Oliver Smith 86651d6f8e
Fix building packages when git is in chroot
Building packages without git installed caused error messages from git
appearing on the screen, and I patched it upstream (see #1209).
However, this introduced a regression: when git *is* installed and the
aport folder *is not* part of a git repository (like we do it with
pmbootstrap), the build gets aborted now with git complaining that
the folder is not a valid git folder.

But the only case where this happens is, when abuild is trying to
include the git repositories' commit hash for the APKINDEX description.
This pmbootstrap commit hardcodes "postmarketOS" as APKINDEX
description, so it does not fail anymore.
2018-04-19 01:20:41 +02:00
Oliver Smith 83633a9237
Temporarily package uboot-tools as workaround
This package is currently broken in Alpine's binary packages for
the testing repository, and their build bot is stuck with another
package. In turn, this makes our package building for the repo get
stuck, as we can't build device-nokia-n900 (and it stops there).

See also: #1408
2018-04-17 17:31:09 +02:00
Oliver Smith ca20ead505
"pkgrel_bump --auto": Handle subpackages properly (#1388)
`pmbootstrap pkgrel_bump --auto` automatically increases the pkgrel for
packages linking against libraries, which don't exist anymore (because
the soname has been changed). The feature is explained in detail in

The previous implementation did not detect soname breakage, when a
subpackage linked against a certain library, but the main package
did not (e.g. `qt5-qtbase-mysql` and `qt5-qtbase`). This was, because
we iterated over the aports/* to find the packages to be checked.

To fix this, we are iterating over the packages found in the APKINDEX
files instead (of both the locally compiled packages and the downloaded
index from the pmOS mirror).

Details:
* `pmb/helpers/pkgrel_bump.py`:
  * Rewrite `auto_apkindex_package()` to act upon a given parsed
    `aport` and `apk` (from the index) instead of finding the `apk`
    dict by itself (we need it earlier anyway).
  * Rewrite `auto()` to iterate over APKINDEX files instead of aports
    * Skip packages already found, so the `pkgrel` does not get
      increased multiple times when the same package was found in
      multipe index files.
* Put the package name at the beginning of the log messages to make
  them more readable
* testdata: Create a new `testsubpkg` aport, where only the subpackage
  links against `testlib`
* Adjust testing code to test everything with `testsubpkg` as well.

NOTE: This makes the command a bit slower, but we could improve
performance again by smart caching of `pmb.parse.apkindex.depends()`.
This could come in a future PR, the important part here is that the
command is bug-free again with this fix.
2018-04-15 21:34:40 +00:00
Sicelo 4388c6614d Less Firmware Dependencies for N900 (#1414) [skip ci] 2018-04-15 21:33:41 +00:00