Giter Site home page Giter Site logo

Comments (7)

SDRausty avatar SDRausty commented on June 7, 2024 1

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.

from termuxarch.

github-actions avatar github-actions commented on June 7, 2024

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

from termuxarch.

SDRausty avatar SDRausty commented on June 7, 2024

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!

from termuxarch.

SDRausty avatar SDRausty commented on June 7, 2024

@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.

from termuxarch.

SDRausty avatar SDRausty commented on June 7, 2024

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

from termuxarch.

SDRausty avatar SDRausty commented on June 7, 2024

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.

from termuxarch.

SDRausty avatar SDRausty commented on June 7, 2024

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.

from termuxarch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.