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

Two compilation fixes for FreeBSD #1173

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Two compilation fixes for FreeBSD #1173

merged 2 commits into from
Jan 8, 2025

Conversation

OlCe2
Copy link
Contributor

@OlCe2 OlCe2 commented Jan 7, 2025

Note that in both cases we are not special-casing FreeBSD, as the first case is in fact Linux-specific, and the second case is just following what POSIX prescribes (the change works on Linux too).

@OlCe2
Copy link
Contributor Author

OlCe2 commented Jan 7, 2025

Well, wait, it seems that, although it works, the first commit is logically incorrect...

@kelson42 kelson42 added this to the 14.1.0 milestone Jan 7, 2025
@kelson42
Copy link
Collaborator

kelson42 commented Jan 7, 2025

@OlCe2 Thank you. Please ensure commits make sense and are coherently organised. We will review the PR. Unfortunately, we don't have a CI for FreeBSD so it is difficult to keep everything compiling fine.

@OlCe2
Copy link
Contributor Author

OlCe2 commented Jan 7, 2025

Yes, sorry, I figured out after pushing the PR that the first commit is not really correct (I mean, it would be better than the current situation, but still logically incorrect for reasons I will explain later). Working on an alternative, will update this PR when done.

@OlCe2 OlCe2 force-pushed the main branch 2 times, most recently from d991c2c to a66fa82 Compare January 8, 2025 10:59
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.47%. Comparing base (27e7840) to head (a66fa82).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1173   +/-   ##
=======================================
  Coverage   41.47%   41.47%           
=======================================
  Files          59       59           
  Lines        4272     4272           
  Branches     2336     2336           
=======================================
  Hits         1772     1772           
+ Misses       1002      999    -3     
- Partials     1498     1501    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@OlCe2
Copy link
Contributor Author

OlCe2 commented Jan 8, 2025

Ok, this is ready to be reviewed.

Copy link
Collaborator

@veloman-yunkan veloman-yunkan left a comment

Choose a reason for hiding this comment

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

LGTM, but let's improve it a little.

meson.build Outdated Show resolved Hide resolved
OlCe2 added 2 commits January 8, 2025 15:07
See the added comments for more details.

While here, initialize 'extra_deps' once and for all at the top and append to it
when needed.
Header <netinet/in.h> should be included (as per POSIX) to get a definition for
'struct sockaddr_in'.  Fixes commit "add ipv6 support to HTTP daemon".
Copy link
Collaborator

@veloman-yunkan veloman-yunkan left a comment

Choose a reason for hiding this comment

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

Perfect!

@kelson42 kelson42 merged commit 2e3eae5 into kiwix:main Jan 8, 2025
13 checks passed
@OlCe2
Copy link
Contributor Author

OlCe2 commented Jan 8, 2025

Thanks!

@OlCe2
Copy link
Contributor Author

OlCe2 commented Jan 8, 2025

I hope to be able to dedicate a bit of time to see how to set up a FreeBSD CI in your project in the future, that would help avoiding breakage (although we do workaround it in our ports tree with custom patches).

freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request Jan 10, 2025
Now that devel/libkiwix13 has been created and www/kiwix-tools changed
to depend on it, fixing the latter's build and avoiding a bump of
PORTEPOCH here, we can reapply the update.

This commit is different than the initial update's one, as local patches
here match what was upstreamed in the meantime (see
kiwix/libkiwix#1173).

Selected list of changes:
- Support of IPv6
- Better public IP configuration/detection
- Fix API errors in catalog searches if Xapian keyword in used
- Improve welcome page download buttons
- Better handling of external (non-HTTP) links
- Fix book illustration size on welcome page to 48x48 pixels
- Remove "Multiple Languages" in language filter
- Stop transforming tags casing
- ZIM file size consistently advertised in MiB
- Add accesskeys
- Add OpenSearch to head of pages

See also:
https://github.com/kiwix/libkiwix/releases/tag/14.0.0

This is a maintainer update ([email protected]).

PR:             282559
Reported by:    [email protected]
Reviewed by:    jrm
Fixes:          dafb538 ("devel/libkiwix: Update to 14.0.0")
MFH:            2025Q1
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D48397
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request Jan 10, 2025
Now that devel/libkiwix13 has been created and www/kiwix-tools changed
to depend on it, fixing the latter's build and avoiding a bump of
PORTEPOCH here, we can reapply the update.

This commit is different than the initial update's one, as local patches
here match what was upstreamed in the meantime (see
kiwix/libkiwix#1173).

Selected list of changes:
- Support of IPv6
- Better public IP configuration/detection
- Fix API errors in catalog searches if Xapian keyword in used
- Improve welcome page download buttons
- Better handling of external (non-HTTP) links
- Fix book illustration size on welcome page to 48x48 pixels
- Remove "Multiple Languages" in language filter
- Stop transforming tags casing
- ZIM file size consistently advertised in MiB
- Add accesskeys
- Add OpenSearch to head of pages

See also:
https://github.com/kiwix/libkiwix/releases/tag/14.0.0

This is a maintainer update ([email protected]).

PR:             282559
Reported by:    [email protected]
Reviewed by:    jrm
Fixes:          dafb538 ("devel/libkiwix: Update to 14.0.0")
MFH:            2025Q1
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D48397

(cherry picked from commit 0009322)
nanorkyo pushed a commit to nanorkyo/freebsd-ports that referenced this pull request Jan 18, 2025
Now that devel/libkiwix13 has been created and www/kiwix-tools changed
to depend on it, fixing the latter's build and avoiding a bump of
PORTEPOCH here, we can reapply the update.

This commit is different than the initial update's one, as local patches
here match what was upstreamed in the meantime (see
kiwix/libkiwix#1173).

Selected list of changes:
- Support of IPv6
- Better public IP configuration/detection
- Fix API errors in catalog searches if Xapian keyword in used
- Improve welcome page download buttons
- Better handling of external (non-HTTP) links
- Fix book illustration size on welcome page to 48x48 pixels
- Remove "Multiple Languages" in language filter
- Stop transforming tags casing
- ZIM file size consistently advertised in MiB
- Add accesskeys
- Add OpenSearch to head of pages

See also:
https://github.com/kiwix/libkiwix/releases/tag/14.0.0

This is a maintainer update ([email protected]).

PR:             282559
Reported by:    [email protected]
Reviewed by:    jrm
Fixes:          dafb538 ("devel/libkiwix: Update to 14.0.0")
MFH:            2025Q1
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D48397
nanorkyo pushed a commit to nanorkyo/freebsd-ports that referenced this pull request Jan 18, 2025
Now that devel/libkiwix13 has been created and www/kiwix-tools changed
to depend on it, fixing the latter's build and avoiding a bump of
PORTEPOCH here, we can reapply the update.

This commit is different than the initial update's one, as local patches
here match what was upstreamed in the meantime (see
kiwix/libkiwix#1173).

Selected list of changes:
- Support of IPv6
- Better public IP configuration/detection
- Fix API errors in catalog searches if Xapian keyword in used
- Improve welcome page download buttons
- Better handling of external (non-HTTP) links
- Fix book illustration size on welcome page to 48x48 pixels
- Remove "Multiple Languages" in language filter
- Stop transforming tags casing
- ZIM file size consistently advertised in MiB
- Add accesskeys
- Add OpenSearch to head of pages

See also:
https://github.com/kiwix/libkiwix/releases/tag/14.0.0

This is a maintainer update ([email protected]).

PR:             282559
Reported by:    [email protected]
Reviewed by:    jrm
Fixes:          dafb538 ("devel/libkiwix: Update to 14.0.0")
MFH:            2025Q1
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D48397
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.

3 participants