Page MenuHomeFreeBSD

Convert bsdinstall/distextract for libbsddialog
ClosedPublic

Authored by asiciliano on Dec 20 2021, 2:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 14, 12:39 AM
Unknown Object (File)
Fri, Jun 6, 2:54 AM
Unknown Object (File)
Wed, Jun 4, 3:15 AM
Unknown Object (File)
Sat, May 31, 11:31 PM
Unknown Object (File)
Tue, May 27, 6:56 PM
Unknown Object (File)
May 9 2025, 10:27 PM
Unknown Object (File)
May 4 2025, 12:36 PM
Unknown Object (File)
Apr 29 2025, 8:13 AM
Subscribers

Details

Summary

Convert bsdinstall/distextract for libbsddialog.

This review depends on libbsddialog 0.0.2 https://reviews.freebsd.org/D33580

Test Plan

Download some txz from distfetch https://reviews.freebsd.org/D33425
then:

env DISTRIBUTIONS="kernel.txz tests.txz" BSDINSTALL_CHROOT="./extractdir" BSDINSTALL_DISTDIR="/home/test" ./distextract
`

┌────────Archive Extraction────────┐                      
│ kernel.txz       [    Done     ] │                      
│ tests.txz        [    Done     ] │                      
│                                  │                      
│ Extracting distribution files... │                      
│                                  │                      
│  ┌─Overall Progress───────────┐  │                      
│  │            100%            │  │                      
│  └────────────────────────────┘  │                      
└──────────────────────────────────┘

`
ls extractdir/boot/kernel/
... kmods and company ...

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This revision is now accepted and ready to land.Dec 21 2021, 3:14 PM
usr.sbin/bsdinstall/distextract/Makefile
5–6

HAVE_BSDDIALOG is not necessary here, why adding it?

usr.sbin/bsdinstall/distextract/Makefile
5–6

Ops sorry, of course it is an error (I opened the tzseup Makefile instead of the distfetch Makefile).
Should I update the review or can you fix before to commit?

asiciliano marked an inline comment as not done.

Update review to fix Makefile:

  • delete -DHAVE_BSDDIALOG
This revision now requires review to proceed.Dec 26 2021, 6:52 AM

Address Revision Feedback: fix Makefile

usr.sbin/bsdinstall/distextract/Makefile
5–6

Makefile fixed

This revision was not accepted when it landed; it landed in state Needs Review.Jan 1 2022, 8:53 PM
This revision was automatically updated to reflect the committed changes.

pushed with modification for it to build properly in base (warning about const char * vs char *