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

iputils: 20180629 -> 20190324 #58224

Closed
wants to merge 1 commit into from

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Mar 24, 2019

Notes
  • move to meson for build (required)
  • opt-in for traceroute6, rarpd
  • pg3/ipg was dropped by upstream
  • build manpages, required kludging xmlns:db -> xmlns (?!)
    in order to have reasonable results.
    Feedback on this requested, it may be wrong way to fix this
    and if it's right with more confidence than I have about it
    the issue/change should be sent upstream.
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nix-review --run "nix-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Tested with x86_64-{glibc,musl} as well as aarch64-cross(-glibc).

* move to meson for build (required)
* opt-in for traceroute6, rarpd
* pg3/ipg was dropped by upstream
* build manpages, required kludging xmlns:db -> xmlns (?!)
  in order to have reasonable results.
  Feedback on this requested, it may be wrong way to fix this
  and if it's right with more confidence than I have about it
  the issue/change should be sent upstream.
@dtzWill
Copy link
Member Author

dtzWill commented Mar 24, 2019

Oops, #58215. Will close once test that PR addresses the manpage problem.

# managed to adds spaces before the command char ('.') resulting
# in raw groff commands in the output :/.
''
sed -i 's,xmlns:db,xmlns,' doc/*xml
Copy link
Contributor

Choose a reason for hiding this comment

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

You probably need docbook_xsl_ns

Copy link
Member Author

Choose a reason for hiding this comment

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

Well I thought so too-- docbook5_xsl is the same as docbook_xsl_ns-- but @primeos's PR uses the docbook_xsl and apparently that has none of the problems I was encountering. :/.

Thanks for taking a look, though!

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it looks like they do use the default namespace, not the explicit db one:

https://github.com/iputils/iputils/blob/991916bf6ee6469285621e47038ee7aeab6ce9e8/doc/rarpd.xml#L1

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

The only reason it works with non-namespaced docbook_xsl is because there is no namespace used in the document. Docbook 5 documents should use a namespace and when that is fixed, they will need docbook_xsl_ns.

@dtzWill
Copy link
Member Author

dtzWill commented Mar 24, 2019

D'oh, okay well closing in favor of that PR. :3.

@dtzWill dtzWill closed this Mar 24, 2019
--replace "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" "${docbook_xml_dtd_44}/xml/dtd/docbook/docbookx.dtd"
for f in doc/{custom-man.xsl,meson.build}; do
substituteInPlace $f \
--replace "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" "${docbook5_xsl}/share/xml/docbook-xsl-ns/manpages/docbook.xsl"
Copy link
Contributor

Choose a reason for hiding this comment

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

Also this should be picked up by libxml/libxslt from XML catalogs, see for example #30189

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, good to know. Very nice!

@dtzWill dtzWill mentioned this pull request Mar 24, 2019
10 tasks
From b93f74990440a9fdde0238a262839c4f87b4a449 Mon Sep 17 00:00:00 2001
From: Will Dietz <w@wdtz.org>
Date: Sun, 24 Mar 2019 13:40:16 -0500
Subject: [PATCH] tracepath: include fix
Copy link
Contributor

Choose a reason for hiding this comment

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

wat?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixes includes so this builds with musl, they regressed on this (looks like style/auto-format tool is responsible?) -- on the other issue I link to the upstream issue I opened about this.

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

Successfully merging this pull request may close these issues.

None yet

2 participants