Skip to contentSkip to conversation

package/skeleton: remove legacy mkdir

PATCH New Yann E. MORIN 3 participants 4 messages Jan 3, 2017 – Jul 26, 2017

lore
Share & tools
lore
#0 lore raw

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
index 1000161..e65ef61 100644
@@ -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
#1 lore raw

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/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.

But how is that different from the {lib,bin,sbin} directories we also create?

Quoted 28 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
index 1000161..e65ef61 100644
@@ -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
#2 lore raw

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/include directory 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

---
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
index 1000161..e65ef61 100644
@@ -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
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.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/1 package/skeleton: remove legacy mkdir

In reply to Yann E. MORIN
Quoted 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/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.

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
index 1000161..e65ef61 100644
@@ -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