Page MenuHomeFreeBSD

[new port] devel/libc-bitcode: FreeBSD libc library compiled to a single LLVM IR bitcode file
Needs ReviewPublic

Authored by arrowd on Dec 31 2019, 12:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 1, 11:51 AM
Unknown Object (File)
Wed, Dec 31, 12:10 AM
Unknown Object (File)
Dec 1 2025, 11:10 PM
Unknown Object (File)
Nov 29 2025, 10:26 PM
Unknown Object (File)
Nov 25 2025, 7:50 PM
Unknown Object (File)
Nov 25 2025, 7:50 PM
Unknown Object (File)
Nov 25 2025, 7:05 PM
Unknown Object (File)
Nov 9 2025, 3:24 AM

Details

Reviewers
None
Group Reviewers
Contributor Reviewers (ports)
Summary

Intended to be used with security/klee.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 34604
Build 31693: arc lint + arc unit

Event Timeline

Suggestions by Mikael Urankar.

linimon retitled this revision from devel/libc-bitcode: A new port. to [new port] devel/libc-bitcode: FreeBSD libc library compiled to a single LLVM IR bitcode file.Jan 5 2020, 9:44 PM

This generally looks good to me. I'm curious about that should we use the libcxx from llvm project directly or from src/contrib/llvm-project.

  • Build libc++ from FreeBSD sources too. The ports doesn't build yet due to some bug in gllvm.
0mp added inline comments.
devel/libc-bitcode/Makefile
54

Do we need ONLY_FOR_ARCHS?

devel/libc-bitcode/Makefile
41

I am not sure but if DISTFILES are empty, then fetch does nothing by default.

In general DO_NADA is leftovers in the infrastructure, and most/all of their usage has been removed, if you need to define a target with DO_NADA, then there is a bug somewhere we do need to fix

arrowd marked 2 inline comments as done.
  • Remove DO_NADA. Use ${ARCH} variable.
  • Set correct LICENSE_FILE depending on FreeBSD version.
devel/libc-bitcode/Makefile
50

Should we merge do-build with post-build?

devel/libc-bitcode/pkg-descr
1
devel/libcxx-bitcode/Makefile
35
44

We should probably check if we are on FreeBSD here. See https://www.freebsd.org/doc/en/books/porters-handbook/book.html#slow-patch

devel/libcxx-bitcode/pkg-descr
5
arrowd marked 4 inline comments as done.
  • Address comments.
  • Use shared libc as bitcode extraction source.
devel/libc-bitcode/Makefile
50

I actually like it separated, but if you insist, I will merge them.

devel/libc-bitcode/Makefile
50

I won't insist, but it might make it easier to grasp for future readers :)