Skip to content

ncurses: install *.pc files (pkg-config)#1408

Merged
peti merged 2 commits intoNixOS:stdenv-updatesfrom
bjornfor:ncurses-enable-pc-files
Dec 26, 2013
Merged

ncurses: install *.pc files (pkg-config)#1408
peti merged 2 commits intoNixOS:stdenv-updatesfrom
bjornfor:ncurses-enable-pc-files

Conversation

@bjornfor
Copy link
Copy Markdown
Contributor

To make e.g. "pkg-config --cflags ncursesw" work.

We also have ncurses v5.4 (old) in nixpkgs, but that version doesn't
know how to generate *.pc files. So I'm not touching it.

There is one thing I'd like to discuss before this is merged. In the ncurses expression there is this comment[1]:

When building a wide-character (Unicode) build, create backward

compatibility links from the the "normal" libraries to the

wide-character libraries (e.g. libncurses.so to libncursesw.so).

Should that also apply to the pkg-config files? With this patch pkg-config will know about "ncursesw", but should we also make it know about "ncurses" (minus the 'w')? (Of course, if ncurses is built without unicode/wide chars then it'll probably generate "ncurses" *.pc files and not "ncursesw".)

My initial thought is "no". I don't know why we want to make "backward compatibility links" in the first place. Is it completely safe?

[1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/ncurses/default.nix#L36-38

@bjornfor
Copy link
Copy Markdown
Contributor Author

Linux From Scratch1 uses the same trick as nixpkgs to provide "normal" ncurses library symlinks files when ncurses is built in "wide" mode. And they provide symlink from normal to wide *.pc file too. I'll update the pull.

To make e.g. "pkg-config --cflags ncursesw" work.

The ncurses expression, when built in unicode/wide char mode, provides
backward compatibility symlinks from lib<name>.so to lib<name>w.so.
Provide similar symlinks for the *.pc files: <name>.pc -> <name>w.pc.
We already have backward compatibility symlinks for ncurses libraries
and pkg-config files (when built in unicode/wide mode). The last bit is
to add a symlink from ncurses5-config to ncursesw5-config, which is what
this commit does.
peti added a commit that referenced this pull request Dec 26, 2013
ncurses: install *.pc files (pkg-config)
@peti peti merged commit 7d648e3 into NixOS:stdenv-updates Dec 26, 2013
@bjornfor bjornfor deleted the ncurses-enable-pc-files branch January 25, 2014 11:00
fabianhjr added a commit that referenced this pull request Aug 2, 2024
…errors

Hook accumulates the flag over sereval executions as observed in:

- #301592
- #252484 (comment)

Since this has been committed, gcc started emitting a warning on
`-Wno-incompatible-function-poniter-types` being an unrecognized flag
and additionally upstream vala added its own meassure to reduce these
new pointer errors to warnings in its generated sources.

https://gitlab.gnome.org/GNOME/vala/-/commit/23ec71b1a5c4cead3d1bdac82e184d0a63fa7b79

Which is part of the current release
branch (https://gitlab.gnome.org/GNOME/vala/-/commits/0.56?ref_type=heads)
and released on 0.56.15

```
Vala 0.56.15
============
 * Various improvements and bug fixes:
  - codegen:
...
    + Emit diagnostic pragmas for GCC 14, Clang 16 compatibility [#1408]
```

https://gitlab.gnome.org/GNOME/vala/-/merge_requests/369
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.

2 participants