Page MenuHomeFreeBSD

Update amd in base from 6.1.5 to 6.2.0.
ClosedPublic

Authored by cy on Nov 1 2016, 1:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 9, 1:33 AM
Unknown Object (File)
Sat, Sep 7, 3:53 PM
Unknown Object (File)
Fri, Sep 6, 12:32 AM
Unknown Object (File)
Thu, Sep 5, 7:20 PM
Unknown Object (File)
Thu, Sep 5, 2:23 AM
Unknown Object (File)
Sun, Aug 25, 4:50 AM
Unknown Object (File)
May 24 2024, 9:16 PM
Unknown Object (File)
Apr 10 2024, 8:40 PM
Subscribers

Details

Summary

This revision will MFV r305100 to update amd in base to 6.2.0.

The patch will fail to apply to some man pages due to compare failures of $FreeBSD$ in the diff.

Test Plan

Already running on my infrastructure of four machines at home.

make tinderbox succeeded on universe12b.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cy retitled this revision from to Update amd in base from 6.1.5 to 6.2.0..
cy updated this object.
cy edited the test plan for this revision. (Show Details)
cy added a reviewer: pfg.
cy set the repository for this revision to rS FreeBSD src repository - subversion.

What exactly do you want me to review ? I am not familiar with the amd code. I used it, but that was many years ago.

If you have specific questions which you think I am competent to answer, please state them explicitly.

Hi kib@,

Since amd is upstream, I'm primarily interested in the changes to Makefiles in usr.sbin/amd. Even though it tinderbox builds and I'm running it here, I'd appreciate a quick look through the Makefiles to ensure I haven't missed anything.

~cy@

In D8405#175185, @cy wrote:

Hi kib@,

Since amd is upstream, I'm primarily interested in the changes to Makefiles in usr.sbin/amd. Even though it tinderbox builds and I'm running it here, I'd appreciate a quick look through the Makefiles to ensure I haven't missed anything.

I am not too familiar with our build system, you might ask e.g. bdrewery, emaste and brooks about it.

I took some look over the config.h, and I find it strange that e.g. HAVE_FFS is not defined. We also have MFS and TMPFS. I am not sure whether what we have is similar to what amd wants from things with that names.

cy added reviewers: bdrewery, pstef.
cy removed rS FreeBSD src repository - subversion as the repository for this revision.
cy added a subscriber: brooks.

I've updated config.h to enable MFS.

Though "HAVE_FFS" exists in the upline config.h.in, the source makes no reference to it:

slippy$ ag -sc HAVE_FFS
slippy$ ag -sc HAVE_UFS
amd/ops_ufs.c:8
amd/ops_udf.c:1
conf/nfs_prot/nfs_prot_freebsd3.h:4
include/am_defs.h:5
include/mount_headers1.h:4
slippy$

I've added bdrewery, emaste and brooks to look over the Makefiles. I'm especially interested in a review of the yacc and lex invocations.

cy set the repository for this revision to rS FreeBSD src repository - subversion.

I don't think it would be very hard to fix the infrastructure to support multiple yacc and lex source files, I've got some other work to procrastinate on so I'l take a stab at that. It would clean these Makefile changes up quite a bit.

usr.sbin/acpi/iasl has the same issue. What if I commit the update to amd now and we address acpi and amd later? I haven't looked but I'm willing to bet there are others as well.

If you don't mind, I can put together a patch and post it here on phabricator, and you and others can review/approve it?

~cy

I've added the share/mk changes that should remove the need for most of the Makefile hackery to D8438.

D8438 doesn't address custom symbol prefixes (-p for yacc and -P for lex), use here in amd and in acpi/iasl. Let's work through D8438 first before we continue here.

I've abandoned the other revision, it was wrong in several ways and doesn't appear to be easily fixed.

usr.sbin/amd/amd/Makefile
12 ↗(On Diff #21962)

I'm a bit surprised this part is necessary. It seems like make should find things in .OBJDIR on it's own.

cy marked an inline comment as done.Nov 5 2016, 4:53 PM
cy added inline comments.
usr.sbin/amd/amd/Makefile
12 ↗(On Diff #21962)

It does. I inserted that while working on the multiple yacc and lex sources at some point and failed to remove it. It's been removed locally.

pfg edited edge metadata.

Sorry, I have been AFK for a while.
Looks good to me.

This revision is now accepted and ready to land.Nov 6 2016, 4:02 PM
This revision was automatically updated to reflect the committed changes.
cy marked an inline comment as done.