Re: [ptxdist] executables in /usr/bin vs /bin

2016-02-11 Thread Michael Olbrich
On Wed, Feb 10, 2016 at 06:48:04PM +0100, Clemens Gruber wrote:
> Hi,
> 
> in the proposed version bump for procps, the default path changed to
> /bin instead of /usr/bin. In my patch I just renamed the paths. But
> maybe that's the wrong approach and we should keep all binaries in
> /usr/bin ?
> 
> Debian on the other hand puts most of them in /usr/bin and a few into
> /bin.
> 
> Should I send a v2 with all rules changed like this?
> @$(call install_copy, procps, 0, 0, 0755, /bin/free, /usr/bin/free)

That would be ... $(PROCPS_PKGDIR)/bin/free, /usr/bin/free)

And yes, I'd like a v2 like this. I'm not sure if any of these paths are
hardcoded somewhere. In the long term I'd like to get rid of the usr-split,
but that requires some more work.

> Or should we put some binaries in /bin to be consistent with Debian?
> (/bin/ps, /bin/pidof, /usr/bin/top, /usr/bin/vmstat, ... ?)

Just keep them where they are now.

> Btw: This is the commit from procps-ng where they changed it to /bin:
> https://gitlab.com/procps-ng/procps/commit/430b559ba2826f80dffa840622ae0fc744000b13

Michael

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATH] usb-modeswitch-data: new package

2016-02-11 Thread Michael Olbrich
On Wed, Feb 03, 2016 at 11:10:15PM +0100, Ladislav Michl wrote:
> Signed-off-by: Ladislav Michl 
> ---
> Notes:
>  - needs tcl on host, but... anyone seen note in rules/tcl.in?

Indeed. We have a mechanism for that now: Take a look at the host-system-*
packages. We should probably introduce a host-system-tcl for this, so it
fails early with a nice error message.

>  - colons in filenames, something to be solved...

Correct. I cannot apply this until that problem is solved, but I can still
review.

>  usb-modeswitch-data.in   |   10 ++
>  usb-modeswitch-data.make |   70 
> +++
>  2 files changed, 80 insertions(+)
> 
> diff --git a/rules/usb-modeswitch-data.in b/rules/usb-modeswitch-data.in
> new file mode 100644
> index 000..ffaacda
> --- /dev/null
> +++ b/rules/usb-modeswitch-data.in
> @@ -0,0 +1,10 @@
> +## SECTION=shell_and_console
> +
> +config USB_MODESWITCH_DATA
> + tristate
> + prompt "usb-modeswitch-data"
> + depends on USB_MODESWITCH && UDEV

use select here to generate proper dependencies. If there is no buildtime
dependency, then use

select   if RUNTIME

> + help
> +   Device database and udev rules file for USB_ModeSwitch.
> +
> +# vim: set sw=8 ts=8 noet ft=kconfig:
> diff --git a/rules/usb-modeswitch-data.make b/rules/usb-modeswitch-data.make
> new file mode 100644
> index 000..6b12898
> --- /dev/null
> +++ b/rules/usb-modeswitch-data.make
> @@ -0,0 +1,70 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Ladislav Michl 
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_USB_MODESWITCH_DATA) += usb-modeswitch-data
> +
> +#
> +# Paths and names
> +#
> +USB_MODESWITCH_DATA_VERSION  := 20160112
> +USB_MODESWITCH_DATA_MD5  := 040d11138fc0a61b980d704ac3b4547f
> +USB_MODESWITCH_DATA  := 
> usb-modeswitch-data-$(USB_MODESWITCH_DATA_VERSION)
> +USB_MODESWITCH_DATA_SUFFIX   := tar.bz2
> +USB_MODESWITCH_DATA_URL  := 
> http://www.draisberghof.de/usb_modeswitch/$(USB_MODESWITCH_DATA).$(USB_MODESWITCH_DATA_SUFFIX)
> +USB_MODESWITCH_DATA_SOURCE   := 
> $(SRCDIR)/$(USB_MODESWITCH_DATA).$(USB_MODESWITCH_DATA_SUFFIX)
> +USB_MODESWITCH_DATA_DIR  := $(BUILDDIR)/$(USB_MODESWITCH_DATA)
> +USB_MODESWITCH_DATA_LICENSE  := GPL-2.0
> +
> +
> +# 
> 
> +# Nothing to Compile

Just 'Compile' and move the stage after the prepare stuff.
Btw, what happens if just 'make' is called? Maybe there is some harmless
make target, that can be used.

> +# 
> 
> +$(STATEDIR)/usb-modeswitch-data.compile:
> + @$(call targetinfo)
> + @$(call touch)
> +
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +USB_MODESWITCH_DATA_CONF_TOOL:= NO
> +USB_MODESWITCH_DATA_MAKE_ENV := $(CROSS_ENV)

use _INSTALL_ENV

> +USB_MODESWITCH_DATA_INSTALL_OPT  := db-install
> +
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +$(STATEDIR)/usb-modeswitch-data.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, usb-modeswitch-data)
> + @$(call install_fixup, usb-modeswitch-data,PRIORITY,optional)
> + @$(call install_fixup, usb-modeswitch-data,SECTION,base)
> + @$(call install_fixup, usb-modeswitch-data,AUTHOR,"Ladislav Michl 
> ")
> + @$(call install_fixup, usb-modeswitch-data,DESCRIPTION,missing)
> +
> + @$(call install_copy, usb-modeswitch-data, 0, 0, 0644, -, \
> +  /lib/udev/rules.d/40-usb_modeswitch.rules)
> +
> + @cd $(USB_MODESWITCH_DATA_PKGDIR) && \
> + for f in `find usr/share/usb_modeswitch/ -type f`; do \
> + $(call install_copy, usb-modeswitch-data, 0, 0, 0644, -, /$$f); 
> \
> + done

install_tree should work here, right?

Michael

> +
> + @$(call install_finish, usb-modeswitch-data)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list

Re: [ptxdist] [PATCH] ncurses: Added /usr/share/terminfo/d/dumb to PTXCONF_NCURSES_TERMCAP

2016-02-11 Thread Michael Olbrich
On Thu, Feb 11, 2016 at 12:31:48PM +0100, Michael Olbrich wrote:
> On Tue, Feb 02, 2016 at 03:59:41PM +0100, Gavin Schenk wrote:
> > This is needed when using top in batch mode "top -b"
> 
> Thanks, applied.

The new version of the patch of cource.

Michael

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 1/2] libseccomp: new package

2016-02-11 Thread Clemens Gruber
Hi Michael,

On Thu, Feb 11, 2016 at 12:32:56PM +0100, Michael Olbrich wrote:
> On Tue, Feb 09, 2016 at 05:31:13PM +0100, Clemens Gruber wrote:
> > Signed-off-by: Clemens Gruber 
> 
> Thanks, applied.
> 
> Note: The URL was broken for me so I had to change it. Please check if it
> still works for you.

Yes, it does also work for me with the new URL.

I'll double-check for patches in the future.

Clemens

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] lldpd: bump version and add missing dependencies

2016-02-11 Thread Michael Olbrich
On Sat, Feb 06, 2016 at 04:06:17PM +0100, Clemens Gruber wrote:
> Bump version to 0.9.0, adjust the kernel version for the oldies flag and
> add the missing readline and libbsd dependencies, which are not
> optional.
> This was probably missed, because both libraries were already selected
> on many systems.
> 
> Signed-off-by: Clemens Gruber 

Thanks, applied.

Michael

> ---
>  rules/lldpd.in   | 4 +++-
>  rules/lldpd.make | 4 ++--
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/rules/lldpd.in b/rules/lldpd.in
> index e7d3f51..0f6d475 100644
> --- a/rules/lldpd.in
> +++ b/rules/lldpd.in
> @@ -4,7 +4,9 @@ menuconfig LLDPD
>   tristate
>   prompt "lldpd "
>   select INITMETHOD
> + select LIBBSD
>   select LIBEVENT
> + select READLINE
>   select NET_SNMP if LLDPD_SNMP
>   select NET_SNMP_MIB_MODULES_AGENTX if LLDPD_SNMP
>   select JSON_C if LLDPD_JSON
> @@ -74,7 +76,7 @@ config LLDPD_CUSTOM_TLV
>  
>  config LLDPD_OLDIES
>   bool
> - prompt "Enable compatibility with Linux kernel older than 2.6.32"
> + prompt "Enable compatibility with Linux kernel older than 2.6.39"
>  
>  config LLDPD_SNMP
>   bool
> diff --git a/rules/lldpd.make b/rules/lldpd.make
> index a798ca5..a6e5862 100644
> --- a/rules/lldpd.make
> +++ b/rules/lldpd.make
> @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_LLDPD) += lldpd
>  #
>  # Paths and names
>  #
> -LLDPD_VERSION:= 0.7.19
> -LLDPD_MD5:= 4e924420e00ccd5dc289506f43221820
> +LLDPD_VERSION:= 0.9.0
> +LLDPD_MD5:= ed0226129b0c90b3a45c273fe1aba8de
>  LLDPD:= lldpd-$(LLDPD_VERSION)
>  LLDPD_SUFFIX := tar.gz
>  LLDPD_URL:= http://media.luffy.cx/files/lldpd//$(LLDPD).$(LLDPD_SUFFIX)
> -- 
> 2.7.0
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] libbsd: bump version to 0.8.2 to fix CVE-2016-2090

2016-02-11 Thread Michael Olbrich
On Sat, Feb 06, 2016 at 06:04:55PM +0100, Clemens Gruber wrote:
> Bump the version to 0.8.2, which includes a fix for the heap buffer
> overflow in fgetwln (CVE-2016-2090).
> 
> Signed-off-by: Clemens Gruber 

Thanks, applied. Don't forget the patches next time.

Michael

> ---
>  rules/libbsd.make | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/rules/libbsd.make b/rules/libbsd.make
> index 19c642d..8ebbe46 100644
> --- a/rules/libbsd.make
> +++ b/rules/libbsd.make
> @@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_LIBBSD) += libbsd
>  #
>  # Paths and names
>  #
> -LIBBSD_VERSION   := 0.6.0
> -LIBBSD_MD5   := f6c75f0a9818e323a589bcbd560a0eb4
> +LIBBSD_VERSION   := 0.8.2
> +LIBBSD_MD5   := cdee252ccff978b50ad2336278c506c9
>  LIBBSD   := libbsd-$(LIBBSD_VERSION)
>  LIBBSD_SUFFIX:= tar.xz
>  LIBBSD_URL   := 
> http://libbsd.freedesktop.org/releases/$(LIBBSD).$(LIBBSD_SUFFIX)
> -- 
> 2.7.0
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] iproute2: bump version to 4.4

2016-02-11 Thread Michael Olbrich
On Wed, Feb 03, 2016 at 07:17:25PM +0100, Clemens Gruber wrote:
> Signed-off-by: Clemens Gruber 

Thanks, applied.

In the future, please check if there are old patches.

Michael

> ---
>  rules/iproute2.make | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/rules/iproute2.make b/rules/iproute2.make
> index c50be6c..b6045b9 100644
> --- a/rules/iproute2.make
> +++ b/rules/iproute2.make
> @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_IPROUTE2) += iproute2
>  #
>  # Paths and names
>  #
> -IPROUTE2_VERSION := 4.2.0
> -IPROUTE2_MD5 := 51c54cc3245eff451154938fbc0f64f5
> +IPROUTE2_VERSION := 4.4.0
> +IPROUTE2_MD5 := d762653ec3e1ab0d4a9689e169ca184f
>  IPROUTE2 := iproute2-$(IPROUTE2_VERSION)
>  IPROUTE2_SUFFIX  := tar.xz
>  IPROUTE2_URL := $(call ptx/mirror, KERNEL, 
> utils/net/iproute2/$(IPROUTE2).$(IPROUTE2_SUFFIX))
> -- 
> 2.7.0
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] usb_modeswitch: version bump 2.2.1 -> 2.3.0

2016-02-11 Thread Michael Olbrich
On Fri, Jan 22, 2016 at 01:24:27AM +0100, Ladislav Michl wrote:
> Also update help to match official description.
> 
> Signed-off-by: Ladislav Michl 

Thanks, applied.

Michael

> ---
>  rules/usb-modeswitch.in   | 3 ++-
>  rules/usb-modeswitch.make | 4 ++--
>  2 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/rules/usb-modeswitch.in b/rules/usb-modeswitch.in
> index 555d8a7..aaefd86 100644
> --- a/rules/usb-modeswitch.in
> +++ b/rules/usb-modeswitch.in
> @@ -5,6 +5,7 @@ config USB_MODESWITCH
>   prompt "usb-modeswitch"
>   select LIBUSB
>   help
> -   Activating switchable USB devices on Linux.
> +   USB_ModeSwitch is (surprise!) a mode switching tool
> +   for controlling 'multi-mode' USB devices.
>  
>  # vim: set sw=8 ts=8 noet ft=kconfig:
> diff --git a/rules/usb-modeswitch.make b/rules/usb-modeswitch.make
> index d6a0a82..4ebf0e8 100644
> --- a/rules/usb-modeswitch.make
> +++ b/rules/usb-modeswitch.make
> @@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_USB_MODESWITCH) += usb-modeswitch
>  #
>  # Paths and names
>  #
> -USB_MODESWITCH_VERSION   := 2.2.1
> -USB_MODESWITCH_MD5   := 46cd7fa937655ab2df616c1d5dfb121e
> +USB_MODESWITCH_VERSION   := 2.3.0
> +USB_MODESWITCH_MD5   := 7faf7dccd50b3ca8aaa16fcb5bf0dc2f
>  USB_MODESWITCH   := usb-modeswitch-$(USB_MODESWITCH_VERSION)
>  USB_MODESWITCH_SUFFIX:= tar.bz2
>  USB_MODESWITCH_URL   := 
> http://www.draisberghof.de/usb_modeswitch/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
> -- 
> 2.1.4
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 1/6] python: install python2 symlink

2016-02-11 Thread Michael Olbrich
On Thu, Jan 28, 2016 at 06:27:03PM +0100, Lucas Stach wrote:
> Some programs call python2 in order to explicitly request python2.x.
> Allow this by installing a symlink to the the correct binary.
> 
> Signed-off-by: Lucas Stach 

Thanks, applied.

Michael

> ---
>  rules/python.make | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/rules/python.make b/rules/python.make
> index 8cc13efcec1a..a99f628f1456 100644
> --- a/rules/python.make
> +++ b/rules/python.make
> @@ -185,6 +185,7 @@ $(STATEDIR)/python.targetinstall:
>   done
>  
>   @$(call install_copy, python, 0, 0, 755, -, 
> /usr/bin/python$(PYTHON_MAJORMINOR))
> + @$(call install_link, python, python$(PYTHON_MAJORMINOR), 
> /usr/bin/python2)
>   @$(call install_lib, python, 0, 0, 644, libpython$(PYTHON_MAJORMINOR))
>  
>  ifdef PTXCONF_PYTHON_SYMLINK
> -- 
> 2.7.0.rc3
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] libtxc_dxtn: new package

2016-02-11 Thread Michael Olbrich
On Thu, Jan 28, 2016 at 11:53:13AM +0100, Lucas Stach wrote:
> This adds libtxc_dxtn, which is a free software implementation
> of the S3TC texture compression. If this is enabled MESA will
> provide the EXT_texture_compression_s3tc OpenGL extension.
> 
> It is a separate library, as S3TC is still patent encumbered
> and might need some special attention when shipping products.
> 
> Signed-off-by: Lucas Stach 

Thanks, applied.

Michael

> ---
>  rules/libtxc_dxtn.in   | 11 +++
>  rules/libtxc_dxtn.make | 53 
> ++
>  2 files changed, 64 insertions(+)
>  create mode 100644 rules/libtxc_dxtn.in
>  create mode 100644 rules/libtxc_dxtn.make
> 
> diff --git a/rules/libtxc_dxtn.in b/rules/libtxc_dxtn.in
> new file mode 100644
> index ..0bfbbca3f31a
> --- /dev/null
> +++ b/rules/libtxc_dxtn.in
> @@ -0,0 +1,11 @@
> +## SECTION=multimedia_libs
> +
> +config LIBTXC_DXTN
> + tristate
> + prompt "libtxc_dxtn"
> + help
> +   This library enables S3TC texture compression support in the
> +   open-source MESA OpenGL implementation.
> +   NOTE: S3TC is patent encumbered until at least 2017, so you
> +   may need to licence this patent and/or seek legal advice in
> +   order to ship products including this feature. 
> diff --git a/rules/libtxc_dxtn.make b/rules/libtxc_dxtn.make
> new file mode 100644
> index ..702b76e25bf7
> --- /dev/null
> +++ b/rules/libtxc_dxtn.make
> @@ -0,0 +1,53 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Lucas Stach 
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBTXC_DXTN) += libtxc_dxtn
> +
> +#
> +# Paths and names
> +#
> +LIBTXC_DXTN_VERSION  := 1.0.1
> +LIBTXC_DXTN_MD5  := 7105107f07ac49753f4b61ba9d0c79c5
> +LIBTXC_DXTN  := libtxc_dxtn-$(LIBTXC_DXTN_VERSION)
> +LIBTXC_DXTN_SUFFIX   := tar.bz2
> +LIBTXC_DXTN_URL  := 
> http://people.freedesktop.org/~cbrill/libtxc_dxtn/$(LIBTXC_DXTN).$(LIBTXC_DXTN_SUFFIX)
> +LIBTXC_DXTN_SOURCE   := $(SRCDIR)/$(LIBTXC_DXTN).$(LIBTXC_DXTN_SUFFIX)
> +LIBTXC_DXTN_DIR  := $(BUILDDIR)/$(LIBTXC_DXTN)
> +LIBTXC_DXTN_LICENSE  := MIT
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +LIBTXC_DXTN_CONF_TOOL:= autoconf
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/libtxc_dxtn.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, libtxc_dxtn)
> + @$(call install_fixup, libtxc_dxtn,PRIORITY,optional)
> + @$(call install_fixup, libtxc_dxtn,SECTION,base)
> + @$(call install_fixup, libtxc_dxtn,AUTHOR,"Lucas Stach 
> ")
> + @$(call install_fixup, libtxc_dxtn,DESCRIPTION,missing)
> +
> + @$(call install_lib, libtxc_dxtn, 0, 0, 0644, libtxc_dxtn)
> +
> + @$(call install_finish, libtxc_dxtn)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.7.0.rc3
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH v2] usb_modeswitch: udev helper

2016-02-11 Thread Michael Olbrich
On Fri, Jan 22, 2016 at 05:27:58PM +0100, Ladislav Michl wrote:
> Install also udev helper and systemd service file
> 
> Signed-off-by: Ladislav Michl 

Thanks, applied.

Michael

> ---
> Changelog:
>  - select TCL also depends on RUNTIME
>  - simplify 'or' in makefile's ifdef
>  - targetinstall file from pkgdir, not srcdir
>  (all above pointed by Michael Olbrich, thanks!)
> 
>  rules/usb-modeswitch.in   | 20 +---
>  rules/usb-modeswitch.make | 24 
>  2 files changed, 41 insertions(+), 3 deletions(-)
> 
> diff --git a/rules/usb-modeswitch.in b/rules/usb-modeswitch.in
> index aaefd86..3ccf31f 100644
> --- a/rules/usb-modeswitch.in
> +++ b/rules/usb-modeswitch.in
> @@ -1,11 +1,25 @@
>  ## SECTION=shell_and_console
>  
> -config USB_MODESWITCH
> - tristate
> - prompt "usb-modeswitch"
> +menuconfig USB_MODESWITCH
> + tristate "usb-modeswitch"
>   select LIBUSB
> + select TCL if (USB_MODESWITCH_UDEV_HELPER || 
> USB_MODESWITCH_SYSTEMD_UNIT) && RUNTIME
>   help
> USB_ModeSwitch is (surprise!) a mode switching tool
> for controlling 'multi-mode' USB devices.
>  
> +if USB_MODESWITCH
> +
> +config USB_MODESWITCH_UDEV_HELPER
> + bool "install udev helper"
> + default y
> + depends on UDEV
> +
> +config USB_MODESWITCH_SYSTEMD_UNIT
> + bool "install systemd unit file"
> + default y
> + depends on SYSTEMD
> +
> +endif
> +
>  # vim: set sw=8 ts=8 noet ft=kconfig:
> diff --git a/rules/usb-modeswitch.make b/rules/usb-modeswitch.make
> index 4ebf0e8..95149a3 100644
> --- a/rules/usb-modeswitch.make
> +++ b/rules/usb-modeswitch.make
> @@ -37,6 +37,18 @@ USB_MODESWITCH_MAKE_ENV:= $(CROSS_ENV)
>  USB_MODESWITCH_MAKE_OPT  := $(CROSS_ENV_PROGS)
>  
>  # 
> 
> +# Install
> +# 
> 
> +
> +$(STATEDIR)/usb-modeswitch.install:
> + @$(call targetinfo)
> + @$(call world/install, USB_MODESWITCH)
> + @mkdir -p $(USB_MODESWITCH_PKGDIR)/lib/systemd/system
> + @install -m 0644 $(USB_MODESWITCH_DIR)/usb_modeswitch@.service \
> + 
> $(USB_MODESWITCH_PKGDIR)/lib/systemd/system/usb_modeswitch@.service
> + @$(call touch)
> +
> +# 
> 
>  # Target-Install
>  # 
> 
>  
> @@ -51,6 +63,18 @@ $(STATEDIR)/usb-modeswitch.targetinstall:
>  
>   @$(call install_copy, usb-modeswitch, 0, 0, 0755, -, \
>   /usr/sbin/usb_modeswitch)
> +ifneq 
> ($(PTXCONF_USB_MODESWITCH_UDEV_HELPER)$(PTXCONF_USB_MODESWITCH_SYSTEMD_UNIT),)
> + @$(call install_copy, usb-modeswitch, 0, 0, 0755, -, \
> + /usr/sbin/usb_modeswitch_dispatcher)
> +endif
> +ifdef PTXCONF_USB_MODESWITCH_UDEV_HELPER
> + @$(call install_copy, usb-modeswitch, 0, 0, 0755, -, \
> + /lib/udev/usb_modeswitch)
> +endif
> +ifdef PTXCONF_USB_MODESWITCH_SYSTEMD_UNIT
> + @$(call install_copy, usb-modeswitch, 0, 0, 0644, -, \
> + /lib/systemd/system/usb_modeswitch@.service)
> +endif
>  
>   @$(call install_finish, usb-modeswitch)
>  
> -- 
> 2.1.4
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] valgrind: add upstream patch to make it work with kernel 4.5+

2016-02-11 Thread Michael Olbrich
On Mon, Feb 01, 2016 at 04:34:56PM +0100, Lucas Stach wrote:
> The current version of valgrind breaks if it is used together
> with kernel 4.5 running on the machine.
> 
> Upstream already has a fix applied, but that is not found in
> any released version yet. Pick this fix into our local patches
> to allow valgrind to work on recent kernels again.
> 
> Signed-off-by: Lucas Stach 

Thanks, applied.

Michael

> ---
>  ...Setting-RLIMIT_DATA-to-zero-breaks-with-l.patch | 141 
> +
>  patches/valgrind-3.11.0/series |   3 +-
>  2 files changed, 143 insertions(+), 1 deletion(-)
>  create mode 100644 
> patches/valgrind-3.11.0/0003-Bug-357833-Setting-RLIMIT_DATA-to-zero-breaks-with-l.patch
> 
> diff --git 
> a/patches/valgrind-3.11.0/0003-Bug-357833-Setting-RLIMIT_DATA-to-zero-breaks-with-l.patch
>  
> b/patches/valgrind-3.11.0/0003-Bug-357833-Setting-RLIMIT_DATA-to-zero-breaks-with-l.patch
> new file mode 100644
> index ..74246f612acb
> --- /dev/null
> +++ 
> b/patches/valgrind-3.11.0/0003-Bug-357833-Setting-RLIMIT_DATA-to-zero-breaks-with-l.patch
> @@ -0,0 +1,141 @@
> +From: mjw 
> +Date: Thu, 21 Jan 2016 11:37:43 +
> +Subject: [PATCH] Bug #357833 Setting RLIMIT_DATA to zero breaks with linux
> + 4.5+
> +
> +We used to set the process datasize rlimit to zero to prevent
> +any internal use of brk() from having any effect. But later
> +linux kernels redefine RLIMIT_DATA as the size of any data
> +areas, including some dynamic mmap memory allocations.
> +
> +See bug #357833 for the commit that went into linux 4.5
> +changing the definition of RLIMIT_DATA. So don't mess with
> +RLIMIT_DATA anymore. Just remember it for use in the syscall
> +wrappers.
> +
> +This also cleans up some hacks around the execv and spawn wrappers.
> +
> +git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15766 
> a5019735-40e9-0310-863c-91ae7b9d1cf9
> +---
> + coregrind/m_libcproc.c| 11 ---
> + coregrind/m_main.c| 15 ---
> + coregrind/m_syswrap/syswrap-generic.c |  3 ---
> + coregrind/m_syswrap/syswrap-solaris.c | 12 
> + 4 files changed, 8 insertions(+), 33 deletions(-)
> +
> +diff --git a/coregrind/m_libcproc.c b/coregrind/m_libcproc.c
> +index f314b55eea88..a30f7dc8f0c5 100644
> +--- a/coregrind/m_libcproc.c
>  b/coregrind/m_libcproc.c
> +@@ -450,9 +450,6 @@ void VG_(execv) ( const HChar* filename, const HChar** 
> argv )
> +HChar** envp;
> +SysRes res;
> + 
> +-   /* restore the DATA rlimit for the child */
> +-   VG_(setrlimit)(VKI_RLIMIT_DATA, _(client_rlimit_data));
> +-
> +envp = VG_(env_clone)(VG_(client_envp));
> +VG_(env_remove_valgrind_env_stuff)( envp, True /*ro_strings*/, NULL );
> + 
> +@@ -511,17 +508,9 @@ Int VG_(spawn) ( const HChar *filename, const HChar 
> **argv )
> + #  undef COPY_CHAR_TO_ARGENV
> + #  undef COPY_STRING_TOARGENV
> + 
> +-   /* HACK: Temporarily restore the DATA rlimit for spawned child. */
> +-   VG_(setrlimit)(VKI_RLIMIT_DATA, _(client_rlimit_data));
> +-
> +SysRes res = VG_(do_syscall5)(__NR_spawn, (UWord) filename, (UWord) 
> NULL, 0,
> +  (UWord) argenv, argenv_size);
> + 
> +-   /* Restore DATA rlimit back to its previous value set in m_main.c. */
> +-   struct vki_rlimit zero = { 0, 0 };
> +-   zero.rlim_max = VG_(client_rlimit_data).rlim_max;
> +-   VG_(setrlimit)(VKI_RLIMIT_DATA, );
> +-
> +VG_(free)(argenv);
> +for (HChar **p = envp; *p != NULL; p++) {
> +   VG_(free)(*p);
> +diff --git a/coregrind/m_main.c b/coregrind/m_main.c
> +index 1821c9412fa7..9b659ae564b5 100644
> +--- a/coregrind/m_main.c
>  b/coregrind/m_main.c
> +@@ -1627,7 +1627,6 @@ Int valgrind_main ( Int argc, HChar **argv, HChar 
> **envp )
> +Boollogging_to_fd  = False;
> +const HChar* xml_fname_unexpanded = NULL;
> +Int loglevel, i;
> +-   struct vki_rlimit zero = { 0, 0 };
> +XArray* addr2dihandle = NULL;
> + 
> +//
> +@@ -1800,13 +1799,15 @@ Int valgrind_main ( Int argc, HChar **argv, HChar 
> **envp )
> +VG_(debugLog)(1, "main", "... %s\n", VG_(name_of_launcher));
> + 
> +//--
> +-   // Get the current process datasize rlimit, and set it to zero.
> +-   // This prevents any internal uses of brk() from having any effect.
> +-   // We remember the old value so we can restore it on exec, so that
> +-   // child processes will have a reasonable brk value.
> ++   // We used to set the process datasize rlimit to zero to prevent
> ++   // any internal use of brk() from having any effect. But later
> ++   // linux kernels redefine RLIMIT_DATA as the size of any data
> ++   // areas, including some dynamic mmap memory allocations.
> ++   // See bug #357833 for the commit that went into linux 4.5
> ++   // changing 

Re: [ptxdist] [PATCH 1/2] Added cross library dependencies

2016-02-11 Thread Michael Olbrich
On Tue, Jan 26, 2016 at 02:22:16PM +0100, Tobias Schmidl wrote:
> Lots of boost repositories cannot be built if another boost lib isn't
> present. This patch adds some checks against this.
> 
> Signed-off-by: Tobias Schmidl 

Thanks, applied.

Michael

> ---
>  rules/boost.in | 15 ---
>  1 file changed, 12 insertions(+), 3 deletions(-)
> 
> diff --git a/rules/boost.in b/rules/boost.in
> index 7c196f4..f1ceeb0 100644
> --- a/rules/boost.in
> +++ b/rules/boost.in
> @@ -30,6 +30,7 @@ menuconfig BOOST
> For details see the project homepage:
>  
>   http://www.boost.org/
> +
>  if BOOST
>  comment "Targetinstall Options "
>  
> @@ -65,7 +66,10 @@ comment "Boost Libraries"
>  
>  config BOOST_ATOMIC
>   bool
> + select BOOST_CHRONO
> + select BOOST_DATE_TIME
>   select BOOST_SYSTEM
> + select BOOST_THREAD
>   prompt "atomic"
>   help
> Boost atomic library
> @@ -150,6 +154,11 @@ config BOOST_LOCALE
>  
>  config BOOST_LOG
>   bool
> + select BOOST_DATE_TIME
> + select BOOST_FILESYSTEM
> + select BOOST_REGEX
> + select BOOST_SYSTEM
> + select BOOST_THREAD
>   prompt "log"
>   help
> Boost log library
> @@ -158,13 +167,13 @@ config BOOST_MATH
>   bool
>   prompt "math"
>   help
> -   Boost iostream library
> +   Boost Math library
>  
>  config BOOST_MPI
>   bool
>   prompt "mpi"
>   help
> -   Boost iostream library
> +   Boost MPI library
>  
>  config BOOST_PROGRAM_OPTIONS
>   bool
> @@ -222,7 +231,7 @@ config BOOST_TIMER
>   select BOOST_SYSTEM
>   prompt "timer"
>   help
> -   Boost iostream library
> +   Boost timer library
>  
>  config BOOST_WAVE
>   bool
> -- 
> 2.1.4
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Added support for boost.python

2016-02-11 Thread Michael Olbrich
On Wed, Feb 10, 2016 at 09:52:10AM +0100, Tobias Schmidl wrote:
> This works both against python2 and python3.

Thanks, applied.

Michael

> 
> Signed-off-by: Tobias Schmidl 
> ---
>  rules/boost.in   | 30 +++---
>  rules/boost.make | 10 ++
>  2 files changed, 37 insertions(+), 3 deletions(-)
> 
> diff --git a/rules/boost.in b/rules/boost.in
> index f1ceeb0..3ed0253 100644
> --- a/rules/boost.in
> +++ b/rules/boost.in
> @@ -245,8 +245,32 @@ config BOOST_WAVE
>  
>  config BOOST_PYTHON
>   bool
> +
> +choice
>   prompt "python"
> - depends on BROKEN
> - help
> -   boost python support (still broken)
> + default BOOST_NOPYTHON
> +
> + config BOOST_NOPYTHON
> + bool
> + prompt "no python support"
> + help
> +   Select this option if you don't want to build boost.python.
> +
> + config BOOST_PYTHON2
> + bool
> + prompt "python2"
> + select PYTHON
> + select BOOST_PYTHON
> + help
> +   Select this option if you want to use boost.python in 
> combination with python2.
> +
> + config BOOST_PYTHON3
> + bool
> + prompt "python3"
> + select PYTHON3
> + select BOOST_PYTHON
> + help
> +   Select this option if you want to use boost.python in 
> combination with python3.
> +endchoice
> +
>  endif
> diff --git a/rules/boost.make b/rules/boost.make
> index e9a1e33..46858d0 100644
> --- a/rules/boost.make
> +++ b/rules/boost.make
> @@ -132,6 +132,16 @@ $(STATEDIR)/boost.prepare:
>   cd $(BOOST_DIR) && ./bootstrap.sh $(BOOST_CONF_OPT)
>   @cd $(BOOST_DIR) && \
>   echo "using gcc : $(PTXCONF_ARCH_STRING) : $(CROSS_CXX) ;" > 
> $(BOOST_DIR)/user-config.jam
> +
> +ifdef PTXCONF_BOOST_PYTHON3
> + @cd $(BOOST_DIR) && \
> + echo "using python : $(PYTHON3_MAJORMINOR) : 
> $(SYSROOT)/usr/bin/python : 
> $(SYSROOT)/usr/include/python$(PYTHON3_MAJORMINOR)m : 
> $(SYSROOT)/usr/lib/python$(PYTHON3_MAJORMINOR) ;" >> 
> $(BOOST_DIR)/user-config.jam
> +endif
> +ifdef PTXCONF_BOOST_PYTHON2
> + @cd $(BOOST_DIR) && \
> + echo "using python : $(PYTHON_MAJORMINOR) : 
> $(SYSROOT)/usr/bin/python : 
> $(SYSROOT)/usr/include/python$(PYTHON_MAJORMINOR)m : 
> $(SYSROOT)/usr/lib/python$(PYTHON_MAJORMINOR) ;" >> 
> $(BOOST_DIR)/user-config.jam
> +endif
> +
>   @echo "all:">  $(BOOST_DIR)/Makefile
>   @echo ' @$(BOOST_JAM) $(JAM_MAKE_OPT)'  >> $(BOOST_DIR)/Makefile
>   @echo "install:">> $(BOOST_DIR)/Makefile
> -- 
> 2.1.4
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Strange system library search paths with OSELAS.Toolchain

2016-02-11 Thread Michael Olbrich
On Tue, Feb 09, 2016 at 05:42:31PM +0100, Clemens Gruber wrote:
> On Tue, Feb 09, 2016 at 10:31:22AM +0100, Juergen Borleis wrote:
> > /sysroot-/sbin/ldconfig
> 
> Very nice, thank you! After running ldconfig on the target, running strace
> with /bin/true shows only one access for /etc/ld.so.preload before using
> the /etc/ld.so.cache successfully. That's a major improvement! Nearly 30
> syscalls less, per process :)
> 
> Now I'll just write a little ptxdist rule to call ldconfig once at
> initialization (or at every startup? Some distros seem to do that.)
> 
> If I ever want to support running opkg on the target, I should probably
> have a mechanism to automatically rerun ldconfig in case a library was
> changed.
> 
> > > I am curious: Do you also see those weird runtime paths on your ptxdist
> > > projects or is there something wrong with my toolchain / bsp build?
> > 
> > I saw these search paths on almost every system, independent of the 
> > distribution (embedded or not).
> 
> Maybe we could add a rule to ptxdist to run ldconfig by default on the
> target? Assuming that saving syscalls is beneficial for everybody?

rc.once would be the right tool for the job. I never bothered with it
because when starting an app with cold caches the startup time difference
was barely measurable.

Michael

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] ncurses: Added /usr/share/terminfo/d/dumb to PTXCONF_NCURSES_TERMCAP

2016-02-11 Thread Michael Olbrich
On Tue, Feb 02, 2016 at 03:59:41PM +0100, Gavin Schenk wrote:
> This is needed when using top in batch mode "top -b"

Thanks, applied.

Michael

> ---
>  rules/ncurses.make | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/rules/ncurses.make b/rules/ncurses.make
> index 57e8199..521af77 100644
> --- a/rules/ncurses.make
> +++ b/rules/ncurses.make
> @@ -212,6 +212,7 @@ ifdef PTXCONF_NCURSES_TERMCAP
>   @$(call install_copy, ncurses, 0, 0, 0644, -, 
> /usr/share/terminfo/l/linux, n);
>   @$(call install_copy, ncurses, 0, 0, 0644, -, 
> /usr/share/terminfo/s/screen, n);
>   @$(call install_copy, ncurses, 0, 0, 0644, -, 
> /usr/share/terminfo/s/screen-256color, n);
> + @$(call install_link, ncurses, /usr/share/terminfo/a/ansi, 
> /usr/share/terminfo/d/dumb);
>  endif
>  
>   @$(call install_finish, ncurses)
> -- 
> 1.9.1
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 1/2] mesa-demos: remove option to build OpenVG demos

2016-02-11 Thread Michael Olbrich
On Thu, Jan 28, 2016 at 01:13:43PM +0100, Lucas Stach wrote:
> Current MESA versions have dropped the VG state tracker, so
> there is no way to provide OpenVG acceleration anymore.
> Disable the respective demos unconditionally.
> 
> Signed-off-by: Lucas Stach 

Thanks, both applied.

Michael

> ---
>  rules/mesa-demos.in   | 20 
>  rules/mesa-demos.make |  4 +---
>  2 files changed, 1 insertion(+), 23 deletions(-)
> 
> diff --git a/rules/mesa-demos.in b/rules/mesa-demos.in
> index 5ea2f87ce099..192bbd01d0e9 100644
> --- a/rules/mesa-demos.in
> +++ b/rules/mesa-demos.in
> @@ -8,7 +8,6 @@ menuconfig MESA_DEMOS
>   select MESALIB_EGL  if MESA_DEMOS_EGL
>   select MESALIB_GLES1if MESA_DEMOS_GLES1
>   select MESALIB_GLES2if MESA_DEMOS_GLES2
> - select MESALIB_OPENVG   if MESA_DEMOS_VG
>   select MESALIB_EGL_WAYLAND  if MESA_DEMOS_WAYLAND
>   select XORG_LIB_X11 if MESA_DEMOS_X11
>   select XORG_LIB_XEXTif MESA_DEMOS_X11
> @@ -177,23 +176,4 @@ config MESA_DEMOS_ES2GEARS_WAYLAND
>  
>  endif
>  
> -menuconfig MESA_DEMOS_VG
> - bool
> - select MESA_DEMOS_GLES1
> - select MESA_DEMOS_EGL
> - select MESA_DEMOS_X11
> - prompt "OpenVG demos"
> -
> -if MESA_DEMOS_VG
> -
> -config MESA_DEMOS_VGIMAGE2TEX
> - bool
> - prompt "vgimage2tex"
> -
> -config MESA_DEMOS_TEX2VGIMAGE
> - bool
> - prompt "tex2vgimage"
> -
> -endif
> -
>  endif
> diff --git a/rules/mesa-demos.make b/rules/mesa-demos.make
> index a83d54e258e0..90ef9f9ac988 100644
> --- a/rules/mesa-demos.make
> +++ b/rules/mesa-demos.make
> @@ -44,7 +44,7 @@ MESA_DEMOS_CONF_OPT := \
>   --$(call ptx/endis, PTXCONF_MESA_DEMOS_EGL)-egl \
>   --$(call ptx/endis, PTXCONF_MESA_DEMOS_GLES1)-gles1 \
>   --$(call ptx/endis, PTXCONF_MESA_DEMOS_GLES2)-gles2 \
> - --$(call ptx/endis, PTXCONF_MESA_DEMOS_VG)-vg \
> + --disable-vg \
>   --disable-osmesa \
>   --disable-libdrm \
>   --$(call ptx/endis, PTXCONF_MESA_DEMOS_X11)-x11 \
> @@ -90,8 +90,6 @@ MESA_DEMOS_BIN-$(PTXCONF_MESA_DEMOS_ES2GEARS_SCREEN)
> += es2gears_screen
>  MESA_DEMOS_BIN-$(PTXCONF_MESA_DEMOS_ES2GEARS_WAYLAND)+= 
> es2gears_wayland
>  MESA_DEMOS_BIN-$(PTXCONF_MESA_DEMOS_ES2GEARS_X11)+= es2gears_x11
>  MESA_DEMOS_BIN-$(PTXCONF_MESA_DEMOS_ES2TRI)  += es2tri
> -MESA_DEMOS_BIN-$(PTXCONF_MESA_DEMOS_TEX2VGIMAGE) += tex2vgimage
> -MESA_DEMOS_BIN-$(PTXCONF_MESA_DEMOS_VGIMAGE2TEX) += vgimage2tex
>  
>  $(STATEDIR)/mesa-demos.targetinstall:
>   @$(call targetinfo)
> -- 
> 2.7.0.rc3
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 2/2] systemd: add option for seccomp support

2016-02-11 Thread Michael Olbrich
On Tue, Feb 09, 2016 at 05:31:14PM +0100, Clemens Gruber wrote:
> With seccomp support enabled, service files can limit the syscalls a
> process is allowed to use through the SystemCallFilter option.
> 
> Signed-off-by: Clemens Gruber 

Thanks, applied.

Michael

> ---
>  rules/systemd.in   | 8 
>  rules/systemd.make | 2 +-
>  2 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/rules/systemd.in b/rules/systemd.in
> index 979e32c..c58e424 100644
> --- a/rules/systemd.in
> +++ b/rules/systemd.in
> @@ -17,6 +17,7 @@ menuconfig SYSTEMD
>   select MACHINE_ID   if RUNTIME
>   select XZ   if SYSTEMD_XZ
>   select LZ4  if SYSTEMD_LZ4
> + select LIBSECCOMP   if SYSTEMD_SECCOMP
>   select LIBSELINUX   if GLOBAL_SELINUX
>   # for udev:
>   select ROOTFS_DEV
> @@ -94,5 +95,12 @@ config SYSTEMD_COREDUMP
>   help
> Enable this only if you need to debug a crashing systemd service
>  
> +config SYSTEMD_SECCOMP
> + bool
> + prompt "enable seccomp filtering support"
> + help
> +   Enable this if you want to use SystemCallFilter in service files
> +
> +
>  endif
>  
> diff --git a/rules/systemd.make b/rules/systemd.make
> index b2edb3d..5c87023 100644
> --- a/rules/systemd.make
> +++ b/rules/systemd.make
> @@ -73,7 +73,7 @@ SYSTEMD_CONF_OPT:= \
>   --enable-kmod \
>   --disable-xkbcommon \
>   --enable-blkid \
> - --disable-seccomp \
> + --$(call ptx/endis,PTXCONF_SYSTEMD_SECCOMP)-seccomp \
>   --disable-ima \
>   $(GLOBAL_SELINUX_OPTION) \
>   --disable-apparmor \
> -- 
> 2.7.1
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 1/2] libseccomp: new package

2016-02-11 Thread Michael Olbrich
On Tue, Feb 09, 2016 at 05:31:13PM +0100, Clemens Gruber wrote:
> Signed-off-by: Clemens Gruber 

Thanks, applied.

Note: The URL was broken for me so I had to change it. Please check if it
still works for you.

Michael

> ---
>  rules/libseccomp.in   | 13 
>  rules/libseccomp.make | 56 
> +++
>  2 files changed, 69 insertions(+)
>  create mode 100644 rules/libseccomp.in
>  create mode 100644 rules/libseccomp.make
> 
> diff --git a/rules/libseccomp.in b/rules/libseccomp.in
> new file mode 100644
> index 000..ece48a2
> --- /dev/null
> +++ b/rules/libseccomp.in
> @@ -0,0 +1,13 @@
> +## SECTION=system_libraries
> +
> +config LIBSECCOMP
> + bool
> + prompt "libseccomp"
> + help
> +   An Enhanced Seccomp (mode 2) Helper Library
> +
> +   The libseccomp library provides an easy to use, platform independent, 
> interface
> +   to the Linux Kernel's syscall filtering mechanism.  The libseccomp 
> API is
> +   designed to abstract away the underlying BPF based syscall filter 
> language and
> +   present a more conventional function-call based filtering interface 
> that should
> +   be familiar to, and easily adopted by, application developers.
> diff --git a/rules/libseccomp.make b/rules/libseccomp.make
> new file mode 100644
> index 000..3ae5823
> --- /dev/null
> +++ b/rules/libseccomp.make
> @@ -0,0 +1,56 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Clemens Gruber 
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBSECCOMP) += libseccomp
> +
> +#
> +# Paths and names
> +#
> +LIBSECCOMP_VERSION   := 2.2.3
> +LIBSECCOMP_MD5   := 7db418d35d7a6168400bf6b05502f8bf
> +LIBSECCOMP   := libseccomp-$(LIBSECCOMP_VERSION)
> +LIBSECCOMP_SUFFIX:= tar.gz
> +LIBSECCOMP_URL   := 
> https://github.com/downloads/seccomp/libseccomp/$(LIBSECCOMP).$(LIBSECCOMP_SUFFIX)
> +LIBSECCOMP_SOURCE:= $(SRCDIR)/$(LIBSECCOMP).$(LIBSECCOMP_SUFFIX)
> +LIBSECCOMP_DIR   := $(BUILDDIR)/$(LIBSECCOMP)
> +LIBSECCOMP_LICENSE   := LGPL-2.1
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +#
> +# autoconf
> +#
> +LIBSECCOMP_CONF_TOOL := autoconf
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/libseccomp.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, libseccomp)
> + @$(call install_fixup, libseccomp, PRIORITY, optional)
> + @$(call install_fixup, libseccomp, SECTION, base)
> + @$(call install_fixup, libseccomp, AUTHOR, "Clemens Gruber 
> ")
> + @$(call install_fixup, libseccomp, DESCRIPTION, missing)
> +
> + @$(call install_lib, libseccomp, 0, 0, 0644, libseccomp)
> +
> + @$(call install_finish, libseccomp)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.7.1
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] host-python

2016-02-11 Thread Erwin Rol
Hallo,

The host-python package removes the "python" file after install with the
following reason;

# remove "python" so that it doesn't interfere with the build
# machine's python
#
# the target build proces will only use python with the
# python-$(PYTHON_MAJORMINOR)

But isn't the reason of wanting host-python that the real host python
isn't good enough (wrong version) ?

So I don't really understand the idea behind using host-python and than
"breaking" it so it doesn't get found unless you change every reference
to "python" into "pyhton-2"

Do things break when "python" from host-python is found ?

- Erwin

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] barebox: Install bareboxcrc32 to sysroot-host to be able to generate crc32 codes that can be checked by barebox

2016-02-11 Thread Gavin Schenk
I want to create crc32 files in a new-image-generation package that can be 
processed by barebox.
---
 rules/barebox.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/barebox.make b/rules/barebox.make
index a9aac7d..cf04b0e 100644
--- a/rules/barebox.make
+++ b/rules/barebox.make
@@ -110,6 +110,7 @@ $(STATEDIR)/barebox.compile:
 $(STATEDIR)/barebox.install:
@$(call targetinfo)
@install -v -D -m755 $(BAREBOX_DIR)/scripts/bareboxenv 
$(PTXCONF_SYSROOT_HOST)/bin/bareboxenv
+   @install -v -D -m755 $(BAREBOX_DIR)/scripts/bareboxcrc32 
$(PTXCONF_SYSROOT_HOST)/bin/bareboxcrc32
 ifdef PTXCONF_ARCH_X86
@if [ -e $(BAREBOX_DIR)/scripts/setupmbr/setupmbr ]; then \
install -v -D -m755 $(BAREBOX_DIR)/scripts/setupmbr/setupmbr \
-- 
1.9.1


___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] PTXCONF_TARGET_EXTRA_CXXFLAGS

2016-02-11 Thread Erwin Rol
Hallo,

can PTXCONF_TARGET_EXTRA_CXXFLAGS be used on a per package basis ? I
need to pass -std=gnu++11 to Qt5 to build qtwebengine and as a test I
changed PTXCONF_TARGET_EXTRA_CXXFLAGS in ./ptxdist menuconfig and it
worked.

- Erwin


___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] libpoco: version bump 1.4.6p2 -> 1.6.1

2016-02-11 Thread Michael Olbrich
On Wed, Feb 03, 2016 at 07:51:22AM +0100, Tobias Schmidl wrote:
> See 
> https://raw.githubusercontent.com/pocoproject/poco/poco-1.6.1-release/CHANGELOG
>  for more information.
> 
> Signed-off-by: Tobias Schmidl 

Thanks, applied.

Michael

> ---
>  ...ke-Linux-configuration-crosscompile-aware.patch | 38 
> --
>  patches/poco-1.4.6p2/series|  5 ---
>  patches/poco-1.6.1/0001-libpcre-bug.patch  | 12 +++
>  .../0002-fix-parallel-building.patch   |  0
>  ...003-Include-pcre.h-for-an-unbundled-build.patch | 38 
> ++
>  patches/poco-1.6.1/series  |  3 ++
>  rules/poco.make|  9 ++---
>  7 files changed, 58 insertions(+), 47 deletions(-)
>  delete mode 100644 
> patches/poco-1.4.6p2/0001-make-Linux-configuration-crosscompile-aware.patch
>  delete mode 100644 patches/poco-1.4.6p2/series
>  create mode 100644 patches/poco-1.6.1/0001-libpcre-bug.patch
>  rename patches/{poco-1.4.6p2 => poco-1.6.1}/0002-fix-parallel-building.patch 
> (100%)
>  create mode 100644 
> patches/poco-1.6.1/0003-Include-pcre.h-for-an-unbundled-build.patch
>  create mode 100644 patches/poco-1.6.1/series
> 
> diff --git 
> a/patches/poco-1.4.6p2/0001-make-Linux-configuration-crosscompile-aware.patch 
> b/patches/poco-1.4.6p2/0001-make-Linux-configuration-crosscompile-aware.patch
> deleted file mode 100644
> index fb15644..000
> --- 
> a/patches/poco-1.4.6p2/0001-make-Linux-configuration-crosscompile-aware.patch
> +++ /dev/null
> @@ -1,38 +0,0 @@
> -From: Robert Schwebel 
> -Date: Fri, 24 Jun 2011 21:21:27 +0200
> -Subject: [PATCH] make Linux configuration crosscompile aware
> -
> -Currently, the "Linux" configuration cannot be cross compiled because
> -the compiler is configured unconditionally. We add the CROSS_COMPILE
> -prefix: this way it is easily possible to overwrite that variable from
> -the commandline and use any cross compiler.
> -
> -Signed-off-by: Robert Schwebel 
> 
> - build/config/Linux | 10 +-
> - 1 file changed, 5 insertions(+), 5 deletions(-)
> -
> -diff --git a/build/config/Linux b/build/config/Linux
> -index 4781a12..7612e59 100644
>  a/build/config/Linux
> -+++ b/build/config/Linux
> -@@ -15,14 +15,14 @@ LINKMODE ?= SHARED
> - #
> - # Define Tools
> - #
> --CC  = gcc
> --CXX = g++
> -+CC  = $(CROSS_COMPILE)gcc
> -+CXX = $(CROSS_COMPILE)g++
> - LINK= $(CXX)
> --LIB = ar -cr
> --RANLIB  = ranlib
> -+LIB = $(CROSS_COMPILE)ar -cr
> -+RANLIB  = $(CROSS_COMPILE)ranlib
> - SHLIB   = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@
> - SHLIBLN = $(POCO_BASE)/build/script/shlibln
> --STRIP   = strip
> -+STRIP   = $(CROSS_COMPILE)strip
> - DEP = $(POCO_BASE)/build/script/makedepend.gcc 
> - SHELL   = sh
> - RM  = rm -rf
> diff --git a/patches/poco-1.4.6p2/series b/patches/poco-1.4.6p2/series
> deleted file mode 100644
> index d5d1e3b..000
> --- a/patches/poco-1.4.6p2/series
> +++ /dev/null
> @@ -1,5 +0,0 @@
> -# generated by git-ptx-patches
> -#tag:base --start-number 1
> -0001-make-Linux-configuration-crosscompile-aware.patch
> -0002-fix-parallel-building.patch
> -# caa577b66d6611048eb3d4345dc8d6a4  - git-ptx-patches magic
> diff --git a/patches/poco-1.6.1/0001-libpcre-bug.patch 
> b/patches/poco-1.6.1/0001-libpcre-bug.patch
> new file mode 100644
> index 000..97d5d05
> --- /dev/null
> +++ b/patches/poco-1.6.1/0001-libpcre-bug.patch
> @@ -0,0 +1,12 @@
> +diff --git a/Foundation/Makefile b/Foundation/Makefile
> +index 45ade1c..895b575 100644
> +--- a/Foundation/Makefile
>  b/Foundation/Makefile
> +@@ -46,6 +46,7 @@ pcre_utf8_objects = pcre_ucd pcre_tables
> + 
> + ifdef POCO_UNBUNDLED
> + SYSLIBS += -lpcre -lz
> ++objects += $(pcre_utf8_objects) # unicode.cpp uses internal pcre tables
> + else
> + objects += $(zlib_objects) $(pcre_objects) $(pcre_utf8_objects)
> + endif
> diff --git a/patches/poco-1.4.6p2/0002-fix-parallel-building.patch 
> b/patches/poco-1.6.1/0002-fix-parallel-building.patch
> similarity index 100%
> rename from patches/poco-1.4.6p2/0002-fix-parallel-building.patch
> rename to patches/poco-1.6.1/0002-fix-parallel-building.patch
> diff --git 
> a/patches/poco-1.6.1/0003-Include-pcre.h-for-an-unbundled-build.patch 
> b/patches/poco-1.6.1/0003-Include-pcre.h-for-an-unbundled-build.patch
> new file mode 100644
> index 000..b5d6b35
> --- /dev/null
> +++ b/patches/poco-1.6.1/0003-Include-pcre.h-for-an-unbundled-build.patch
> @@ -0,0 +1,38 @@
> +From 94bb16fdeea5cd804c586b282cdbdd1c45360718 Mon Sep 17 00:00:00 2001
> +From: zosrothko 
> +Date: Tue, 17 Nov 2015 18:45:44 +0100
> +Subject: [PATCH] Include  for an unbundled build.
> +
> +---
> + Foundation/include/Poco/RegularExpression.h | 6 --
> + 1 file changed, 4 insertions(+), 2 deletions(-)
> +
> +diff --git 

Re: [ptxdist] [PATCH] libboost: version bump 1.59.0 -> 1.60.0

2016-02-11 Thread Michael Olbrich
On Wed, Feb 03, 2016 at 07:49:29AM +0100, Tobias Schmidl wrote:
> Hello all,
> 
> >
> > We have one patch for 1_59_0. Please check if it was applied or is still
> > needed.
> > 
> > Michael
> > 
> 
> yup, still applies. I've attached the corrected patch

Thanks, applied.

Michael

> 
> Best regards,
> 
> Tobias Schmidl


> ___
> ptxdist mailing list
> ptxdist@pengutronix.de


-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH v2] rootfs: Add Option to install /sbin/init as /init

2016-02-11 Thread Michael Olbrich
On Tue, Feb 02, 2016 at 12:56:00PM +0100, Markus Pargmann wrote:
> The kernel searches in initramfs for an executable /init file. So if we
> want to use initramfs as rootfs it is convenient to have a link from
> /init to /sbin/init.
> 
> Signed-off-by: Markus Pargmann 

Thanks, applied.

Michael

> ---
>  rules/rootfs.in   | 25 -
>  rules/rootfs.make |  7 +++
>  2 files changed, 31 insertions(+), 1 deletion(-)
> 
> diff --git a/rules/rootfs.in b/rules/rootfs.in
> index 80a730594892..5c3565f2f44d 100644
> --- a/rules/rootfs.in
> +++ b/rules/rootfs.in
> @@ -440,5 +440,28 @@ config ROOTFS_SERVICES
> If enabled, it installs the "./projectroot/etc/services" file if
> present, else a generic one from the ptxdist directory.
>  
> -endmenu
> +choice
> + prompt "install /init"
> + default ROOTFS_INIT_LINK
> +
> + config ROOTFS_INIT_LINK
> + bool
> + prompt "link to /sbin/init"
> + help
> +   Create a symlink from /init to /sbin/init. This is useful for
> +   initramfs for example in which /init is executed by default.
> +
> + config ROOTFS_INIT_BIN
> + bool
> + prompt "binary from file"
> + help
> +   Install the /init binary instead of a symlink to /sbin/init.
>  
> + config ROOTFS_INIT_NONE
> + bool
> + prompt "none"
> + help
> +   If enabled, no /init will be install.
> +endchoice
> +
> +endmenu
> diff --git a/rules/rootfs.make b/rules/rootfs.make
> index 65cf0d126336..7c2e61df9eb9 100644
> --- a/rules/rootfs.make
> +++ b/rules/rootfs.make
> @@ -240,6 +240,13 @@ ifdef PTXCONF_ROOTFS_SERVICES
>   @$(call install_alternative, rootfs, 0, 0, 0644, /etc/services)
>  endif
>  
> +ifdef PTXCONF_ROOTFS_INIT_LINK
> + @$(call install_link, rootfs, /sbin/init, /init)
> +endif
> +ifdef PTXCONF_ROOTFS_INIT_BIN
> + @$(call install_alternative, rootfs, 0, 0, 0755, /init)
> +endif
> +
>   @$(call install_finish, rootfs)
>  
>   @$(call touch)
> -- 
> 2.7.0.rc3
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de