Skip to contentSkip to conversation

New: dhcp.mk copies S80dhcp-server to output/target/etc/init.d, not init.d

Buildroot bugzilla at busybox.net 1 participant 4 messages Feb 1, 2011

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=3181

Summary: dhcp.mk copies S80dhcp-server to
output/target/etc/init.d, not init.d
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: dmitry at radiofid.ru
CC: buildroot at uclibc.org
Estimated Hours: 0.0

buildroot v2011.02-git-00303-ga9eed3f-dirty

dhcp.mk:
24 $(INSTALL) -m 0755 -D package/dhcp/S80dhcp-server
$(TARGET_DIR)/etc/init.d
35 $(INSTALL) -m 0755 -D package/dhcp/S80dhcp-relay
$(TARGET_DIR)/etc/init.d

These lines copy file to init.d file, not directory, which breaks other package instalation since it is impossible to copy init scripts to none existent init.d directory.

My solution is to add a slash to the end of lines.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 3181] dhcp.mk copies S80dhcp-server to etc/init.d, not etc/init.d/

https://bugs.busybox.net/show_bug.cgi?id=3181

Dmitry K <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|dhcp.mk copies              |dhcp.mk copies
                   |S80dhcp-server to           |S80dhcp-server to
                   |output/target/etc/init.d,   |etc/init.d, not etc/init.d/
                   |not init.d                  |
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 3181] dhcp.mk copies S80dhcp-server to etc/init.d, not etc/init.d/

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=3181

--- Comment #1 from Paulius Zaleckas <[email protected]> --- After reading install manual, for me it seems you are completely right.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 3181] dhcp.mk copies S80dhcp-server to etc/init.d, not etc/init.d/

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=3181

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Peter Korsgaard <[email protected]> ---
You actually have to use install -D file dest/dir/file, otherwise it will fail if dest/dir doesn't exist (which is the whole point of install -D).

Anyway, fixed in git - thanks!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.