Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinyx: port X11 #82

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

tinyx: port X11 #82

wants to merge 15 commits into from

Conversation

adamgreloch
Copy link
Member

@adamgreloch adamgreloch commented Aug 2, 2024

JIRA: RTOS-861, RTOS-826

Description

Adds ports of:

  • tinycorelinux/tinyx, a streamlined version of xorg-server 1.2.0, with working Xfbdev and keyboard/mouse and X11 forwarding with -tcp -ac
  • some x11-apps: xmessage, ico, xclock, xeyes, twm, xinit, xrdb, xsetroot, xgc
  • feh and necesary libs: freetype, imlib2 (png support only)
  • dwm and st terminal
  • idunham/tinyxlib, a streamlined version of libX11
  • all other necessary common libs not contained in tinyxlib, i.e. libXfont

Having all this, using a dotfile config such as one on adamgreloch/tinyx project branch, one can run:

screenshot

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (refactoring, style fixes, git/CI config, submodule management, no code logic changes)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: ia32-generic-qemu, ia32-generic-pc

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

@adamgreloch adamgreloch changed the base branch from master to Darchiv/NIL-595 August 2, 2024 10:41
@adamgreloch adamgreloch changed the title tinyx: add ports of tinyx/Xfbdev, necessary libs and ico tinyx: port X11 Aug 9, 2024
@adamgreloch adamgreloch marked this pull request as ready for review August 30, 2024 12:52
@adamgreloch adamgreloch marked this pull request as draft August 30, 2024 13:00
@adamgreloch adamgreloch force-pushed the adamgreloch/RTOS-861 branch 4 times, most recently from c07b378 to a451d71 Compare September 6, 2024 10:46
Base automatically changed from Darchiv/NIL-595 to master September 23, 2024 09:14
tinyx/build.sh Show resolved Hide resolved
tinyx/build.sh Show resolved Hide resolved
Copy link

github-actions bot commented Sep 24, 2024

Unit Test Results

7 787 tests  +64   7 069 ✅ +61   41m 53s ⏱️ + 3m 53s
  461 suites +18     718 💤 + 3 
    1 files   ± 0       0 ❌ ± 0 

Results for commit a9c8dc1. ± Comparison against base commit 549e10b.

♻️ This comment has been updated with latest results.

@adamgreloch adamgreloch force-pushed the adamgreloch/RTOS-861 branch 3 times, most recently from 66e8fcb to 5a4dd99 Compare October 2, 2024 11:41
tinyx/build.sh Show resolved Hide resolved
tinyx/build.sh Show resolved Hide resolved
@adamgreloch adamgreloch marked this pull request as ready for review October 2, 2024 11:41
@adamgreloch adamgreloch force-pushed the adamgreloch/RTOS-861 branch 2 times, most recently from bf96377 to f617fbc Compare October 7, 2024 07:52
build.sh Outdated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [shellcheck] reported by reviewdog 🐶
Not following: ./phoenix-rtos-ports/build.subr: openBinaryFile: does not exist (No such file or directory) SC1091

mkdir -p "${PREFIX_PORT_BUILD}"

02-keysym.patch adds key event printing for keyboard testing (a poor
man's xev)

JIRA: RTOS-826, RTOS-863
These patches require /dev/kbd and /dev/mouse PS/2 vdevs to be available

JIRA: RTOS-826, RTOS-864
JIRA: RTOS-826, RTOS-865
JIRA: RTOS-826, RTOS-889
JIRA: RTOS-826, RTOS-865, RTOS-889
Pressing ^C in X session is now captured by client apps instead of
killing the X server. Pressing ^C in st sends SIGINT to the process
inside pty instead of doing nothing.

JIRA: RTOS-826, RTOS-861, RTOS-889
Use the TTYSETMODE ioctl to stop the fbcon from drawing to the
same framebuffer xserver is using

JIRA: RTOS-906, RTOS-925
JIRA: RTOS-889
Adds a port of feh image viewer with png support from imlib2.
The support is hardcoded into imlib2 loaders.c as a workaround for the
lack of dynamic lib support (dlopen(), dlsym() etc.)

JIRA: RTOS-955
}


build_freetype() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [shellcheck] reported by reviewdog 🐶
build_freetype references arguments, but none are ever passed. SC2120

b_port_apply_patches "${PREFIX_PORT_SRC}" "${appname}/${version}"

make -C "${PREFIX_PORT_SRC}" PREFIX="${PREFIX_PORT_BUILD}" PLATFORM="unix" \
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [shellcheck] reported by reviewdog 🐶
Double quote to prevent globbing and word splitting. SC2086

b_port_apply_patches "${PREFIX_PORT_SRC}" "${appname}/${version}"

make -C "${PREFIX_PORT_SRC}" PREFIX="${PREFIX_PORT_BUILD}" PLATFORM="unix" \
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [shellcheck] reported by reviewdog 🐶
The surrounding quotes actually unquote this. Remove or escape them. SC2027

b_port_apply_patches "${PREFIX_PORT_SRC}" "${appname}/${version}"

make -C "${PREFIX_PORT_SRC}" PREFIX="${PREFIX_PORT_BUILD}" PLATFORM="unix" \
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [shellcheck] reported by reviewdog 🐶
Double quote to prevent globbing and word splitting. SC2086

b_port_apply_patches "${PREFIX_PORT_SRC}" "${appname}/${version}"

make -C "${PREFIX_PORT_SRC}" PREFIX="${PREFIX_PORT_BUILD}" PLATFORM="unix" \
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [shellcheck] reported by reviewdog 🐶
The surrounding quotes actually unquote this. Remove or escape them. SC2027

make -C "${PREFIX_PORT_SRC}" PREFIX="${PREFIX_PORT_BUILD}" PLATFORM="unix" \
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \
--libdir="${PREFIX_A}" --includedir="${PREFIX_H}" \
--prefix="${PREFIX_PORT_INSTALL}" --datarootdir="${PREFIX_A}" "${@}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [shellcheck] reported by reviewdog 🐶
Double quote to prevent globbing and word splitting. SC2086

make -C "${PREFIX_PORT_SRC}" PREFIX="${PREFIX_PORT_BUILD}" PLATFORM="unix" \
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \
--libdir="${PREFIX_A}" --includedir="${PREFIX_H}" \
--prefix="${PREFIX_PORT_INSTALL}" --datarootdir="${PREFIX_A}" "${@}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [shellcheck] reported by reviewdog 🐶
Double quote array expansions to avoid re-splitting elements. SC2068

make -C "${PREFIX_PORT_SRC}" PREFIX="${PREFIX_PORT_BUILD}" PLATFORM="unix" \
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \
--libdir="${PREFIX_A}" --includedir="${PREFIX_H}" \
--prefix="${PREFIX_PORT_INSTALL}" --datarootdir="${PREFIX_A}" "${@}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [shellcheck] reported by reviewdog 🐶
Argument mixes string and array. Use * or separate argument. SC2145

make -C "${PREFIX_PORT_SRC}" PREFIX="${PREFIX_PORT_BUILD}" PLATFORM="unix" \
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \
--libdir="${PREFIX_A}" --includedir="${PREFIX_H}" \
--prefix="${PREFIX_PORT_INSTALL}" --datarootdir="${PREFIX_A}" "${@}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [shellcheck] reported by reviewdog 🐶
The surrounding quotes actually unquote this. Remove or escape them. SC2027


# Image viewer (requires libpng port)

build_freetype

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [shellcheck] reported by reviewdog 🐶
Use build_freetype "$@" if function's $1 should mean script's $1. SC2119

Comment on lines +354 to +356
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \
--libdir="${PREFIX_A}" --includedir="${PREFIX_H}" \
--prefix="${PREFIX_PORT_INSTALL}" --datarootdir="${PREFIX_A}" "${@}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shellcheck (suggestion)] reported by reviewdog 🐶

Suggested change
CFG="--host="${HOST%phoenix}linux" --bindir="${PREFIX_PROG}" --sbindir="${PREFIX_PROG}" \
--libdir="${PREFIX_A}" --includedir="${PREFIX_H}" \
--prefix="${PREFIX_PORT_INSTALL}" --datarootdir="${PREFIX_A}" "${@}" \
CFG="--host=""${HOST%phoenix}"linux" --bindir=""${PREFIX_PROG}"" --sbindir=""${PREFIX_PROG}"" \
--libdir=""${PREFIX_A}"" --includedir=""${PREFIX_H}"" \
--prefix=""${PREFIX_PORT_INSTALL}"" --datarootdir=""${PREFIX_A}"" "${@}" \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant