Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2017 13:15:50 -0800
From:      Mark Millard <markmi@dsl-only.net>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: -r325627 of head: mergemaster: Creating objdir after objdir after . . .
Message-ID:  <8657A465-F0D8-49DC-BBC7-DA00E04E5A72@dsl-only.net>
In-Reply-To: <109a5971-236c-1007-21f6-6bd1cbe3a1cb@FreeBSD.org>
References:  <B60F7C47-D5F5-460B-9018-B59BD0ED621F@dsl-only.net> <08a57ee2-ae3e-b8ea-73a3-b6533b0fd206@FreeBSD.org> <202f44cb-39d6-99af-9804-582825ae5c07@FreeBSD.org> <0c9c20c2-1d34-77e8-1620-fb99881a34d1@FreeBSD.org> <C365F464-7480-4B70-B5B9-D18ED8F2C03E@dsl-only.net> <A38ADD49-423E-4368-B253-56D6E7A034FA@FreeBSD.org> <F962B461-DBA2-4AD6-A6A7-7A20AED4DE1F@dsl-only.net> <109a5971-236c-1007-21f6-6bd1cbe3a1cb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

=3D=3D=3D
Mark Millard
markmi@dsl-only.net

On 2017-Nov-16, at 9:13 AM, Bryan Drewery <bdrewery@FreeBSD.org> wrote:

>> . . .
>=20
> Can you test this patch please in context of this problem please?
> It resolves read-only objdirs and should avoid more of the objdir
> creations at mergemaster/installworld time.  It probably will still
> create the etc/sendmail one.
>=20
> https://people.freebsd.org/~bdrewery/patches/top-level-objdirs.diff
>=20
>>>> . . .

I applied the patch.

The 3 experiments below only showed the sendmail related
"Creating objdir" lines, no other "Creating objdir" lines.



Based on using ( /tmp/usr/obj/armv7_clang not existing at the time):

# more ~/sys_build_scripts.armv7-host/mergemaster_armv7-armv7-host.sh=20
kldload -n filemon && \
script =
~/sys_typescripts/typescript_mergemaster_armv7_clang_bootstrap_clang-armv7=
-host-$(date +%Y-%m-%d:%H:%M:%S) \
env __MAKE_CONF=3D"/root/src.configs/make.conf" SRCCONF=3D"/dev/null" =
SRC_ENV_CONF=3D"/root/src.configs/src.conf.armv7-clang-bootstrap.armv7-hos=
t" \
MAKEOBJDIRPREFIX=3D"/tmp/usr/obj/armv7_clang/arm.armv7" \
mergemaster -A armv7 $*

The merge master produced just the 3 objdir lines related to sendmail:

# ~/sys_build_scripts.armv7-host/mergemaster_armv7-armv7-host.sh -FUPi=20=

Script started, output file is =
/root/sys_typescripts/typescript_mergemaster_armv7_clang_bootstrap_clang-a=
rmv7-host-2017-11-16:12:31:48

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot

[Creating objdir =
/tmp/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7...]
[Creating objdir =
/tmp/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/etc...]
[Creating objdir =
/tmp/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/etc/sendmail...]

. . . (other stuff) . . .



Based on ( /usr/obj/bpim3_clang not existing at the time [renamed]):

# more =
~/sys_build_scripts.armv7-host/make_bpim3_nodebug_clang_bootstrap-armv7-ho=
st.sh=20
kldload -n filemon && \
script =
~/sys_typescripts/typescript_make_bpim3_nodebug_clang_bootstrap-armv7-host=
-$(date +%Y-%m-%d:%H:%M:%S) \
env __MAKE_CONF=3D"/root/src.configs/make.conf" SRCCONF=3D"/dev/null" =
SRC_ENV_CONF=3D"/root/src.configs/src.conf.armv7-clang-bootstrap.armv7-hos=
t" \
WITH_META_MODE=3Dyes \
WORLD_FLAGS=3D"${WORLD_FLAGS} UBLDR_LOADADDR=3D0x42000000" \
MAKEOBJDIRPREFIX=3D"/usr/obj/bpim3_clang/arm.armv7" \
make $*

the check-old did not produce any objdir lines:

# =
~/sys_build_scripts.armv7-host/make_bpim3_nodebug_clang_bootstrap-armv7-ho=
st.sh check-old
Script started, output file is =
/root/sys_typescripts/typescript_make_bpim3_nodebug_clang_bootstrap-armv7-=
host-2017-11-16:12:44:43
>>> Checking for old files
>>> Checking for old libraries
>>> Checking for old directories
To remove old files and directories run 'make delete-old'.
To remove old libraries run 'make delete-old-libs'.

Script done, output file is =
/root/sys_typescripts/typescript_make_bpim3_nodebug_clang_bootstrap-armv7-=
host-2017-11-16:12:44:43


As for installworld installkernel creating a new directory tree. . .
(same .sh file for check-old above but with /usr/obj/bpim3_clang back in =
place)

# =
~/sys_build_scripts.armv7-host/make_bpim3_nodebug_clang_bootstrap-armv7-ho=
st.sh -j4 installworld installkernel =
DESTDIR=3D/usr/obj/DESTDIRs/clang-armv7-installworld-objdir-test
Script started, output file is =
/root/sys_typescripts/typescript_make_bpim3_nodebug_clang_bootstrap-armv7-=
host-2017-11-16:12:54:04
--- installworld ---
make[1]: =
"/usr/obj/bpim3_clang/arm.armv7/usr/src/arm.armv7/compiler-metadata.mk" =
line 1: Using cached compiler metadata from build at bpim3 on Tue Nov 14 =
22:25:57 PST 2017
--- __installcheck_UGID ---
--- installworld ---
. . .
--- _kmodinstall ---
install -T release -o root -g wheel -m 555   g_mouse.ko =
/usr/obj/DESTDIRs/clang-armv7-installworld-objdir-test/boot/kernel/
install -T debug -o root -g wheel -m 555   g_mouse.ko.debug =
/usr/obj/DESTDIRs/clang-armv7-installworld-objdir-test/usr/lib/debug/boot/=
kernel/
--- afterinstall ---
kldxref =
/usr/obj/DESTDIRs/clang-armv7-installworld-objdir-test/boot/kernel

Script done, output file is =
/root/sys_typescripts/typescript_make_bpim3_nodebug_clang_bootstrap-armv7-=
host-2017-11-16:12:54:04

# grep "Creating objdir" =
/root/sys_typescripts/typescript_make_bpim3_nodebug_clang_bootstrap-armv7-=
host-2017-11-16:12:54:04 | more
#

(So: None found in the typescript file.)

=3D=3D=3D
Mark Millard
markmi at dsl-only.net







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8657A465-F0D8-49DC-BBC7-DA00E04E5A72>