From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Naumann Date: Fri, 25 Jun 2021 16:55:44 +0200 Subject: [Buildroot] [PATCH 00/15] Overwritten file detection and fixes, one more step to TLP build In-Reply-To: <20210625151330.35f3adc8@fedora> References: <20210621141130.48654-1-herve.codina@bootlin.com> <20210625151330.35f3adc8@fedora> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Herve, On 25.06.21 15:13, Herve Codina wrote: > Hi, > > On Fri, 25 Jun 2021 11:08:43 +0200 > Andreas Naumann wrote: > >> after a long time I have recently picked up playing with TLP build >> again. As part of that I found a problem in qt5 where I sent a patch two >> days ago "qt5: Fix sporadic build failure during top-level parallel >> build" which is caused by manipulation of the hard-linked qt.conf in >> HOST_DIR from different qt5 packages. >> >> Now I see your promising set, but the matter is quite complex and so I >> wonder if the "overwritten file detection" would a) uncover the qt.conf >> problem and b)if your patch series somehow fixes it in a generic way? >> >> > > I quickly looked at your patch and it looks like an overwrite issue. > > Your patch: > ---- 8< ---- > # compiled into the Qt library. We need it to make "qmake" relocatable and > # tweak the per-package install pathes > define QT5_INSTALL_QT_CONF > + rm -f $(HOST_DIR)/bin/qt.conf > sed -e "s|@@HOST_DIR@@|$(HOST_DIR)|" -e "s|@@STAGING_DIR@@|$(STAGING_DIR)|" \ > $(QT5BASE_PKGDIR)/qt.conf.in > $(HOST_DIR)/bin/qt.conf > endef > ---- 8< ---- > > This overwrite is done by sed whose output is redirected $(HOST_DIR)/bin/qt.conf > > With TLP this overwite leads to package A seeing modification done by package B > > Without your patch and with overwrite detection present in my series > the overwrite should be detected and the build stopped. > > My series do not contains any fixes for this specific Qt5 overwrite. > This is a concrete example of what I said still missing ... Thank you for the confirmation. > > Your 'rm' breaks the hardlink and so the following sed does not perform > overwrite anymore. > That's the correct fix. > > To go further with interactions with my current series still ongoing and not ready > to be merged, the entire macro (QT5_INSTALL_QT_CONF) should be moved to > _PER_PACKAGE_TWEAK_HOOKS and QT5_QT_CONF_FIXUP is no more needed. Ok, I'll try to catch the point when your set is accepted and the repost an updated version. have a nice weekend, Andreas > > Herv? >