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

UNIX::Daemonize #537

Open
AlexDaniel opened this issue Feb 8, 2019 · 1 comment
Open

UNIX::Daemonize #537

AlexDaniel opened this issue Feb 8, 2019 · 1 comment

Comments

@AlexDaniel
Copy link
Member

Module UNIX::Daemonize cannot be installed (AlwaysFail), perhaps it has some failing tests.

  • Tickets are opened/closed in this repo automatically (though not immediately).
  • If you can install the module without any problems, add works for me label, leave a comment saying that it works for you and mention any details that you feel are important.
  • If it needs a native library, put native dependency label, describe what you did to install it and ensure that same instructions are present in the README file of the module (otherwise submit a pull request). Also try to update this wiki page.
  • If the module is broken, try to fix it and send a PR. Add PR sent label.
  • If there is a problem in one of the dependencies, add failing dependency label and write a comment explaining the situation. Feel free to work on the corresponding ticket for the failing dependency.
  • It is a good idea to assign yourself to this ticket if you're working on it (to make sure two or more people are not working on the same ticket at the same time).
  • Once you are done, search for a next ticket.

If you can't self-assign yourself or attach a label, please let us know on #perl6 channel on freenode or just leave a comment here. We will try to give you privileges as fast as possible.

Output:

===> Searching for: UNIX::Daemonize
===> Found: UNIX::Daemonize:ver<0.0.4> [via Zef::Repository::Ecosystems<p6c>]
===> Fetching [OK]: UNIX::Daemonize:ver<0.0.4> to /home/alex/Blin/data/zef-data/tmp/1549582925.11317.2485/p6-UNIX-Daemonize.git
===> Extraction [OK]: UNIX::Daemonize to /home/alex/Blin/data/zef-data/store/p6-UNIX-Daemonize.git
===> Testing: UNIX::Daemonize:ver<0.0.4>
t/01-lockfiles.t ............................. ok
    # Failed test 'Lockfile should be removed'
    # at t/02-daemon-creates-pidfile-and-cleans-up.t line 19
    # Looks like you failed 1 test of 3
# Failed test 'Pidlock files actually working for daemon and are removed afterwards'
# at t/02-daemon-creates-pidfile-and-cleans-up.t line 5
# Looks like you failed 1 test of 1
t/02-daemon-creates-pidfile-and-cleans-up.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 
t/03-repeated-daemon-doesnt-finish.t ......... ok
Valid lockfile exists
  in sub lockfile-create at /home/alex/Blin/data/zef-data/store/p6-UNIX-Daemonize.git/044a39528a21da78010f26f49d39b24aaf233450/lib/UNIX/Daemonize.pm6 (UNIX::Daemonize) line 164
  in sub daemonize at /home/alex/Blin/data/zef-data/store/p6-UNIX-Daemonize.git/044a39528a21da78010f26f49d39b24aaf233450/lib/UNIX/Daemonize.pm6 (UNIX::Daemonize) line 35
  in block <unit> at t/04-creating-second-daemon.t line 9

    # Failed test at t/04-creating-second-daemon.t line 13
    # Looks like you failed 1 test of 2
# Failed test 'Won't create second daemon'
# at t/04-creating-second-daemon.t line 5
# Looks like you failed 1 test of 1
t/04-creating-second-daemon.t ................ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 
    # Trying to run command
    # Command run
    # Failed test at t/author/daemonize-self.t line 24
    # Failed test at t/author/daemonize-self.t line 26
    # Looks like you failed 2 tests of 4
# Failed test 'Daemon runs and exits, cleans up lockfile'
# at t/author/daemonize-self.t line 17
# Looks like you failed 1 test of 1
t/author/daemonize-self.t .................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Test Summary Report
-------------------
t/02-daemon-creates-pidfile-and-cleans-up.t (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
t/04-creating-second-daemon.t              (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
t/author/daemonize-self.t                  (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=5, Tests=5, 28 wallclock secs ( 0.03 usr  0.01 sys +  9.80 cusr  0.75 csys = 10.59 CPU)
Result: FAIL
===> Testing [FAIL]: UNIX::Daemonize:ver<0.0.4>
Failed to get passing tests, but continuing with --force-test
===> Installing: UNIX::Daemonize:ver<0.0.4>
===> Install [OK] for UNIX::Daemonize:ver<0.0.4>

1 bin/ script [daemonize] installed to:
/home/alex/Blin/installed/UNIX::Daemonize_0.0.4/bin

Ping @hipek8

Previous ticket: #25

@Kaiepi
Copy link

Kaiepi commented Feb 8, 2019

This fails because cglobal can't find errno if libc's library isn't libc.dylib on Mac or libc.so.6 on any other OS. I can't think of a proper fix for this since OpenBSD keeps changing the libc version between releases

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