Giter Club home page Giter Club logo

Comments (7)

davecheney avatar davecheney commented on June 12, 2024

from xattr.

legrostdg avatar legrostdg commented on June 12, 2024

I'm working in a chroot, which apparently has user_xattr disabled. Would it be possible to add a check to see if user_xattr is disabled, and if so, try this again on the current directory, and if it is disabled too, skip the tests?

from xattr.

legrostdg avatar legrostdg commented on June 12, 2024

I also tried to set TMPDIR to another location, but TMPDIR is used in other places in the package building... That does not seem to interact very well.

from xattr.

davecheney avatar davecheney commented on June 12, 2024

from xattr.

legrostdg avatar legrostdg commented on June 12, 2024

Maybe by checking if the mount points in /proc/mounts contain user_xattr? It may be kind of dirty but I did not find something better...

Something like this with user_xattr instead of acl: https://stackoverflow.com/questions/6291985/how-to-check-wheter-posix-acl-is-enabled-for-a-given-path

Otherwise I guess I'll have to disable the tests when building the package.

from xattr.

kuba-- avatar kuba-- commented on June 12, 2024

@legrostdg - I've sent a PR (#14) adding xattr.Supported function, so please take a look if it works for you. I'm also skipping tests if OS. doesn't support xattr.

from xattr.

kuba-- avatar kuba-- commented on June 12, 2024

PR (#14) merged.

from xattr.

Related Issues (18)

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.