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

Building xrdp from AUR fails mentioning selinux #293

Closed
lupo-on-github opened this issue Feb 25, 2022 · 7 comments
Closed

Building xrdp from AUR fails mentioning selinux #293

lupo-on-github opened this issue Feb 25, 2022 · 7 comments

Comments

@lupo-on-github
Copy link

Building xrdp from AUR fails with
(German localization)

==> Beginne prepare()...  
patching file instfiles/xrdp.service.in
patch: setting attribute security.selinux for security.selinux: Permission denied

Any suggestions?

(Are these lines sufficient to evaluate the problem?)

@github-actions
Copy link

Thank you for contributing to make this project better😎 Keep up and follow to solve this issue.

@SDRausty
Copy link
Owner

Any suggestions?

Try editing the PKGBUILD file, and then run makepkg -firs --noconfirm.

security.selinux: Permission denied

This topic is very extensive. See whether reaching out through the community channels and github discussions helps in resolving this build issue if you cannot solve it easily; Good luck!

@SDRausty
Copy link
Owner

SDRausty commented Mar 17, 2022

@lupo-on-github I have taken a closer look at this issue and opened a new issue patch: setting attribute security.selinux for security.selinux: Permission denied #220 regarding this issue here:

patch: setting attribute security.selinux for security.selinux: Permission denied

git clone https://aur.archlinux.org/fakeroot-tcp.git

Clone in native Termux first, then open a new PRoot session in the cloned directory and continue in the original native Termux session and in the new PRoot session. Use these commands in the PRoot session:

cd fakeroot-tcp
makepkg -firs --noconfirm

After waiting for the makepkg command to err, apply the patches in both open sessions, the native Termux session and the PRoot session.

$grep patch PKGBUILD
        fakeroot-1.25.3-glibc-2.33-fix-1.patch
        fakeroot-1.25.3-glibc-2.33-fix-2.patch
        fakeroot-1.25.3-glibc-2.33-fix-3.patch)
  patch -p1 -i $srcdir/fakeroot-1.25.3-glibc-2.33-fix-1.patch
  patch -p1 -i $srcdir/fakeroot-1.25.3-glibc-2.33-fix-2.patch
  patch -p1 -i $srcdir/fakeroot-1.25.3-glibc-2.33-fix-3.patch

The expected behavior for the patch command to work in native Termux and in Termux PRoot correctly.

Additional information

The patch command used to work correctly in both native Termux and in Termux PRoot. How was it broken? Can I have some links to the code how the patch command was cracked in the Termux PRoot environment please?

Please feel free to join the new discussion. The obvious workaround is NOT to use the patch command in the meantime in Termux PRoot for those of us who do not know how to fix this not so newly arisen error.

@SDRausty
Copy link
Owner

SDRausty commented Mar 17, 2022

An open disscussion concerning this topic is upstream at patch: setting attribute security.selinux for security.selinux: Permission denied #182.

@SDRausty
Copy link
Owner

SDRausty commented Mar 17, 2022

Thank you for opening this issue @lupo-on-github; While I was attempting to fix makeaurhelpers with commands:

cd /usr/local/bin/

for i in $(ls --color=never makeaur*) ; do $i ; done this issue began ringing in my mind as I was studying the output from the makeaur* commands. Hopefully a resolution for the patch command in Termux PRoot environment will be found soon.

@SDRausty
Copy link
Owner

resolution for the patch command

Fortunately, the Termux patch command works in TermuxArch. Please link the patch command into the /usr/local/bin directory, and the packages that you are trying to make should build as expected.

@SDRausty
Copy link
Owner

SDRausty commented Mar 17, 2022

Any suggestions?

This command ln -s /system/bin/patch /data/data/com.termux/files/home/arch/usr/local/bin/patch run in a native Termux shell might resolve a patch: setting attribute security.selinux for security.selinux: Permission denied error. This workaround seems to work with QEMU architecture emulation too. Issues “Building xrdp from AUR fails mentioning selinux #293” at #293 and “patch: setting attribute security.selinux for security.selinux: Permission denied #182” at termux/proot#182 have more information about this error.

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

No branches or pull requests

2 participants