Skip to contentSkip to conversation

jack2: Added staging

PATCH Superseded Pieter De Gendt 3 participants 6 messages Aug 6, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jack2: Added staging

---
 package/jack2/jack2.mk |    7 +++++++
 1 file changed, 7 insertions(+)
package/jack2/jack2.mk +7 -0
index 68f6e42..e1c3197 100644
@@ -8,6 +8,7 @@ JACK2_VERSION = ab409a65df95bc261ff72b52d6b3f4a65cf3266a
 JACK2_SITE = $(call github,jackaudio,jack2,$(JACK2_VERSION))
 JACK2_LICENSE = GPLv2+ (jack server), LGPLv2.1+ (jack library)
 JACK2_DEPENDENCIES = libsamplerate libsndfile alsa-lib host-python
+JACK2_INSTALL_STAGING = YES
 
 define JACK2_CONFIGURE_CMDS
 	(cd $(@D); \
@@ -27,4 +28,10 @@ define JACK2_INSTALL_TARGET_CMDS
 		install)
 endef
 
+define JACK2_INSTALL_STAGING_CMDS
+	$(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/jack
+	$(INSTALL) -m 0644 $(@D)/common/jack/*.h \
+		$(STAGING_DIR)/usr/include/jack
+endef
+
 $(eval $(generic-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 jack2: Added staging

Pieter De Gendt <[email protected]> schreef:

Quoted 22 lines

---
package/jack2/jack2.mk | 7 +++++++

1 file changed, 7 insertions(+)
package/jack2/jack2.mk +0 -0
index 68f6e42..e1c3197 100644
@@ -8,6 +8,7 @@ JACK2_VERSION = ab409a65df95bc261ff72b52d6b3f4a65cf3266a
 JACK2_SITE = $(call github,jackaudio,jack2,$(JACK2_VERSION))
 JACK2_LICENSE = GPLv2+ (jack server), LGPLv2.1+ (jack library)

JACK2_DEPENDENCIES = libsamplerate libsndfile alsa-lib host-python +JACK2_INSTALL_STAGING = YES

define JACK2_CONFIGURE_CMDS

	(cd $(@D); \
package/jack2/jack2.mk +0 -0
@@ -27,4 +28,10 @@ define JACK2_INSTALL_TARGET_CMDS
 		install)

endef

package/jack2/jack2.mk define JACK2_INSTALL_TARGET_CMDS · line 35

Quoted 5 lines
package/jack2/jack2.mk +5 -0
+define JACK2_INSTALL_STAGING_CMDS
+	$(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/jack
+	$(INSTALL) -m 0644 $(@D)/common/jack/*.h \
+		$(STAGING_DIR)/usr/include/jack
+endef

Is there a particular reason why you did manual copies here instead of just running 'make install'?

#2 lore raw

PATCH 1/1 jack2: Added staging

No, I'm just not that familiar yet with the makefile mechanism, I looked at other packages for examples, this seemed to be the easiest solution.

Quoted 23 lines · Thomas De Schampheleire

Pieter De Gendt <[email protected]> schreef:

Quoted 22 lines

---
package/jack2/jack2.mk | 7 +++++++

1 file changed, 7 insertions(+)
package/jack2/jack2.mk +0 -0
index 68f6e42..e1c3197 100644
@@ -8,6 +8,7 @@ JACK2_VERSION = ab409a65df95bc261ff72b52d6b3f4a65cf3266a
 JACK2_SITE = $(call github,jackaudio,jack2,$(JACK2_VERSION))
 JACK2_LICENSE = GPLv2+ (jack server), LGPLv2.1+ (jack library)

JACK2_DEPENDENCIES = libsamplerate libsndfile alsa-lib host-python +JACK2_INSTALL_STAGING = YES

define JACK2_CONFIGURE_CMDS

      (cd $(@D); \
package/jack2/jack2.mk +0 -0
@@ -27,4 +28,10 @@ define JACK2_INSTALL_TARGET_CMDS
              install)

endef

Quoted 12 lines

package/jack2/jack2.mk define JACK2_INSTALL_TARGET_CMDS · line 35

Quoted 5 lines
package/jack2/jack2.mk +5 -0
+define JACK2_INSTALL_STAGING_CMDS
+      $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/jack
+      $(INSTALL) -m 0644 $(@D)/common/jack/*.h \
+              $(STAGING_DIR)/usr/include/jack
+endef

Is there a particular reason why you did manual copies here instead of just running 'make install'?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140806/bc083c95/attachment.html>

#3 lore raw

PATCH 1/1 jack2: Added staging

(Please don't top post)

Pieter De Gendt <[email protected]> schreef:

Quoted 2 lines

No, I'm just not that familiar yet with the makefile mechanism, I looked at other packages for examples, this seemed to be the easiest solution.

I think you should try using the same kind of rule as the INSTALL_TARGET_CMDS, and see if the right files are installed... This is more future proof...

Best regards,
Thomas

#4 lore raw

PATCH 1/1 jack2: Added staging

Quoted 5 lines · Thomas De Schampheleire

(Please don't top post)

Pieter De Gendt <[email protected]> schreef:

Quoted 1 line

No, I'm just not that familiar yet with the makefile mechanism, I looked

at

Quoted 10 lines
Quoted 1 line

other packages for examples, this seemed to be the easiest solution.

I think you should try using the same kind of rule as the INSTALL_TARGET_CMDS, and see if the right files are installed... This is more future proof...

Best regards,
Thomas

Ok but from the waf build system help I don't see the option to copy the header files.. Would this mean that the manual copy is still valid?

./waf --help
waf [commands] [options]

Main commands (example: ./waf build -j4)
build : executes the build
clean : cleans the project
configure: configures the project
dist : makes a tarball for redistributing the sources
distcheck: checks if the project compiles (tarball from 'dist')
distclean: removes the build directory

  install  : installs the targets on the system
  list     : lists the targets to execute
  step     : executes tasks in a step-by-step fashion, for debugging

uninstall: removes the targets installed
update : updates the plugins from the *waflib/extras* directory

Options:

  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -j JOBS, --jobs=JOBS  amount of parallel jobs (8)
  -k, --keep            keep running happily even if errors are found
  -v, --verbose         verbosity level -v -vv or -vvv [default: 0]
  --nocache             ignore the WAFCACHE (if set)
  --zones=ZONES         debugging zones (task_gen, deps, tasks, etc)
  --libdir=LIBDIR       Library directory [Default: <prefix>/lib]
  --libdir32=LIBDIR32   32bit Library directory [Default: <prefix>/lib32]
  --mandir=MANDIR       Manpage directory [Default: <prefix>/share/man/man1]
  --dbus                Enable D-Bus JACK (jackdbus)

--dist-target=DIST_TARGET
Specify the target for cross-compiling [auto,mingw]
--classic Force enable standard JACK (jackd) even if D-Bus
JACK (jackdbus) is enabled too

  --doxygen             Enable build of doxygen documentation
  --profile             Build with engine profiling
  --mixed               Build with 32/64 bits mixed mode
  --clients=CLIENTS     Maximum number of JACK clients
  --ports-per-application=APPLICATION_PORTS
                        Maximum number of ports per application
  --debug               Build debuggable binaries
  --firewire            Enable FireWire driver (FFADO)
  --freebob             Enable FreeBob driver
  --alsa                Enable ALSA driver
  --iio                 Enable IIO driver

--autostart=AUTOSTART
Autostart method. Possible values: "default",
"classic", "dbus", "none"
--portaudio Enable Portaudio driver
--winmme Enable WinMME driver
--enable-pkg-config-dbus-service-dir
force D-Bus service install dir to be one returned
by pkg-config

configure options:

    -o OUT, --out=OUT   build dir for the project
    -t TOP, --top=TOP   src dir for the project
    --prefix=PREFIX     installation prefix [default: '/usr/local/']
    --download          try to download the tools if missing

build and install options:
-p, --progress -p: progress bar; -pp: ide output
--targets=TARGETS task generators, e.g. "target1,target2"

step options:
--files=FILES files to process, by regexp, e.g.
"*/main.c,*/test/main.o"

  install/uninstall options:
    --destdir=DESTDIR   installation root [default: '']
    -f, --force         force file installation

C++ Compiler Options:
--check-cxx-compiler=CHECK_CXX_COMPILER
On this platform (linux) the following C++ Compiler
will be checked by default: "g++ icpc"

C Compiler Options:
--check-c-compiler=CHECK_C_COMPILER
On this platform (linux) the following C-Compiler
will be checked by default: "gcc icc"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140806/073ec7bd/attachment.html>

#5 lore raw

PATCH 1/1 jack2: Added staging

Dear Pieter De Gendt,

Quoted 2 lines · Pieter De Gendt

Ok but from the waf build system help I don't see the option to copy the header files.. Would this mean that the manual copy is still valid?

Just do the installation, as done in JACK2_INSTALL_TARGET_CMDS. I.e, do:

define JACK2_INSTALL_STAGING_CMDS

	(cd $(@D); $(HOST_DIR)/usr/bin/python2 ./waf --destdir=$(STAGING_DIR) install)

endef

Most likely waf is installing the header files. You simply don't seem them at the end of the target because Buildroot removes all header files from the target directory at the end of the build.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com