package/skeleton: remove legacy mkdir
PATCH 1/1 package/skeleton: remove legacy mkdir
We've had this mkdir, in various forms, for aeons. It dates back to the inception of Buildroot, at the dawn of ages, when the toolchain support was still nascent. Evolution had it morph from /include, to a tuple-prefixed directory and a symlink there-to, then back to the /include directory, to the final /usr/include directory we've had for the last 9 years.
Anything that wants to install headers is supposed to be creating that directory beforehand; we don't need this legacy mkdir now.
---
OK, we can keep it, just for nostalgia; I just felt like writing some prose tonight. ;-)
--- package/skeleton/skeleton.mk | 1 - 1 file changed, 1 deletion(-)
package/skeleton/skeleton.mk +0 -1
@@ -107,7 +107,6 @@ define SKELETON_INSTALL_STAGING_CMDS $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/lib $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/bin $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/sbin - $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include $(call SKELETON_USR_SYMLINKS_OR_DIRS,$(STAGING_DIR)) ln -snf lib $(STAGING_DIR)/$(SKELETON_LIB_SYMLINK) ln -snf lib $(STAGING_DIR)/usr/$(SKELETON_LIB_SYMLINK)
Signature · 1 line
2.7.4
PATCH 1/1 package/skeleton: remove legacy mkdir
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
We've had this mkdir, in various forms, for aeons. It dates back to the inception of Buildroot, at the dawn of ages, when the toolchain support was still nascent. Evolution had it morph from /include, to a tuple-prefixed directory and a symlink there-to, then back to the /include directory, to the final
/usr/includedirectory we've had for the last 9 years.Anything that wants to install headers is supposed to be creating that directory beforehand; we don't need this legacy mkdir now.
But how is that different from the {lib,bin,sbin} directories we also create?
Quoted 28 lines
Signed-off-by "Yann E. MORIN" <[email protected]>---
OK, we can keep it, just for nostalgia; I just felt like writing some prose tonight. ;-)--- package/skeleton/skeleton.mk | 1 - 1 file changed, 1 deletion(-)package/skeleton/skeleton.mk +0
-1@@ -107,7 +107,6 @@ define SKELETON_INSTALL_STAGING_CMDS $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/lib $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/bin $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/sbin - $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include $(call SKELETON_USR_SYMLINKS_OR_DIRS,$(STAGING_DIR)) ln -snf lib $(STAGING_DIR)/$(SKELETON_LIB_SYMLINK) ln -snf lib $(STAGING_DIR)/usr/$(SKELETON_LIB_SYMLINK)Signature · 6 lines
2.7.4 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 package/skeleton: remove legacy mkdir
Peter, All,
On 2017-01-04 17:14 +0100, Peter Korsgaard spake thusly:
Quoted 9 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
We've had this mkdir, in various forms, for aeons. It dates back to the inception of Buildroot, at the dawn of ages, when the toolchain support was still nascent. Evolution had it morph from /include, to a tuple-prefixed directory and a symlink there-to, then back to the /include directory, to the final
/usr/includedirectory we've had for the last 9 years.
Quoted 5 lines
Quoted 2 lines
Anything that wants to install headers is supposed to be creating that directory beforehand; we don't need this legacy mkdir now.
But how is that different from the {lib,bin,sbin} directories we also create?
Hmm, you would seem to make a rather good point.
But there is a difference: for lib, bin and sbin, we want to ensure consistency with the merged-usr setup, so we need the directories to exist to create the /lib, /bin and /sbin symlinks to their /usr counterparts.
For lib, we also want it to exist because we also create the lib{32,64} symlink.
So, we need to create those because Buildroot needs them by itself.
This is not the case for /usr/include.
This commit is not strictly necessary, but it makes it a little bit easier to split the skeleton for systemd (to come later: the series is too big and unmanageable as a single piece, so I'm sending bits of it separately, such as this one).
Regards,
Yann E. MORIN.
Quoted 31 lines
Quoted 28 lines
Signed-off-by "Yann E. MORIN" <[email protected]>---
OK, we can keep it, just for nostalgia; I just felt like writing some prose tonight. ;-)--- package/skeleton/skeleton.mk | 1 - 1 file changed, 1 deletion(-)package/skeleton/skeleton.mk +0
-1@@ -107,7 +107,6 @@ define SKELETON_INSTALL_STAGING_CMDS $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/lib $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/bin $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/sbin - $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include $(call SKELETON_USR_SYMLINKS_OR_DIRS,$(STAGING_DIR)) ln -snf lib $(STAGING_DIR)/$(SKELETON_LIB_SYMLINK) ln -snf lib $(STAGING_DIR)/usr/$(SKELETON_LIB_SYMLINK)Signature · 6 lines
2.7.4 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildrootSignature · 1 line
Bye, Peter Korsgaard
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 package/skeleton: remove legacy mkdir
In reply to Yann E. MORINQuoted 11 lines · Yann E. MORIN
We've had this mkdir, in various forms, for aeons. It dates back to the inception of Buildroot, at the dawn of ages, when the toolchain support was still nascent. Evolution had it morph from /include, to a tuple-prefixed directory and a symlink there-to, then back to the /include directory, to the final
/usr/includedirectory we've had for the last 9 years.Anything that wants to install headers is supposed to be creating that directory beforehand; we don't need this legacy mkdir now.
Signed-off-by "Yann E. MORIN" <[email protected]>
Since in your skeleton rework series, *some* skeletons *don't* create this
directory, I've applied to master, thanks.
Regards,
Arnout
Quoted 21 lines
---
OK, we can keep it, just for nostalgia; I just felt like writing some prose tonight. ;-)--- package/skeleton/skeleton.mk | 1 - 1 file changed, 1 deletion(-)package/skeleton/skeleton.mk +0
-1@@ -107,7 +107,6 @@ define SKELETON_INSTALL_STAGING_CMDS $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/lib $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/bin $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/sbin - $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include $(call SKELETON_USR_SYMLINKS_OR_DIRS,$(STAGING_DIR)) ln -snf lib $(STAGING_DIR)/$(SKELETON_LIB_SYMLINK) ln -snf lib $(STAGING_DIR)/usr/$(SKELETON_LIB_SYMLINK)
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF