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

html2text: 1.3.2a -> 2.0.0 #112094

Closed
wants to merge 1 commit into from
Closed

Conversation

ajs124
Copy link
Member

@ajs124 ajs124 commented Feb 6, 2021

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@fabaff
Copy link
Member

fabaff commented Feb 6, 2021

Result of nixpkgs-review pr 112094 run on x86_64-linux 1

2 packages built:
  • bookworm
  • html2text

Copy link
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

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

...ew/pr-112094]$ ./results/html2text/bin/html2text -version
This is html2text, version 2.0.0
[...]
...ew/pr-112094]$ ./results/html2text/bin/html2text convert.html 
****** My First Heading ******
My first paragraph.
...ew/pr-112094]$ ./results/html2text/bin/html2text test.html 
Segmentation fault (core dumped)

Looks good to me.

The segmentation fault is caused by the limitations of the tool. Like if you try to convert an actual website instead of content from an e-mail client.

Copy link
Member

@eikek eikek left a comment

Choose a reason for hiding this comment

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

lgtm, thank you

@SuperSandro2000
Copy link
Member

fails on darwin:

builder for '/nix/store/844ar9pw665hxvsrlyswr8dl5l39kaav-html2text-2.0.0.drv' failed with exit code 1; last 9 log lines:
  unpacking sources
  unpacking source archive /nix/store/gah5gc2bdx8qjl8prpxar2ld0fhk8mdq-source
  source root is source
  patching sources
  configuring
  configure flags: --prefix=/nix/store/9adj6vf0i60365cqbqk8gag43fwkl770-html2text-2.0.0
  Checking C++ compiler... use "clang++"
  Checking for socket libraries... no extra libraries required
  Checking for iconv libraries... Error: Could not determine the library for the iconv API.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 112094 run on x86_64-linux 1

2 packages built:
  • bookworm
  • html2text

@ajs124
Copy link
Member Author

ajs124 commented Feb 6, 2021

* [x]  package build (see [#112094 (comment)](https://github.com/NixOS/nixpkgs/pull/112094#issuecomment-774417586))

* [ ]  all depending packages build

* [x]  library tested on x86_64
...ew/pr-112094]$ ./results/html2text/bin/html2text -version
This is html2text, version 2.0.0
[...]
...ew/pr-112094]$ ./results/html2text/bin/html2text convert.html 
****** My First Heading ******
My first paragraph.
...ew/pr-112094]$ ./results/html2text/bin/html2text test.html 
Segmentation fault (core dumped)

Looks good to me.

The segmentation fault is caused by the limitations of the tool. Like if you try to convert an actual website instead of content from an e-mail client.

Does the segmentation fault also happen on the version currently in nixpkgs, for the same input?

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 112094 run on x86_64-darwin 1

1 package failed to build and are new build failure:

@ajs124
Copy link
Member Author

ajs124 commented Feb 21, 2021

I decided to deploy an alternative solution, so I'm going to close this.

@ajs124 ajs124 closed this Feb 21, 2021
@ajs124 ajs124 deleted the upd/html2text branch February 21, 2021 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants