Git Product home page Git Product logo

Comments (13)

stefan-langenmaier avatar stefan-langenmaier commented on June 20, 2024

Thanks for your report!
Yes it looks like a sandbox violation. I will investigate why the ebuild is not working.

Btw, you need to use FEATURES="-usersandbox -sandbox" to deactivate the sandboxing completely, but the ebuild will still error out.

from brother-overlay.

madImpulse avatar madImpulse commented on June 20, 2024

thanks for the hint, with -usersandbox I get less errors. I think now the remaining problem is that the source of the symlink is not correct:

* The specific snippet of code:
 *       ( ln -s "${D}/usr/lib64/cups/filter/brlpdwrapperdcp9055cdn" "${D}/usr/libexec/cups/filter/brlpdwrapperdcp9055cdn" ) || die

I had to use /usr/local/Brother/Printer/dcp9055cdn/lpd/filterdcp9055cdn. I don't remember, wether this folder was created by the ebuild or by me unpacking the rpm.

from brother-overlay.

stefan-langenmaier avatar stefan-langenmaier commented on June 20, 2024

I pushed a new ebuild. Disabling the sandboxes should no longer be necessary.

Maybe you can leave some feedback if it's working or not as I don't have access to this model.

from brother-overlay.

stefan-langenmaier avatar stefan-langenmaier commented on June 20, 2024

No feedback after a week. Closing.

from brother-overlay.

madImpulse avatar madImpulse commented on June 20, 2024

Been away for a few days. Thanks a lot, the issue seems to be resolved.
I emerged the -r1 version succesfully. I had the move or delete the existing /usr/local/Brother folder, but the it it was all good. test rpint succeeded. thanks a lot for the prompt support. Also it did not install a new printer when emerging the ebuild.

from brother-overlay.

madImpulse avatar madImpulse commented on June 20, 2024

I think I was a little too quick. I checked on a second machine: it is still necessary to make the symlink in usr/libexec/cups/filter:
ln -s /usr/local/Brother/Printer/dcp9055cdn/lpd/filterdcp9055cdn brlpdwrapperdcp9055cdn

from brother-overlay.

stefan-langenmaier avatar stefan-langenmaier commented on June 20, 2024

I'm not sure that I understood the error correctly, but I changed the filter in the ebuild.
Again, I would appreciate your feedback as I cannot test it.

from brother-overlay.

madImpulse avatar madImpulse commented on June 20, 2024

I hope my approach is not too quick and dirty, but it works for me like this if I change the src_install in the ebuild:

src_install() {
    MODEL="dcp9055cdn"
    mkdir -p "${D}"usr/libexec/cups/filter || die
    mkdir -p "${D}"usr/share/cups/model/Brother || die
    cp -r usr "${D}" || die
    ( ln -s "${D}"usr/local/Brother/Printer/${MODEL}/lpd/filterdcp9055cdn "${D}"usr/libexec/cups/filter/brlpdwrapperdcp9055cdn ) || die

    ( ln -s "${D}"usr/local/Brother/Printer/${MODEL}/cupswrapper/${MODEL}.ppd "${D}"usr/share/cups/model/Brother/brother_${MODEL}_printer_en.ppd ) || die
}

To test I first deleted the directory /usr/local/Brother and the file /usr/libexec/cups/filter/brlpdwrapperdcp9055cdn

After emerging the modified ebuild. The printer still worked. It is not clear to me what the sed part is for in the original ebuild. If I'm lucky I manage to commit the modified ebuild...

from brother-overlay.

madImpulse avatar madImpulse commented on June 20, 2024

there was a typo in the sed command. created pull request #38

from brother-overlay.

stefan-langenmaier avatar stefan-langenmaier commented on June 20, 2024

Hi and thanks for the work, I'll try to look into till Wednesday. Sorry I'm quite busy at the moment.

from brother-overlay.

madImpulse avatar madImpulse commented on June 20, 2024

from brother-overlay.

stefan-langenmaier avatar stefan-langenmaier commented on June 20, 2024

from brother-overlay.

madImpulse avatar madImpulse commented on June 20, 2024

thanks. Now it works and I switched back to this repository.

from brother-overlay.

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.