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

guymager: init at 0.8.13 #278529

Merged
merged 2 commits into from
Nov 13, 2024
Merged

guymager: init at 0.8.13 #278529

merged 2 commits into from
Nov 13, 2024

Conversation

D3vil0p3r
Copy link
Member

@D3vil0p3r D3vil0p3r commented Jan 3, 2024

To be checked in #81418

Depends on:

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Jan 3, 2024
@D3vil0p3r D3vil0p3r mentioned this pull request Jan 21, 2024
13 tasks
@D3vil0p3r D3vil0p3r marked this pull request as ready for review January 29, 2024 13:49
@D3vil0p3r D3vil0p3r marked this pull request as draft January 29, 2024 13:49
@D3vil0p3r D3vil0p3r marked this pull request as ready for review February 11, 2024 01:51
@D3vil0p3r D3vil0p3r marked this pull request as draft February 11, 2024 02:08
pkgs/by-name/gu/guymager/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/gu/guymager/package.nix Outdated Show resolved Hide resolved
@D3vil0p3r
Copy link
Member Author

@ofborg eval

@D3vil0p3r D3vil0p3r marked this pull request as draft February 21, 2024 14:08
@D3vil0p3r D3vil0p3r marked this pull request as ready for review February 21, 2024 14:17
@D3vil0p3r D3vil0p3r requested a review from a user February 21, 2024 14:17
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Feb 21, 2024
Copy link
Member

@emilytrau emilytrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Needs split into a commit for each package
  • Needs rebase

pkgs/by-name/gu/guymager/package.nix Outdated Show resolved Hide resolved
@wegank wegank removed the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Sep 8, 2024
Copy link
Member

@kirillrdy kirillrdy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 278529


x86_64-linux

✅ 2 packages built:
  • guymager
  • libguytools

@kirillrdy
Copy link
Member

will merge in 24 hours unless someone comments more

mainProgram = "libguytools";
homepage = "https://libguytools.sourceforge.io";
maintainers = with lib.maintainers; [ d3vil0p3r ];
platforms = lib.platforms.unix;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have an endpoint where to actually test it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build failure is just due to GHC not being present in the cache. (and it doesn't build in the timeout for PRs)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can we proceed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either wait until GHC is built successfully, merge anyway or find someone with a darwin builder.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like its broken on darwin anyway

error: builder for '/nix/store/sn4lpclhdid87q30g0dlyvbwjkr0a3ns-libguytools-2.1.0.drv' failed with exit code 2;
       last 25 log lines:
       >       (*ToolSignalLocal.pLogFn)(Error, pthread_self(), pFileName, pFunctionName, LineNr, pFormat, VaList);
       >                                        ^~~~~~~~~~~~~~
       > toolsignal.cpp:271:20: error: incompatible pointer to integer conversion assigning to 'unsigned long long' from 'pthread_t _Nonnull' (aka '_opaque_pthread_t *')
       >       *pThreadId = pthread_self();
       >                    ^~~~~~~~~~~~~~
       > 2 errors generated.
       > make: *** [Makefile:421: toolsignal.o] Error 1
       > make: *** Waiting for unfinished jobs....
       > toolsysinfo.cpp:40:10: fatal error: 'linux/if.h' file not found
       > #include <linux/if.h>
       >          ^~~~~~~~~~~~
       > toollog.cpp:116:87: error: cast from pointer to smaller type 'unsigned int' loses information
       >       wr += (size_t) snprintf (&LogLineHeader[wr], sizeof(LogLineHeader)-wr, "%08X ", (unsigned int)pthread_self());
       >                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
       > toollog.cpp:130:18: error: use of undeclared identifier 'fopen64'; did you mean 'fopen'?
       >          pFile = fopen64 (pLogFilename, "a");
       >                  ^~~~~~~
       >                  fopen
       > /nix/store/lq1j6jzsd0av6cm3yd9fxkjbw1mj2991-apple-sdk-10.14.6/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:153:7: note: 'fopen' declared here
       > FILE    *fopen(const char * __restrict __filename, const char * __restrict __mode) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fopen));
       >          ^
       > 1 error generated.
       > make: *** [Makefile:415: toolsysinfo.o] Error 1
       > 2 errors generated.
       > make: *** [Makefile:404: toollog.o] Error 1
       For full logs, run 'nix-store -l /nix/store/sn4lpclhdid87q30g0dlyvbwjkr0a3ns-libguytools-2.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/cpccgqf4yzaihq4v0bmmc98icdalyr55-review-shell.drv' failed to build

Link to currently reviewing PR:
https://github.com/NixOS/nixpkgs/pull/278529

--------- Report for 'x86_64-darwin' ---------
1 package marked as broken and skipped:
guymager

1 package failed to build:
libguytools

maybe easier to just mark is as broken on darwin, file an issue upstream

Copy link
Member Author

@D3vil0p3r D3vil0p3r Nov 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue reported to the guymager developer by email

Copy link
Member Author

@D3vil0p3r D3vil0p3r Nov 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Guymager maintainer, here the statement:
'''
Compiling Guymager will probably lead to a many errors, as the hardware recognition works completely different on the Linux and the Darwin kernels. Guymager includes functions for detecting block devices on Linux, but not on Darwin. The same is true for Windows: There's no support for it in Guymager, i.e. hardware recognition won't work.
'''
I changed platforms.unix to platforms.linux.

@FliegendeWurst
Copy link
Member

@ofborg build libguytools

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 8, 2024
@wegank wegank removed the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 11, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin and removed 10.rebuild-darwin: 1-10 labels Nov 12, 2024
@kirillrdy
Copy link
Member

@D3vil0p3r sorry, few last things, I've noticed that commit order is not right, guymager: init at 0.8.13 must be after libguytools: init at 2.1.0 since you can't build guymager without libguystools, but also even at 4b9b542

nix-build -A guymager
error:
       … while calling the 'throw' builtin
         at /home/kirillvr/nixpkgs/lib/customisation.nix:206:13:
          205|        then makeOverridable f allArgs
          206|        else throw "lib.customisation.callPackageWith: ${error}";
             |             ^
          207|

       error: lib.customisation.callPackageWith: Function called without required argument "libbfio" at /home/kirillvr/nixpkgs/pkgs/by-name/gu/guymager/package.nix:10, did you mean "libaio", "libbfd" or "libcdio"?

@D3vil0p3r
Copy link
Member Author

D3vil0p3r commented Nov 12, 2024

@kirillrdy can you check now please?

PS: not clear what about the error on your last logs. libbfio should be recognized...

@FliegendeWurst
Copy link
Member

You need to rebase on master, the libbfio package is not included in your branch.

@D3vil0p3r
Copy link
Member Author

You need to rebase on master, the libbfio package is not included in your branch.

Rebased to master. Let me know if it's ok.

@kirillrdy
Copy link
Member

@D3vil0p3r thank you for your patience!

and thank @FliegendeWurst for a review

@kirillrdy kirillrdy merged commit f5ea506 into NixOS:master Nov 13, 2024
27 of 28 checks passed
Copy link
Contributor

Successfully created backport PR for release-24.05:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes backport release-24.05 Backport PR automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants