[ptxdist] [PATCH] libwebsockets: version bump to 1.7.9

2017-08-02 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/libwebsockets.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/libwebsockets.make b/rules/libwebsockets.make
index ffaede3..fe1d1c4 100644
--- a/rules/libwebsockets.make
+++ b/rules/libwebsockets.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_LIBWEBSOCKETS) += libwebsockets
 #
 # Paths and names
 #
-LIBWEBSOCKETS_VERSION  := v1.3-chrome37-firefox30
-LIBWEBSOCKETS_MD5  := 63117f35174a5fe4ec062f6baa411638
+LIBWEBSOCKETS_VERSION  := v1.7.9
+LIBWEBSOCKETS_MD5  := 7b3692ead5ae00fd0e1d56c080170f07
 LIBWEBSOCKETS  := libwebsockets-$(LIBWEBSOCKETS_VERSION)
 LIBWEBSOCKETS_SUFFIX   := tar.gz
 LIBWEBSOCKETS_URL  := 
https://github.com/warmcat/libwebsockets/archive/$(LIBWEBSOCKETS_VERSION).$(LIBWEBSOCKETS_SUFFIX)
-- 
2.7.4
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] libwebsockets: version bump to 1.7.9

2017-08-03 Thread Denis OSTERLAND
Hi Michael,

git send-email with local postfix fails:
Aug  2 08:50:40 cwpc1435 postfix/smtp[6846]: E0E243E81D7: 
to=<ptxdist@pengutronix.de>, relay=mail.pengutronix.de[92.198.50.35]:25, 
delay=5.3,
delays=0.02/0.01/5.2/0.04, dsn=5.0.0, status=bounced (host 
mail.pengutronix.de[92.198.50.35] said: 550-Verification failed for 
<oster...@cwpc1435.dieh
lako.local> 550-Unrouteable address 550 Sender verification failed (in reply to 
RCPT TO command))

Our Windows admins don´t open SMTP port on Exchange server and I found no way 
to connect git-send-email using MAPI.

Evolution seems to use unicode 0xA0 instead of ASCII 0x20 for ' ' and Windows 
line ending (CRLF).

I have tried to send it to my account and foreward it using Outlook Web App, 
but it fails too.

Seems like the only option is to use my private account, what I don´t want.

Best regards
Denis
Am Donnerstag, den 03.08.2017, 08:58 +0200 schrieb Michael Olbrich:
> On Wed, Aug 02, 2017 at 06:59:42AM +, Denis OSTERLAND wrote:
> > 
> > Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
> > ---
> >  rules/libwebsockets.make | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/rules/libwebsockets.make b/rules/libwebsockets.make
> > index ffaede3..fe1d1c4 100644
> > --- a/rules/libwebsockets.make
> > +++ b/rules/libwebsockets.make
> > @@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_LIBWEBSOCKETS) += libwebsockets
> >  #
> >  # Paths and names
> >  #
> > -LIBWEBSOCKETS_VERSION  := v1.3-chrome37-firefox30
> > -LIBWEBSOCKETS_MD5  := 63117f35174a5fe4ec062f6baa411638
> > +LIBWEBSOCKETS_VERSION  := v1.7.9
> > +LIBWEBSOCKETS_MD5  := 7b3692ead5ae00fd0e1d56c080170f07
> >  LIBWEBSOCKETS  := libwebsockets-$(LIBWEBSOCKETS_VERSION)
> >  LIBWEBSOCKETS_SUFFIX   := tar.gz
> >  LIBWEBSOCKETS_URL  := 
> > https://github.com/warmcat/libwebsockets/archive/$(LIBWEBSOCKETS_VERSION).$(LIBWEBSOCKETS_SUFFIX)
> You mailer broke the white-spaces. Please resent. There are a lot of
> tutorials out there, how to send patches with various email clients.
> If all fails, sending the patch as attachment works too. But it may take me
> longer to apply it because it's more work for me.
> 
> Michael
> 
> > 
> > -- 
> > 2.7.4
> > Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
> > Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
> > (Mitglied)
> > Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
> > 620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-
> > Stiftung – Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 
> > –
> > Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
> > Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
> > Dipl.-Kfm.
> > Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. 
> > Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH)
> > Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
> > ___
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede
> > unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> > The contents of the above mentioned e-mail is not legally binding. This 
> > e-mail contains confidential and/or legally protected information. Please
> > inform us if you have received this e-mail by mistake and delete it in such 
> > a case. Each unauthorized reproduction, disclosure, alteration,
> > distribution and/or publication of this e-mail is strictly prohibited.
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich

[ptxdist] [PATCH v2] wget: version bump 1.11.4 -> 1.19.1

2017-08-07 Thread Denis OSTERLAND
From: Denis OSTERLAND <denis.osterl...@diehl.com>

Add configure commandline options.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 patches/wget-1.19.1/CVE-2017-6508.patch | 31 +++
 patches/wget-1.19.1/series  |  1 +
 rules/wget.make | 23 +++
 3 files changed, 51 insertions(+), 4 deletions(-)
 create mode 100644 patches/wget-1.19.1/CVE-2017-6508.patch
 create mode 100644 patches/wget-1.19.1/series

diff --git a/patches/wget-1.19.1/CVE-2017-6508.patch 
b/patches/wget-1.19.1/CVE-2017-6508.patch
new file mode 100644
index 000..bb2f63f
--- /dev/null
+++ b/patches/wget-1.19.1/CVE-2017-6508.patch
@@ -0,0 +1,31 @@
+From: Tim Rühsen <tim.rueh...@gmx.de>
+Date: Mon Mar 6 10:04:22 2017 +0100
+Subject: Fix CRLF injection in Wget host part
+
+* src/url.c (url_parse): Reject control characters in host part of URL
+
+Reported-by: Orange Tsai
+
+commit 4d729e322fae359a1aefaafec1144764a54e8ad4
+diff --git a/src/url.c b/src/url.c
+index 8f8ff0b8..7d36b27d 100644
+--- a/src/url.c
 b/src/url.c
+@@ -925,6 +925,17 @@ url_parse (const char *url, int *error, struct iri *iri, 
bool percent_encode)
+   url_unescape (u->host);
+   host_modified = true;
+ 
++  /* check for invalid control characters in host name */
++  for (p = u->host; *p; p++)
++{
++  if (c_iscntrl(*p))
++{
++  url_free(u);
++  error_code = PE_INVALID_HOST_NAME;
++  goto error;
++}
++}
++
+   /* Apply IDNA regardless of iri->utf8_encode status */
+   if (opt.enable_iri && iri)
+ {
diff --git a/patches/wget-1.19.1/series b/patches/wget-1.19.1/series
new file mode 100644
index 000..f58bfe3
--- /dev/null
+++ b/patches/wget-1.19.1/series
@@ -0,0 +1 @@
+CVE-2017-6508.patch
diff --git a/rules/wget.make b/rules/wget.make
index a315e01..0c54bc4 100644
--- a/rules/wget.make
+++ b/rules/wget.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_WGET) += wget
 #
 # Paths and names
 #
-WGET_VERSION   := 1.11.4
-WGET_MD5   := 69e8a7296c0e12c53bd9ffd786462e87
+WGET_VERSION   := 1.19.1
+WGET_MD5   := 87cea36b7161fd43e3fd51a4e8b89689
 WGET   := wget-$(WGET_VERSION)
 WGET_SUFFIX:= tar.gz
 WGET_URL   := $(call ptx/mirror, GNU, wget/$(WGET).$(WGET_SUFFIX))
@@ -40,8 +40,23 @@ WGET_ENV := \
 WGET_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
$(GLOBAL_IPV6_OPTION) \
-   --without-socks \
-   --without-ssl
+   --disable-iri \
+   --disable-pcre \
+   --disable-xattr \
+   --enable-assert \
+   --enable-threads=posix \
+   --disable-valgrind-tests \
+   --with-cares \
+   --with-included-libunistring \
+   --with-libidn=/usr \
+   --with-metalink \
+   --without-openssl \
+   --without-included-regex \
+   --without-libpsl \
+   --without-libuuid \
+   --without-ssl \
+   --without-zlib
+
 
 # 
 # Target-Install
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] libssh2: version bump to 1.8.0

2017-08-04 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/libssh2.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/libssh2.make b/rules/libssh2.make
index d683c67..2cc29da 100644
--- a/rules/libssh2.make
+++ b/rules/libssh2.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_LIBSSH2) += libssh2
 #
 # Paths and names
 #
-LIBSSH2_VERSION:= 1.2.4
-LIBSSH2_MD5:= 4d65a66d5f232e5bb1d05b311e43d46d
+LIBSSH2_VERSION:= 1.8.0
+LIBSSH2_MD5:= 3d1147cae66e2959ea5441b183de1b1c
 LIBSSH2:= libssh2-$(LIBSSH2_VERSION)
 LIBSSH2_SUFFIX := tar.gz
 LIBSSH2_URL:= http://www.libssh2.org/download/$(LIBSSH2).$(LIBSSH2_SUFFIX)
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] libwebsockets: version bump to 1.7.9

2017-08-04 Thread Denis OSTERLAND
Hi Clemens,

thanks for that hint.
Unfortunately using preformated text does not work properly.
If line starts with " #" it uses 0xa0 too.

I found a workaround, but I am not yet lucky with it.
 - git format-patch
 - add "To:" line
 - move to ~/.local/share/evolution/mail/local/.Outbox/new/

This folder is a normal maildir so I´m looking for a possibility to configure 
some sendmail providing package
to put it there without any further processing.

Best regards
Denis

Am Freitag, den 04.08.2017, 14:22 +0200 schrieb Clemens Gruber:
> Hi Denis,
> 
> On Thu, Aug 03, 2017 at 10:59:43AM +, Denis OSTERLAND wrote:
> > 
> > Evolution seems to use unicode 0xA0 instead of ASCII 0x20 for ' ' and 
> > Windows line ending (CRLF).
> > 
> > I have tried to send it to my account and foreward it using Outlook Web 
> > App, but it fails too.
> > 
> > Seems like the only option is to use my private account, what I don´t want.
> Take a look at: 
> https://www.kernel.org/doc/html/v4.12/process/email-clients.html
> There are some client-specific hints as well.
> 
> Regards,
> Clemens
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] wget: version bump to 1.19.1

2017-08-07 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 patches/wget-1.19.1/CVE-2017-6508.patch | 31 +++
 patches/wget-1.19.1/series  |  1 +
 rules/wget.make |  5 ++---
 3 files changed, 34 insertions(+), 3 deletions(-)
 create mode 100644 patches/wget-1.19.1/CVE-2017-6508.patch
 create mode 100644 patches/wget-1.19.1/series

diff --git a/patches/wget-1.19.1/CVE-2017-6508.patch 
b/patches/wget-1.19.1/CVE-2017-6508.patch
new file mode 100644
index 000..bb2f63f
--- /dev/null
+++ b/patches/wget-1.19.1/CVE-2017-6508.patch
@@ -0,0 +1,31 @@
+From: Tim Rühsen <tim.rueh...@gmx.de>
+Date: Mon Mar 6 10:04:22 2017 +0100
+Subject: Fix CRLF injection in Wget host part
+
+* src/url.c (url_parse): Reject control characters in host part of URL
+
+Reported-by: Orange Tsai
+
+commit 4d729e322fae359a1aefaafec1144764a54e8ad4
+diff --git a/src/url.c b/src/url.c
+index 8f8ff0b8..7d36b27d 100644
+--- a/src/url.c
 b/src/url.c
+@@ -925,6 +925,17 @@ url_parse (const char *url, int *error, struct iri *iri, 
bool percent_encode)
+   url_unescape (u->host);
+   host_modified = true;
+ 
++  /* check for invalid control characters in host name */
++  for (p = u->host; *p; p++)
++{
++  if (c_iscntrl(*p))
++{
++  url_free(u);
++  error_code = PE_INVALID_HOST_NAME;
++  goto error;
++}
++}
++
+   /* Apply IDNA regardless of iri->utf8_encode status */
+   if (opt.enable_iri && iri)
+ {
diff --git a/patches/wget-1.19.1/series b/patches/wget-1.19.1/series
new file mode 100644
index 000..f58bfe3
--- /dev/null
+++ b/patches/wget-1.19.1/series
@@ -0,0 +1 @@
+CVE-2017-6508.patch
diff --git a/rules/wget.make b/rules/wget.make
index a315e01..d4d3494 100644
--- a/rules/wget.make
+++ b/rules/wget.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_WGET) += wget
 #
 # Paths and names
 #
-WGET_VERSION   := 1.11.4
-WGET_MD5   := 69e8a7296c0e12c53bd9ffd786462e87
+WGET_VERSION   := 1.19.1
+WGET_MD5   := 87cea36b7161fd43e3fd51a4e8b89689
 WGET   := wget-$(WGET_VERSION)
 WGET_SUFFIX:= tar.gz
 WGET_URL   := $(call ptx/mirror, GNU, wget/$(WGET).$(WGET_SUFFIX))
@@ -40,7 +40,6 @@ WGET_ENV := \
 WGET_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
$(GLOBAL_IPV6_OPTION) \
-   --without-socks \
--without-ssl
 
 # 
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] wget: version bump to 1.19.1

2017-08-07 Thread Denis OSTERLAND
Am Montag, den 07.08.2017, 09:46 +0200 schrieb Michael Olbrich:
> On Mon, Aug 07, 2017 at 05:59:17AM +0000, Denis OSTERLAND wrote:
> > 
> > Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
> This patch does not apply.
On my PC mbox received from ptxdist mailing-list applies to 
22c4eb289f151c4aba96a7906a57fb811392bfb3.
Do you have some additional info why?

osterlad@cwpc1435:~/buildbox/ptxdist/ptxdist-master$ git describe 
ptxdist-2017.07.0-11-g22c4eb2
osterlad@cwpc1435:~/buildbox/ptxdist/ptxdist-master$ git am 
~/tmp/\[ptxdist\]_\[PATCH\]_wget\:_version_bump_to_1.19.1.mbox
Applying: wget: version bump to 1.19.1
.git/rebase-apply/patch:31: trailing whitespace.
 
warning: 1 line adds whitespace errors.
osterlad@cwpc1435:~/buildbox/ptxdist/ptxdist-master$ git describe 
ptxdist-2017.07.0-12-gbb44dc0
> 
> Michael
> 
> > 
> > ---
> >  patches/wget-1.19.1/CVE-2017-6508.patch | 31 
> > +++
> >  patches/wget-1.19.1/series  |  1 +
> >  rules/wget.make |  5 ++---
> >  3 files changed, 34 insertions(+), 3 deletions(-)
> >  create mode 100644 patches/wget-1.19.1/CVE-2017-6508.patch
> >  create mode 100644 patches/wget-1.19.1/series
> > 
> > diff --git a/patches/wget-1.19.1/CVE-2017-6508.patch 
> > b/patches/wget-1.19.1/CVE-2017-6508.patch
> > new file mode 100644
> > index 000..bb2f63f
> > --- /dev/null
> > +++ b/patches/wget-1.19.1/CVE-2017-6508.patch
> > @@ -0,0 +1,31 @@
> > +From: Tim Rühsen <tim.rueh...@gmx.de>
> > +Date: Mon Mar 6 10:04:22 2017 +0100
> > +Subject: Fix CRLF injection in Wget host part
> > +
> > +* src/url.c (url_parse): Reject control characters in host part of URL
> > +
> > +Reported-by: Orange Tsai
> > +
> > +commit 4d729e322fae359a1aefaafec1144764a54e8ad4
> > +diff --git a/src/url.c b/src/url.c
> > +index 8f8ff0b8..7d36b27d 100644
> > +--- a/src/url.c
> >  b/src/url.c
> > +@@ -925,6 +925,17 @@ url_parse (const char *url, int *error, struct iri 
> > *iri, bool percent_encode)
> > +   url_unescape (u->host);
> > +   host_modified = true;
> > + 
> > ++  /* check for invalid control characters in host name */
> > ++  for (p = u->host; *p; p++)
> > ++{
> > ++  if (c_iscntrl(*p))
> > ++{
> > ++  url_free(u);
> > ++  error_code = PE_INVALID_HOST_NAME;
> > ++  goto error;
> > ++}
> > ++}
> > ++
> > +   /* Apply IDNA regardless of iri->utf8_encode status */
> > +   if (opt.enable_iri && iri)
> > + {
> > diff --git a/patches/wget-1.19.1/series b/patches/wget-1.19.1/series
> > new file mode 100644
> > index 000..f58bfe3
> > --- /dev/null
> > +++ b/patches/wget-1.19.1/series
> > @@ -0,0 +1 @@
> > +CVE-2017-6508.patch
> > diff --git a/rules/wget.make b/rules/wget.make
> > index a315e01..d4d3494 100644
> > --- a/rules/wget.make
> > +++ b/rules/wget.make
> > @@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_WGET) += wget
> >  #
> >  # Paths and names
> >  #
> > -WGET_VERSION   := 1.11.4
> > -WGET_MD5   := 69e8a7296c0e12c53bd9ffd786462e87
> > +WGET_VERSION   := 1.19.1
> > +WGET_MD5   := 87cea36b7161fd43e3fd51a4e8b89689
> >  WGET   := wget-$(WGET_VERSION)
> >  WGET_SUFFIX:= tar.gz
> >  WGET_URL   := $(call ptx/mirror, GNU, wget/$(WGET).$(WGET_SUFFIX))
> > @@ -40,7 +40,6 @@ WGET_ENV := \
> >  WGET_AUTOCONF := \
> >     $(CROSS_AUTOCONF_USR) \
> >     $(GLOBAL_IPV6_OPTION) \
> > -   --without-socks \
> >     --without-ssl
> >  
> >  # 
> > 
> > -- 
> > 2.7.4
> > 
> > 
> > Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
> > Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
> > (Mitglied)
> > Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
> > 620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-
> > Stiftung – Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 
> > –
> > Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
> > Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
> > Dipl.-Kfm.
> > Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. 
> > Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH)
> > Rainer von Borstel

Re: [ptxdist] [PATCH] libwebsockets: version bump to 1.7.9

2017-08-07 Thread Denis OSTERLAND
Hi Ian,

thanks for sharing your experience with Evolution.
Am Freitag, den 04.08.2017, 18:20 +0100 schrieb Ian Abbott:
> On 03/08/17 11:59, Denis OSTERLAND wrote:
> > 
> > Our Windows admins don´t open SMTP port on Exchange server and I found no 
> > way to connect git-send-email using MAPI.
> So they don't open the 'Mail submission agent' port (587) or the 'SMTPS' 
> port (unofficially 465) either?
Yes.
> 
> > 
> > Evolution seems to use unicode 0xA0 instead of ASCII 0x20 for ' ' and 
> > Windows line ending (CRLF).
> How does Evolution access your Exchange server?  Using evolution-ews or 
> evolution-mapi?  If you are using EWS, you might be able to set up a 
evolution-ews
> local 'DavMail' Gateway to access it using standard email protocols. See 
> http://davmail.sourceforge.net/ .  Then you could configure git 
> send-email to use the local DavMail gateway.
Thanks for that hint.
> 
> Our company used to have an Exchange server (with Email submission ports 
> open), but I set it up to send and receive outside emails via a Postfix 
> backend running on a Linux box, because I didn't want to expose the 
> Exchange server to the Internet directly.  Also, I didn't trust Exchange 
> enough to forward emails from 'git send-email' intact without breaking 
> them in some way, so I configured git to talk to the Postfix server 
> directly!
I run postfix in local only mode and configured it accept any messages, as 
posted here
https://askubuntu.com/questions/206766/local-only-sendmail-that-delivers-all-mail-to-a-directory
, and added local account to Evolution.
So receive e-mails I sent with git send-email in my local account
and I can drag-and-drop them to outbox and synchronize.
This seems to work.

I understand and agree your concerns about Exchange server to manipulate 
e-mails.
> 
> > 
> > 
> > I have tried to send it to my account and foreward it using Outlook Web 
> > App, but it fails too.
> > 
> > Seems like the only option is to use my private account, what I don´t want.
> > 
> > Best regards
> > Denis
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2] libssh2: version bump 1.2.4 -> 1.8.0.

2017-08-07 Thread Denis OSTERLAND
From: Denis OSTERLAND <denis.osterl...@diehl.com>

Add configure command-line options.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/libssh2.make | 22 ++
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/rules/libssh2.make b/rules/libssh2.make
index d683c67..dcf0fdd 100644
--- a/rules/libssh2.make
+++ b/rules/libssh2.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_LIBSSH2) += libssh2
 #
 # Paths and names
 #
-LIBSSH2_VERSION:= 1.2.4
-LIBSSH2_MD5:= 4d65a66d5f232e5bb1d05b311e43d46d
+LIBSSH2_VERSION:= 1.8.0
+LIBSSH2_MD5:= 3d1147cae66e2959ea5441b183de1b1c
 LIBSSH2:= libssh2-$(LIBSSH2_VERSION)
 LIBSSH2_SUFFIX := tar.gz
 LIBSSH2_URL:= http://www.libssh2.org/download/$(LIBSSH2).$(LIBSSH2_SUFFIX)
@@ -36,9 +36,23 @@ LIBSSH2_ENV  := $(CROSS_ENV)
 #
 LIBSSH2_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
-   --with-libz-prefix=$(SYSROOT)/usr \
+   --disable-clear-memory \
+   --disable-gex-new \
+   --disable-largefile \
+   --disable-rpath \
+   --enable-crypt-none \
+   --enable-debug \
+   --enable-examples-build \
+   --enable-hidden-symbols \
+   --enable-mac-none \
--with-libssl-prefix=$(SYSROOT)/usr \
-   --with-openssl
+   --with-libz \
+   --with-libz-prefix=$(SYSROOT)/usr \
+   --with-openssl \
+   --without-libgcrypt \
+   --without-mbedtls \
+   --without-wincng
+
 
 # 
 # Target-Install
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] screen: version bump 4.0.3 -> 4.5.0

2017-09-15 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 .../0001-don-t-link-against-libelf.patch   |  35 --
 .../0003-Fix-screenencodings-dir.patch |  27 --
 patches/screen-4.0.3/series|   6 -
 .../0001-remove-configure-AC_TRY_RUN-tests.patch}  | 130 
 .../0002-autoconf-cleanup.patch}   | 143 
 .../0003-Fix-some-typos-found-by-Lintian.patch |  48 +++
 ...-composed-characters-with-their-respectiv.patch | 363 +
 .../0005-show-encoding-in-hardstatus.patch |  52 +++
 .../0006-Unbreak-several-useful-keybindings.patch  |  22 ++
 ...ge-escalation-by-reverting-upstream-commi.patch |  30 ++
 ...l-garbage-in-Debian-Installer-over-serial.patch |  24 ++
 ...ogfile-s-name-that-begins-with-the-symbol.patch |  77 +
 patches/{screen-4.0.3 => screen-4.5.0}/autogen.sh  |   0
 patches/screen-4.5.0/series|  12 +
 rules/screen.make  |   5 +-
 15 files changed, 756 insertions(+), 218 deletions(-)
 delete mode 100644 patches/screen-4.0.3/0001-don-t-link-against-libelf.patch
 delete mode 100644 patches/screen-4.0.3/0003-Fix-screenencodings-dir.patch
 delete mode 100644 patches/screen-4.0.3/series
 rename patches/{screen-4.0.3/0002-remove-configure-AC_TRY_RUN-tests.patch => 
screen-4.5.0/0001-remove-configure-AC_TRY_RUN-tests.patch} (88%)
 rename patches/{screen-4.0.3/0004-autoconf-cleanup.patch => 
screen-4.5.0/0002-autoconf-cleanup.patch} (74%)
 create mode 100644 
patches/screen-4.5.0/0003-Fix-some-typos-found-by-Lintian.patch
 create mode 100644 
patches/screen-4.5.0/0004-Replace-the-composed-characters-with-their-respectiv.patch
 create mode 100644 patches/screen-4.5.0/0005-show-encoding-in-hardstatus.patch
 create mode 100644 
patches/screen-4.5.0/0006-Unbreak-several-useful-keybindings.patch
 create mode 100644 
patches/screen-4.5.0/0007-Fix-privilege-escalation-by-reverting-upstream-commi.patch
 create mode 100644 
patches/screen-4.5.0/0008-Fix-terminal-garbage-in-Debian-Installer-over-serial.patch
 create mode 100644 
patches/screen-4.5.0/0009-Ignore-logfile-s-name-that-begins-with-the-symbol.patch
 rename patches/{screen-4.0.3 => screen-4.5.0}/autogen.sh (100%)
 create mode 100644 patches/screen-4.5.0/series

diff --git a/patches/screen-4.0.3/0001-don-t-link-against-libelf.patch 
b/patches/screen-4.0.3/0001-don-t-link-against-libelf.patch
deleted file mode 100644
index 84ab86e..000
--- a/patches/screen-4.0.3/0001-don-t-link-against-libelf.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From: Michael Olbrich <m.olbr...@pengutronix.de>
-Date: Sun, 27 Mar 2011 15:19:15 +0200
-Subject: [PATCH] don't link against libelf
-
-libelf is not used. It's just some broken configure check.
-Patch from gentoo.
-
-Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de>

- configure.in |9 -
- 1 files changed, 0 insertions(+), 9 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index 34c9372..c1460af 100644
 a/configure.in
-+++ b/configure.in
-@@ -195,15 +195,6 @@ AC_EGREP_CPP(yes,
- #endif
- ], LIBS="$LIBS -lsocket -linet";seqptx=1)
- 
--oldlibs="$LIBS"
--LIBS="$LIBS -lelf"
--AC_CHECKING(SVR4)
--AC_TRY_LINK([#include 
--],,
--[AC_CHECK_HEADER(dwarf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN),
--[AC_CHECK_HEADER(elf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN))])]
--,LIBS="$oldlibs")
--
- AC_CHECKING(for Solaris 2.x)
- AC_EGREP_CPP(yes,
- [#if defined(SVR4) && defined(sun)
--- 
-1.7.4.1
-
diff --git a/patches/screen-4.0.3/0003-Fix-screenencodings-dir.patch 
b/patches/screen-4.0.3/0003-Fix-screenencodings-dir.patch
deleted file mode 100644
index 18ae4ff..000
--- a/patches/screen-4.0.3/0003-Fix-screenencodings-dir.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From: Marc Kleine-Budde <m...@pengutronix.de>
-Date: Sun, 27 Mar 2011 15:18:27 +0200
-Subject: [PATCH] Fix screenencodings dir
-
-This patch fixes the assignement of the SCREENENCODINGS variable which was 
holding "${}" before.
-
-Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de>

- configure.in |2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index 419279d..5411add 100644
 a/configure.in
-+++ b/configure.in
-@@ -637,7 +637,7 @@ AC_MSG_RESULT($ETCSCREENRC)
- SCREENENCODINGS="\"/usr/local/lib/screen/utf8encodings\""
- if test -n "$datadir"; then
- eval SCREENENCODINGS="$datadir/screen/utf8encodings"
--SCREENENCODINGS="\"$SCREENENCODINGS\""
-+eval SCREENENCODINGS="\\\"$SCREENENCODINGS\\\""
- fi
- AC_MSG_CHECKING(for the utf8-encodings location)
- AC_DEFINE_UNQUOTED(SCREENENCODINGS,$SCREENENCODINGS)
--- 
-1.7.4.1
-
diff --git a/patches/screen-4.0.3/series b/patches/screen-4.0.3/series
deleted file mode 100644
index 92c8f7c..000
--- a/pat

[ptxdist] [PATCH] screen: Fix ptxdist error message.

2017-09-15 Thread Denis OSTERLAND
Copy from causes this error message:
ptxdist: error: file 'BSP/platform-Name/packages/screen-4.5.0/usr/bin/screen' 
is a link

Install it as source does, to avoid error message.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/screen.make | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rules/screen.make b/rules/screen.make
index 82a00cd..3afc965 100644
--- a/rules/screen.make
+++ b/rules/screen.make
@@ -53,7 +53,8 @@ $(STATEDIR)/screen.targetinstall:
@$(call install_fixup, screen,AUTHOR,"Robert Schwebel 
<r.schwe...@pengutronix.de>")
@$(call install_fixup, screen,DESCRIPTION,missing)
 
-   @$(call install_copy, screen, 0, 0, 0755, -, /usr/bin/screen)
+   @$(call install_copy, screen, 0, 0, 0755, -, 
/usr/bin/screen-$(SCREEN_VERSION))
+   @$(call install_link, screen, screen-$(SCREEN_VERSION), /usr/bin/screen)
 
 ifdef PTXCONF_SCREEN_ETC_SCREENRC
@$(call install_alternative, screen, 0, 0, 0644, /etc/screenrc, n)
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] lua: version bump 5.1.4 -> 5.3.4

2017-09-15 Thread Denis OSTERLAND
Instead of write own build rules with autoconf tools,
only adapt projects make files to work in ptxdist environment.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 ...ly-crafted-precompiled-code-can-crash-Lua.patch |  13 -
 ...ble-to-create-functions-that-return-too-m.patch |  14 -
 ...generation-for-some-particular-boolean-ex.patch |  72 --
 ...le-may-invalidate-a-reference-to-a-table-.patch |  52 --
 ...nv-does-not-check-whether-it-has-an-argum.patch |  32 -
 ...stuck-during-parsing-and-avoids-proper-re.patch |  35 -
 ...at-may-get-buffer-as-an-argument-when-the.patch |  44 -
 ...n-may-return-garbage-if-second-read-fails.patch |  37 -
 ...generation-for-some-particular-boolean-ex.patch |  56 --
 ...metamethod-may-not-work-if-metatable-is-i.patch |  37 -
 ...may-collect-a-prototype-while-building-it.patch |  31 -
 ...pport-to-ptxdist-1.99-remove-old-Makefile.patch | 151 
 ...upport-to-ptxdist-1.99-add-autoconf-files.patch | 918 -
 ...upport-to-ptxdist-1.99-add-automake-files.patch | 125 ---
 patches/lua-5.1.4/autogen.sh   |   1 -
 patches/lua-5.1.4/series   |  19 -
 ...001-Cross-compile-in-ptxdist-envirionment.patch | 105 +++
 .../lua-5.3.4/0002-Install-pkgconfig-file.patch|  61 ++
 patches/lua-5.3.4/series   |   5 +
 rules/lua.in   |   9 +-
 rules/lua.make |  20 +-
 21 files changed, 182 insertions(+), 1655 deletions(-)
 delete mode 100644 
patches/lua-5.1.4/0001-Maliciously-crafted-precompiled-code-can-crash-Lua.patch
 delete mode 100644 
patches/lua-5.1.4/0002-It-is-possible-to-create-functions-that-return-too-m.patch
 delete mode 100644 
patches/lua-5.1.4/0003-Wrong-code-generation-for-some-particular-boolean-ex.patch
 delete mode 100644 
patches/lua-5.1.4/0004-luaV_settable-may-invalidate-a-reference-to-a-table-.patch
 delete mode 100644 
patches/lua-5.1.4/0005-debug.getfenv-does-not-check-whether-it-has-an-argum.patch
 delete mode 100644 
patches/lua-5.1.4/0006-GC-may-get-stuck-during-parsing-and-avoids-proper-re.patch
 delete mode 100644 
patches/lua-5.1.4/0007-string.format-may-get-buffer-as-an-argument-when-the.patch
 delete mode 100644 
patches/lua-5.1.4/0008-io.read-n-n-may-return-garbage-if-second-read-fails.patch
 delete mode 100644 
patches/lua-5.1.4/0009-Wrong-code-generation-for-some-particular-boolean-ex.patch
 delete mode 100644 
patches/lua-5.1.4/0010-__newindex-metamethod-may-not-work-if-metatable-is-i.patch
 delete mode 100644 
patches/lua-5.1.4/0011-Parser-may-collect-a-prototype-while-building-it.patch
 delete mode 100644 
patches/lua-5.1.4/0100-Add-lua-support-to-ptxdist-1.99-remove-old-Makefile.patch
 delete mode 100644 
patches/lua-5.1.4/0101-Add-lua-support-to-ptxdist-1.99-add-autoconf-files.patch
 delete mode 100644 
patches/lua-5.1.4/0102-Add-lua-support-to-ptxdist-1.99-add-automake-files.patch
 delete mode 12 patches/lua-5.1.4/autogen.sh
 delete mode 100644 patches/lua-5.1.4/series
 create mode 100644 
patches/lua-5.3.4/0001-Cross-compile-in-ptxdist-envirionment.patch
 create mode 100644 patches/lua-5.3.4/0002-Install-pkgconfig-file.patch
 create mode 100644 patches/lua-5.3.4/series

diff --git 
a/patches/lua-5.1.4/0001-Maliciously-crafted-precompiled-code-can-crash-Lua.patch
 
b/patches/lua-5.1.4/0001-Maliciously-crafted-precompiled-code-can-crash-Lua.patch
deleted file mode 100644
index 848fe30..000
--- 
a/patches/lua-5.1.4/0001-Maliciously-crafted-precompiled-code-can-crash-Lua.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-From: =?UTF-8?q?Beno=C3=AEt=20Burnichon?= <benoit.burnic...@airtag.com>
-Date: Tue, 6 Dec 2011 14:05:35 +0100
-Subject: [PATCH] Maliciously crafted precompiled code can crash Lua
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Comes from http://www.lua.org/bugs.html#5.1.4-1
-
-Signed-off-by: Benoît Burnichon <benoit.burnic...@airtag.com>
-

-
diff --git 
a/patches/lua-5.1.4/0002-It-is-possible-to-create-functions-that-return-too-m.patch
 
b/patches/lua-5.1.4/0002-It-is-possible-to-create-functions-that-return-too-m.patch
deleted file mode 100644
index 280fee3..000
--- 
a/patches/lua-5.1.4/0002-It-is-possible-to-create-functions-that-return-too-m.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-From: =?UTF-8?q?Beno=C3=AEt=20Burnichon?= <benoit.burnic...@airtag.com>
-Date: Tue, 6 Dec 2011 14:07:18 +0100
-Subject: [PATCH] It is possible to create functions that return too many
- arguments and overflow the stack of C functions.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Comes from http://www.lua.org/bugs.html#5.1.4-2
-
-Signed-off-by: Benoît Burnichon <benoit.burnic...@airtag.com>
-

-
diff --git 
a/patches/lua-5.1.4/0003-Wrong-code-generation-for-some-particular-boolean-ex.patch
 
b/patches/lua-5.1.4/0003-Wrong-code-generation-for-some-parti

[ptxdist] [PATCH] lua: Add MIT license information.

2017-09-15 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/lua.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/lua.make b/rules/lua.make
index 30bce5d..5a318f5 100644
--- a/rules/lua.make
+++ b/rules/lua.make
@@ -24,6 +24,7 @@ LUA_SUFFIX:= tar.gz
 LUA_URL:= http://www.lua.org/ftp/$(LUA).$(LUA_SUFFIX)
 LUA_SOURCE := $(SRCDIR)/$(LUA).$(LUA_SUFFIX)
 LUA_DIR:= $(BUILDDIR)/$(LUA)
+LUA_LICENSE := MIT
 
 # 
 # Prepare
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] sudo: version bump 1.8.9p5 -> 1.8.21p2

2017-09-15 Thread Denis OSTERLAND
Hi Alexander,

yes, of course.
I did not know this flag, yet.
Thanks.

Regards Denis
Am Freitag, den 15.09.2017, 13:44 +0200 schrieb Alexander Dahl:
> Hello Denis,
> 
> Am Freitag, 15. September 2017, 08:07:15 CEST schrieb Denis OSTERLAND:
> > 
> > Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
> > ---
> >  .../0001-install-sh-disable-stripping.patch| 25
> > ++ patches/sudo-1.8.21p2/series   |
> >  4 
> >  .../0001-install-sh-disable-stripping.patch| 25
> > -- patches/sudo-1.8.9p5/series|
> >  4 
> >  rules/sudo.make|  5 +++--
> >  5 files changed, 32 insertions(+), 31 deletions(-)
> >  create mode 100644
> > patches/sudo-1.8.21p2/0001-install-sh-disable-stripping.patch create mode
> > 100644 patches/sudo-1.8.21p2/series
> >  delete mode 100644
> > patches/sudo-1.8.9p5/0001-install-sh-disable-stripping.patch delete mode
> > 100644 patches/sudo-1.8.9p5/series
> Could you please pass -M or --find-renames to `git format-patch` next time? 
> This would make reviewing things easier if some files were renamed only. 
> Those 
> diffs to and from null would not distract anymore. The above quoted part 
> would 
> look like this then:
> 
> ---
>  .../0001-install-sh-disable-stripping.patch  | 0 
>  patches/{sudo-1.8.9p5 => sudo-1.8.21p2}/series   | 0 
>  rules/sudo.make  | 5 ++
> +--
>  3 files changed, 3 insertions(+), 2 deletions(-)  
>  rename patches/{sudo-1.8.9p5 => sudo-1.8.21p2}/0001-install-sh-disable-
> stripping.patch (100%)
>  rename patches/{sudo-1.8.9p5 => sudo-1.8.21p2}/series (100%)  
> 
> Greets
> Alex
> 
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] ntp: version bump 4.2.8p8 -> 4.2.8p10

2017-09-15 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 patches/ntp-4.2.8p8/Fix-undefined-MOD_NANO.patch | 42 
 patches/ntp-4.2.8p8/series   |  1 -
 rules/ntp.make   |  6 ++--
 3 files changed, 3 insertions(+), 46 deletions(-)
 delete mode 100644 patches/ntp-4.2.8p8/Fix-undefined-MOD_NANO.patch
 delete mode 100644 patches/ntp-4.2.8p8/series

diff --git a/patches/ntp-4.2.8p8/Fix-undefined-MOD_NANO.patch 
b/patches/ntp-4.2.8p8/Fix-undefined-MOD_NANO.patch
deleted file mode 100644
index f4200cf..000
--- a/patches/ntp-4.2.8p8/Fix-undefined-MOD_NANO.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 4ccca7260da74d8f9a238a79c03da440831bd33e Mon Sep 17 00:00:00 2001
-From: Alexander Stein <alexander.st...@systec-electronic.com>
-Date: Tue, 5 Jan 2010 13:13:02 +0100
-Subject: [PATCH] Fix undefined MOD_NANO
-
-With gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) I get this error:
-
-ntp_loopfilter.c: In function 'local_clock':
-ntp_loopfilter.c:571: error: 'MOD_NANO' undeclared (first use in this function)
-ntp_loopfilter.c:571: error: (Each undeclared identifier is reported only once
-ntp_loopfilter.c:571: error: for each function it appears in.)
-ntp_loopfilter.c: In function 'loop_config':
-ntp_loopfilter.c:896: error: 'MOD_NANO' undeclared (first use in this function)
-make[4]: *** [ntp_loopfilter.o] Error 1
-
-Fix it by chaning MOD_NANO to STA_NANO.
-
-This may be related to some specific toolchains, due to some defines. I use 
the 
-Codesourcery Sourcery G++ Lite 2009q3-67 toolchain.
-
-Signed-off-by: Alexander Stein <alexander.st...@systec-electronic.com>
-Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de>
-

-#mkl: ported to ntp-4.2.6
-
- ntpd/ntp_loopfilter.c |2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-Index: ntp-4.2.6/ntpd/ntp_loopfilter.c
-===
 ntp-4.2.6.orig/ntpd/ntp_loopfilter.c
-+++ ntp-4.2.6/ntpd/ntp_loopfilter.c
-@@ -517,7 +517,7 @@ local_clock(
-   ntv.modes = MOD_STATUS;
-   } else {
- #ifdef STA_NANO
--  ntv.modes = MOD_BITS | MOD_NANO;
-+  ntv.modes = MOD_BITS | STA_NANO;
- #else /* STA_NANO */
-   ntv.modes = MOD_BITS;
- #endif /* STA_NANO */
diff --git a/patches/ntp-4.2.8p8/series b/patches/ntp-4.2.8p8/series
deleted file mode 100644
index 6a7679c..000
--- a/patches/ntp-4.2.8p8/series
+++ /dev/null
@@ -1 +0,0 @@
-Fix-undefined-MOD_NANO.patch
diff --git a/rules/ntp.make b/rules/ntp.make
index d00c193..67405c4 100644
--- a/rules/ntp.make
+++ b/rules/ntp.make
@@ -17,15 +17,15 @@ PACKAGES-$(PTXCONF_NTP) += ntp
 #
 # Paths and names
 #
-NTP_VERSION:= 4.2.8p8
-NTP_MD5:= 4a8636260435b230636f053ffd070e34
+NTP_VERSION:= 4.2.8p10
+NTP_MD5:= 745384ed0dedb3f66b33fe84d66466f9
 NTP:= ntp-$(NTP_VERSION)
 NTP_SUFFIX := tar.gz
 NTP_URL:= 
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/$(NTP).$(NTP_SUFFIX)
 NTP_SOURCE := $(SRCDIR)/$(NTP).$(NTP_SUFFIX)
 NTP_DIR:= $(BUILDDIR)/$(NTP)
 NTP_LICENSE:= ntp
-NTP_LICENSE_FILES  := file://COPYRIGHT;md5=f41fedb22dffefcbfafecc85b0f79cfa
+NTP_LICENSE_FILES  := file://COPYRIGHT;md5=e877a1d567a6a58996d2b66e3e387003
 
 # 
 # Prepare
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in suc

[ptxdist] [PATCH] libwebsockets: version bump to 1.7.9

2017-09-15 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/libwebsockets.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/libwebsockets.make b/rules/libwebsockets.make
index ffaede3..fe1d1c4 100644
--- a/rules/libwebsockets.make
+++ b/rules/libwebsockets.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_LIBWEBSOCKETS) += libwebsockets
 #
 # Paths and names
 #
-LIBWEBSOCKETS_VERSION  := v1.3-chrome37-firefox30
-LIBWEBSOCKETS_MD5  := 63117f35174a5fe4ec062f6baa411638
+LIBWEBSOCKETS_VERSION  := v1.7.9
+LIBWEBSOCKETS_MD5  := 7b3692ead5ae00fd0e1d56c080170f07
 LIBWEBSOCKETS  := libwebsockets-$(LIBWEBSOCKETS_VERSION)
 LIBWEBSOCKETS_SUFFIX   := tar.gz
 LIBWEBSOCKETS_URL  := 
https://github.com/warmcat/libwebsockets/archive/$(LIBWEBSOCKETS_VERSION).$(LIBWEBSOCKETS_SUFFIX)
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] sudo: version bump 1.8.9p5 -> 1.8.21p2

2017-09-15 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 .../0001-install-sh-disable-stripping.patch| 25 ++
 patches/sudo-1.8.21p2/series   |  4 
 .../0001-install-sh-disable-stripping.patch| 25 --
 patches/sudo-1.8.9p5/series|  4 
 rules/sudo.make|  5 +++--
 5 files changed, 32 insertions(+), 31 deletions(-)
 create mode 100644 
patches/sudo-1.8.21p2/0001-install-sh-disable-stripping.patch
 create mode 100644 patches/sudo-1.8.21p2/series
 delete mode 100644 patches/sudo-1.8.9p5/0001-install-sh-disable-stripping.patch
 delete mode 100644 patches/sudo-1.8.9p5/series

diff --git a/patches/sudo-1.8.21p2/0001-install-sh-disable-stripping.patch 
b/patches/sudo-1.8.21p2/0001-install-sh-disable-stripping.patch
new file mode 100644
index 000..271a4cc
--- /dev/null
+++ b/patches/sudo-1.8.21p2/0001-install-sh-disable-stripping.patch
@@ -0,0 +1,25 @@
+From: Marc Kleine-Budde <m...@pengutronix.de>
+Date: Wed, 13 Jan 2010 09:29:27 +0100
+Subject: [PATCH] install-sh: disable stripping
+
+This patch disables stripping because the install-sh would use
+/usr/bin/strip which doesn't work during cross compilation.
+
+Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de>
+---
+ install-sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/install-sh b/install-sh
+index 79e7f408172c..9e78efae7a2e 100755
+--- a/install-sh
 b/install-sh
+@@ -141,7 +141,7 @@ while ${MORETODO} ; do
+   fi
+   ;;
+ X-s)
+-  STRIPIT=true
++  STRIPIT=false
+   ;;
+ X--)
+   shift
diff --git a/patches/sudo-1.8.21p2/series b/patches/sudo-1.8.21p2/series
new file mode 100644
index 000..7fbe9b8
--- /dev/null
+++ b/patches/sudo-1.8.21p2/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-install-sh-disable-stripping.patch
+# e59116c14a9e0e7506df445b8a837bdc  - git-ptx-patches magic
diff --git a/patches/sudo-1.8.9p5/0001-install-sh-disable-stripping.patch 
b/patches/sudo-1.8.9p5/0001-install-sh-disable-stripping.patch
deleted file mode 100644
index 271a4cc..000
--- a/patches/sudo-1.8.9p5/0001-install-sh-disable-stripping.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From: Marc Kleine-Budde <m...@pengutronix.de>
-Date: Wed, 13 Jan 2010 09:29:27 +0100
-Subject: [PATCH] install-sh: disable stripping
-
-This patch disables stripping because the install-sh would use
-/usr/bin/strip which doesn't work during cross compilation.
-
-Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de>

- install-sh | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/install-sh b/install-sh
-index 79e7f408172c..9e78efae7a2e 100755
 a/install-sh
-+++ b/install-sh
-@@ -141,7 +141,7 @@ while ${MORETODO} ; do
-   fi
-   ;;
- X-s)
--  STRIPIT=true
-+  STRIPIT=false
-   ;;
- X--)
-   shift
diff --git a/patches/sudo-1.8.9p5/series b/patches/sudo-1.8.9p5/series
deleted file mode 100644
index 7fbe9b8..000
--- a/patches/sudo-1.8.9p5/series
+++ /dev/null
@@ -1,4 +0,0 @@
-# generated by git-ptx-patches
-#tag:base --start-number 1
-0001-install-sh-disable-stripping.patch
-# e59116c14a9e0e7506df445b8a837bdc  - git-ptx-patches magic
diff --git a/rules/sudo.make b/rules/sudo.make
index eeddc0b..6fedc23 100644
--- a/rules/sudo.make
+++ b/rules/sudo.make
@@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_SUDO) += sudo
 #
 # Paths and names
 #
-SUDO_VERSION   := 1.8.9p5
-SUDO_MD5   := d3f1f1cfca6b2b06b048e1abb7d0227e
+SUDO_VERSION   := 1.8.21p2
+SUDO_MD5   := cd3993d910c713ae72e94beebd230b22
 SUDO   := sudo-$(SUDO_VERSION)
 SUDO_SUFFIX:= tar.gz
 SUDO_URL   := \
@@ -57,6 +57,7 @@ SUDO_AUTOCONF = \
--disable-nls \
--disable-rpath \
--enable-static-sudoers \
+   --disable-shared-libutil \
--disable-sia \
$(GLOBAL_LARGE_FILE_OPTION) \
--disable-pam-session \
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder r

[ptxdist] [PATCH v2] screen: version bump 4.0.3 -> 4.5.0

2017-09-18 Thread Denis OSTERLAND
Changes:
 - Add don-t-link-against-libelf.patch
 - Add modification comment to changed patches
 - Remove cosmetic patch 
Replace-the-composed-characters-with-their-respectiv.patch

Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2] screen: version bump 4.0.3 -> 4.5.0

2017-09-18 Thread Denis OSTERLAND
Update autoconf patches for version 4.5.0.
Add patches from debian stretch.
Skip cosmetic patch Replace-the-composed-characters-with-their-respectiv.patch.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 .../0003-Fix-screenencodings-dir.patch |  27 
 patches/screen-4.0.3/series|   6 -
 .../0001-don-t-link-against-libelf.patch   |  24 ++--
 .../0002-remove-configure-AC_TRY_RUN-tests.patch   | 132 +--
 .../0003-autoconf-cleanup.patch}   | 145 +
 .../0004-Fix-some-typos-found-by-Lintian.patch |  48 +++
 .../0005-show-encoding-in-hardstatus.patch |  52 
 .../0006-Unbreak-several-useful-keybindings.patch  |  22 
 ...ge-escalation-by-reverting-upstream-commi.patch |  30 +
 ...l-garbage-in-Debian-Installer-over-serial.patch |  24 
 ...ogfile-s-name-that-begins-with-the-symbol.patch |  77 +++
 patches/{screen-4.0.3 => screen-4.5.0}/autogen.sh  |   0
 patches/screen-4.5.0/series|  12 ++
 rules/screen.make  |   5 +-
 14 files changed, 408 insertions(+), 196 deletions(-)
 delete mode 100644 patches/screen-4.0.3/0003-Fix-screenencodings-dir.patch
 delete mode 100644 patches/screen-4.0.3/series
 rename patches/{screen-4.0.3 => 
screen-4.5.0}/0001-don-t-link-against-libelf.patch (61%)
 rename patches/{screen-4.0.3 => 
screen-4.5.0}/0002-remove-configure-AC_TRY_RUN-tests.patch (88%)
 rename patches/{screen-4.0.3/0004-autoconf-cleanup.patch => 
screen-4.5.0/0003-autoconf-cleanup.patch} (74%)
 create mode 100644 
patches/screen-4.5.0/0004-Fix-some-typos-found-by-Lintian.patch
 create mode 100644 patches/screen-4.5.0/0005-show-encoding-in-hardstatus.patch
 create mode 100644 
patches/screen-4.5.0/0006-Unbreak-several-useful-keybindings.patch
 create mode 100644 
patches/screen-4.5.0/0007-Fix-privilege-escalation-by-reverting-upstream-commi.patch
 create mode 100644 
patches/screen-4.5.0/0008-Fix-terminal-garbage-in-Debian-Installer-over-serial.patch
 create mode 100644 
patches/screen-4.5.0/0009-Ignore-logfile-s-name-that-begins-with-the-symbol.patch
 rename patches/{screen-4.0.3 => screen-4.5.0}/autogen.sh (100%)
 create mode 100644 patches/screen-4.5.0/series

diff --git a/patches/screen-4.0.3/0003-Fix-screenencodings-dir.patch 
b/patches/screen-4.0.3/0003-Fix-screenencodings-dir.patch
deleted file mode 100644
index 18ae4ff..000
--- a/patches/screen-4.0.3/0003-Fix-screenencodings-dir.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From: Marc Kleine-Budde <m...@pengutronix.de>
-Date: Sun, 27 Mar 2011 15:18:27 +0200
-Subject: [PATCH] Fix screenencodings dir
-
-This patch fixes the assignement of the SCREENENCODINGS variable which was 
holding "${}" before.
-
-Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de>

- configure.in |2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index 419279d..5411add 100644
 a/configure.in
-+++ b/configure.in
-@@ -637,7 +637,7 @@ AC_MSG_RESULT($ETCSCREENRC)
- SCREENENCODINGS="\"/usr/local/lib/screen/utf8encodings\""
- if test -n "$datadir"; then
- eval SCREENENCODINGS="$datadir/screen/utf8encodings"
--SCREENENCODINGS="\"$SCREENENCODINGS\""
-+eval SCREENENCODINGS="\\\"$SCREENENCODINGS\\\""
- fi
- AC_MSG_CHECKING(for the utf8-encodings location)
- AC_DEFINE_UNQUOTED(SCREENENCODINGS,$SCREENENCODINGS)
--- 
-1.7.4.1
-
diff --git a/patches/screen-4.0.3/series b/patches/screen-4.0.3/series
deleted file mode 100644
index 92c8f7c..000
--- a/patches/screen-4.0.3/series
+++ /dev/null
@@ -1,6 +0,0 @@
-# generated by git-ptx-patches
-0001-don-t-link-against-libelf.patch
-0002-remove-configure-AC_TRY_RUN-tests.patch
-0003-Fix-screenencodings-dir.patch
-0004-autoconf-cleanup.patch
-# 281c2731ef1fdac0a3c30983673cb6c8  - git-ptx-patches magic
diff --git a/patches/screen-4.0.3/0001-don-t-link-against-libelf.patch 
b/patches/screen-4.5.0/0001-don-t-link-against-libelf.patch
similarity index 61%
rename from patches/screen-4.0.3/0001-don-t-link-against-libelf.patch
rename to patches/screen-4.5.0/0001-don-t-link-against-libelf.patch
index 84ab86e..3ca4310 100644
--- a/patches/screen-4.0.3/0001-don-t-link-against-libelf.patch
+++ b/patches/screen-4.5.0/0001-don-t-link-against-libelf.patch
@@ -6,15 +6,17 @@ libelf is not used. It's just some broken configure check.
 Patch from gentoo.
 
 Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de>
+[osterlad: Update locations for version 4.5.0]
+Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
 ---
- configure.in |9 -
- 1 files changed, 0 insertions(+), 9 deletions(-)
+ configure.ac | 8 
+ 1 file changed, 8 deletions(-)
 
-diff --git a/configure.in b/configure.in
-index 34c9372..c1460af 100644
 a/configure.in
-+++ b/

Re: [ptxdist] [PATCH] screen: Fix ptxdist error message.

2017-09-22 Thread Denis OSTERLAND
Am Freitag, den 22.09.2017, 15:30 +0200 schrieb Michael Olbrich:
> On Fri, Sep 15, 2017 at 01:10:39PM +0000, Denis OSTERLAND wrote:
> > 
> > Copy from causes this error message:
> > ptxdist: error: file 
> > 'BSP/platform-Name/packages/screen-4.5.0/usr/bin/screen' is a link
> I would like to keep /usr/bin/screen as the actuall binary. So change the
> files in pkgdir instead. Either with a patch for Makefile.in or a custom
> install target that moves the files after the normal world/install.
> 
> Michael
OK.
What about this:
-   @$(call install_copy, screen, 0, 0, 0755, -, /usr/bin/screen)
+   @$(call install_copy, screen, 0, 0, 0755, 
$(SCREEN_PKGDIR)/usr/bin/screen-$(SCREEN_VERSION), /usr/bin/screen)

Denis
> 
> > 
> > Install it as source does, to avoid error message.
> > 
> > Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
> > ---
> >  rules/screen.make | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/rules/screen.make b/rules/screen.make
> > index 82a00cd..3afc965 100644
> > --- a/rules/screen.make
> > +++ b/rules/screen.make
> > @@ -53,7 +53,8 @@ $(STATEDIR)/screen.targetinstall:
> >     @$(call install_fixup, screen,AUTHOR,"Robert Schwebel 
> > <r.schwe...@pengutronix.de>")
> >     @$(call install_fixup, screen,DESCRIPTION,missing)
> >  
> > -   @$(call install_copy, screen, 0, 0, 0755, -, /usr/bin/screen)
> > +   @$(call install_copy, screen, 0, 0, 0755, -, 
> > /usr/bin/screen-$(SCREEN_VERSION))
> > +   @$(call install_link, screen, screen-$(SCREEN_VERSION), /usr/bin/screen)
> >  
> >  ifdef PTXCONF_SCREEN_ETC_SCREENRC
> >     @$(call install_alternative, screen, 0, 0, 0644, /etc/screenrc, n)
> > -- 
> > 2.7.4
> > 
> > 
> > Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
> > Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
> > (Mitglied)
> > Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
> > 620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-
> > Stiftung – Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 
> > –
> > Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
> > Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
> > Dipl.-Kfm.
> > Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. 
> > Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH)
> > Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
> > ___
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede
> > unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> > The contents of the above mentioned e-mail is not legally binding. This 
> > e-mail contains confidential and/or legally protected information. Please
> > inform us if you have received this e-mail by mistake and delete it in such 
> > a case. Each unauthorized reproduction, disclosure, alteration,
> > distribution and/or publication of this e-mail is strictly prohibited.
> > 
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelsch

Re: [ptxdist] [PATCH] lua: version bump 5.1.4 -> 5.3.4

2017-09-25 Thread Denis OSTERLAND
Am Montag, den 25.09.2017, 15:10 +0200 schrieb Michael Olbrich:
> On Fri, Sep 15, 2017 at 09:07:52AM +0000, Denis OSTERLAND wrote:
> > 
> > Instead of write own build rules with autoconf tools,
> > only adapt projects make files to work in ptxdist environment.
> I like this Patch in general, but building luaexpat still fails:
> 
> 
> target: luaexpat.compile
> 
> 
> make[1]: Entering directory 
> '/srv/jenkins-data/agent/workspace/ptxdist-tests/all-yes/master.mol-next.arm-hf/platform-arm-hf/build-target/luaexpat-
> 1.2.0'
> arm-v7a-linux-gnueabihf-gcc -Wall -pedantic -Waggregate-return -Wcast-align 
> -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wpointer-
> arith -Wshadow -Wwrite-strings -ansi -O2 -I. -I../compat/src -I.   -c -o 
> src/lxplib.o src/lxplib.c
> In file included from 
> /srv/jenkins-data/agent/workspace/ptxdist-tests/all-yes/master.mol-next.arm-hf/platform-arm-hf/sysroot-
> target/usr/include/lua.h:16:0,
>  from src/lxplib.c:14:
> /srv/jenkins-data/agent/workspace/ptxdist-tests/all-yes/master.mol-next.arm-hf/platform-arm-hf/sysroot-target/usr/include/luaconf.h:581:2:
>  error:
> #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS'   or 
> '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
>  #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
>   ^
> : recipe for target 'src/lxplib.o' failed
> make[1]: *** [src/lxplib.o] Error 1
> make[1]: Leaving directory 
> '/srv/jenkins-data/agent/workspace/ptxdist-tests/all-yes/master.mol-next.arm-hf/platform-arm-hf/build-target/luaexpat-
> 1.2.0'
> /srv/jenkins-data/agent/workspace/ptxdist-tests/all-yes/master.mol-next.arm-hf/ptxdist/rules/post/ptxd_make_world_compile.make:21:
>  recipe for target
> '/srv/jenkins-data/agent/workspace/ptxdist-tests/all-yes/master.mol-next.arm-hf/platform-arm-hf/state/luaexpat.compile'
>  failed
> make: *** 
> [/srv/jenkins-data/agent/workspace/ptxdist-tests/all-yes/master.mol-next.arm-hf/platform-arm-hf/state/luaexpat.compile]
>  Error 2
> 
> Do you have any insight, what happens here? Maybe updating luaexpat as well
> might help. Or just mark it as broken until someone cares enought about it
> to fix this.
Seems -ansi causes this error.
If I remove it, it get implicit declaration errors.
Good question if this is broken.
Version 1.3.0 supports Lua 5.2, as History says. 
(https://matthewwild.co.uk/projects/luaexpat/)
Version 1.3.0 seems to compile without "-ansi".
I will clean it up and send it, but I don´t know how to test it...
> 
> Michael
> 
> 
> > 
> > Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
> > ---
> >  ...ly-crafted-precompiled-code-can-crash-Lua.patch |  13 -
> >  ...ble-to-create-functions-that-return-too-m.patch |  14 -
> >  ...generation-for-some-particular-boolean-ex.patch |  72 --
> >  ...le-may-invalidate-a-reference-to-a-table-.patch |  52 --
> >  ...nv-does-not-check-whether-it-has-an-argum.patch |  32 -
> >  ...stuck-during-parsing-and-avoids-proper-re.patch |  35 -
> >  ...at-may-get-buffer-as-an-argument-when-the.patch |  44 -
> >  ...n-may-return-garbage-if-second-read-fails.patch |  37 -
> >  ...generation-for-some-particular-boolean-ex.patch |  56 --
> >  ...metamethod-may-not-work-if-metatable-is-i.patch |  37 -
> >  ...may-collect-a-prototype-while-building-it.patch |  31 -
> >  ...pport-to-ptxdist-1.99-remove-old-Makefile.patch | 151 
> >  ...upport-to-ptxdist-1.99-add-autoconf-files.patch | 918 
> > -
> >  ...upport-to-ptxdist-1.99-add-automake-files.patch | 125 ---
> >  patches/lua-5.1.4/autogen.sh   |   1 -
> >  patches/lua-5.1.4/series   |  19 -
> >  ...001-Cross-compile-in-ptxdist-envirionment.patch | 105 +++
> >  .../lua-5.3.4/0002-Install-pkgconfig-file.patch|  61 ++
> >  patches/lua-5.3.4/series   |   5 +
> >  rules/lua.in   |   9 +-
> >  rules/lua.make |  20 +-
> >  21 files changed, 182 insertions(+), 1655 deletions(-)
> >  delete mode 100644 
> > patches/lua-5.1.4/0001-Maliciously-crafted-precompiled-code-can-crash-Lua.patch
> >  delete mode 100644 
> > patches/lua-5.1.4/0002-It-is-possible-to-create-functions-that-return-too-m.patch
> >  delete mode 100644 
> > patches/lua-5.1.4/0003-Wrong-code-generation-for-some-particular-boolean-ex.patch
> >  delete mode 100644 
> > patches/lua-5.1.4/0004-luaV_settable-may-invalidate-a-reference-to-a-table-.patch
> >  delete mode 100644 
> > patc

[ptxdist] [PATCH] luaexpat: version bump 1.2.0 -> 1.3.0

2017-09-25 Thread Denis OSTERLAND
Remove -ansi flag from Makefile, because lua 5.3.4 is not configured for C89.
Update makefile variables.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 ...-flag-because-lua-5.3.4-is-not-configured.patch | 23 ++
 patches/luaexpat-1.3.0/series  |  4 
 rules/luaexpat.make|  8 
 3 files changed, 31 insertions(+), 4 deletions(-)
 create mode 100644 
patches/luaexpat-1.3.0/0001-Remove-ansi-flag-because-lua-5.3.4-is-not-configured.patch
 create mode 100644 patches/luaexpat-1.3.0/series

diff --git 
a/patches/luaexpat-1.3.0/0001-Remove-ansi-flag-because-lua-5.3.4-is-not-configured.patch
 
b/patches/luaexpat-1.3.0/0001-Remove-ansi-flag-because-lua-5.3.4-is-not-configured.patch
new file mode 100644
index 000..d9bf9f9
--- /dev/null
+++ 
b/patches/luaexpat-1.3.0/0001-Remove-ansi-flag-because-lua-5.3.4-is-not-configured.patch
@@ -0,0 +1,23 @@
+From: Denis Osterland <denis.osterl...@diehl.com>
+Date: Mon, 25 Sep 2017 16:41:53 +0200
+Subject: [PATCH] Remove -ansi flag, because lua 5.3.4 is not configured for
+ C89.
+
+Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 8878b6ce61d4..fc6754c3db9f 100644
+--- a/Makefile
 b/Makefile
+@@ -9,7 +9,7 @@ LUA_CDIR   ?= /usr/lib/lua/$(LUA_V)
+ T = lxp
+ LIBNAME   = $(T).so
+ 
+-COMMON_CFLAGS  = -g -pedantic -Wall -O2 -fPIC -DPIC -ansi
++COMMON_CFLAGS  = -g -pedantic -Wall -O2 -fPIC -DPIC
+ LUA_INC   ?= -I/usr/include/lua$(LUA_V)
+ EXPAT_INC ?= -I/usr/include
+ CF = $(LUA_INC) $(EXPAT_INC) $(COMMON_CFLAGS) $(CFLAGS)
diff --git a/patches/luaexpat-1.3.0/series b/patches/luaexpat-1.3.0/series
new file mode 100644
index 000..08fb4e1
--- /dev/null
+++ b/patches/luaexpat-1.3.0/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Remove-ansi-flag-because-lua-5.3.4-is-not-configured.patch
+# 7a6204ee34804c8367779815f05a799b  - git-ptx-patches magic
diff --git a/rules/luaexpat.make b/rules/luaexpat.make
index caccbb6..52ef45a 100644
--- a/rules/luaexpat.make
+++ b/rules/luaexpat.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_LUAEXPAT) += luaexpat
 #
 # Paths and names
 #
-LUAEXPAT_VERSION   := 1.2.0
-LUAEXPAT_MD5   := 03efe50c7f30a34580701e6527d7bfee
+LUAEXPAT_VERSION   := 1.3.0
+LUAEXPAT_MD5   := 3c20b5795e7107f847f8da844fbfe2da
 LUAEXPAT   := luaexpat-$(LUAEXPAT_VERSION)
 LUAEXPAT_SUFFIX:= tar.gz
 LUAEXPAT_URL   := 
http://matthewwild.co.uk/projects/luaexpat/$(LUAEXPAT).$(LUAEXPAT_SUFFIX)
@@ -34,8 +34,8 @@ LUAEXPAT_CONF_TOOL := NO
 LUAEXPAT_MAKE_OPT := \
$(CROSS_ENV_CC) \
LUA_VERSION_NUM=501 \
-   LUA_INC=. \
-   EXPAT_INC=.
+   LUA_INC="-I." \
+   EXPAT_INC="-I."
 
 LUAEXPAT_INSTALL_OPT := \
$(LUAEXPAT_MAKE_OPT) \
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2 1/2] luaexpat: version bump 1.2.0 -> 1.3.0

2017-09-28 Thread Denis OSTERLAND
Remove -ansi flag from Makefile, because lua 5.3.4 is not configured for C89.
Update makefile variables.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/luaexpat.make | 18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/rules/luaexpat.make b/rules/luaexpat.make
index caccbb6..c06f2fd 100644
--- a/rules/luaexpat.make
+++ b/rules/luaexpat.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_LUAEXPAT) += luaexpat
 #
 # Paths and names
 #
-LUAEXPAT_VERSION   := 1.2.0
-LUAEXPAT_MD5   := 03efe50c7f30a34580701e6527d7bfee
+LUAEXPAT_VERSION   := 1.3.0
+LUAEXPAT_MD5   := 3c20b5795e7107f847f8da844fbfe2da
 LUAEXPAT   := luaexpat-$(LUAEXPAT_VERSION)
 LUAEXPAT_SUFFIX:= tar.gz
 LUAEXPAT_URL   := 
http://matthewwild.co.uk/projects/luaexpat/$(LUAEXPAT).$(LUAEXPAT_SUFFIX)
@@ -33,14 +33,14 @@ LUAEXPAT_CONF_TOOL := NO
 
 LUAEXPAT_MAKE_OPT := \
$(CROSS_ENV_CC) \
-   LUA_VERSION_NUM=501 \
-   LUA_INC=. \
-   EXPAT_INC=.
+   LUA_VERSION_NUM=503 \
+   LUA_INC="-I." \
+   EXPAT_INC="-I."
 
 LUAEXPAT_INSTALL_OPT := \
$(LUAEXPAT_MAKE_OPT) \
-   LUA_LIBDIR=$(LUAEXPAT_PKGDIR)/usr/lib/lua/5.1 \
-   LUA_DIR=$(LUAEXPAT_PKGDIR)/usr/share/lua/5.1 \
+   LUA_LIBDIR=$(LUAEXPAT_PKGDIR)/usr/lib/lua/5.3 \
+   LUA_DIR=$(LUAEXPAT_PKGDIR)/usr/share/lua/5.3 \
install
 
 # 
@@ -56,8 +56,8 @@ $(STATEDIR)/luaexpat.targetinstall:
@$(call install_fixup, luaexpat,AUTHOR,"Joerg Platte 
<joerg.pla...@googlemail.com>")
@$(call install_fixup, luaexpat,DESCRIPTION,missing)
 
-   @$(call install_copy, luaexpat, 0, 0, 0644, -, 
/usr/share/lua/5.1/lxp/lom.lua)
-   @$(call install_lib, luaexpat, 0, 0, 0644, lua/5.1/lxp)
+   @$(call install_copy, luaexpat, 0, 0, 0644, -, 
/usr/share/lua/5.3/lxp/lom.lua)
+   @$(call install_lib, luaexpat, 0, 0, 0644, lua/5.3/lxp)
@$(call install_finish, luaexpat)
 
@$(call touch)
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2 2/2] luaexpat: Add license information.

2017-09-28 Thread Denis OSTERLAND
README tells luaexpact use Lua license, so use license information from Lua.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/luaexpat.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/luaexpat.make b/rules/luaexpat.make
index c06f2fd..47b12e6 100644
--- a/rules/luaexpat.make
+++ b/rules/luaexpat.make
@@ -23,7 +23,7 @@ LUAEXPAT_SUFFIX   := tar.gz
 LUAEXPAT_URL   := 
http://matthewwild.co.uk/projects/luaexpat/$(LUAEXPAT).$(LUAEXPAT_SUFFIX)
 LUAEXPAT_SOURCE:= $(SRCDIR)/$(LUAEXPAT).$(LUAEXPAT_SUFFIX)
 LUAEXPAT_DIR   := $(BUILDDIR)/$(LUAEXPAT)
-LUAEXPAT_LICENSE   := unknown
+LUAEXPAT_LICENSE   = $(LUA_LICENSE)
 
 # 
 # Prepare
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2 0/2] luaexpat: version bump 1.2.0 -> 1.3.0

2017-09-28 Thread Denis OSTERLAND

v2:
 - Adapt install directory form 5.1 to 5.3
 - Adapt LUA_VERSION define from 501 to 503

Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] screen: Fix ptxdist error message.

2017-09-28 Thread Denis OSTERLAND
Copy from causes this error message:
ptxdist: error: file 'BSP/platform-Name/packages/screen-4.5.0/usr/bin/screen' 
is a link

Install it from link target, to avoid error message.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/screen.make | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/rules/screen.make b/rules/screen.make
index 82a00cd..64cc7f5 100644
--- a/rules/screen.make
+++ b/rules/screen.make
@@ -53,7 +53,9 @@ $(STATEDIR)/screen.targetinstall:
@$(call install_fixup, screen,AUTHOR,"Robert Schwebel 
<r.schwe...@pengutronix.de>")
@$(call install_fixup, screen,DESCRIPTION,missing)
 
-   @$(call install_copy, screen, 0, 0, 0755, -, /usr/bin/screen)
+   @$(call install_copy, screen, 0, 0, 0755, \
+   $(SCREEN_PKGDIR)/usr/bin/screen-$(SCREEN_VERSION), \
+   /usr/bin/screen)
 
 ifdef PTXCONF_SCREEN_ETC_SCREENRC
@$(call install_alternative, screen, 0, 0, 0644, /etc/screenrc, n)
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] sudo: version bump 1.7.2p6 -> 1.8.20p2

2017-09-04 Thread Denis OSTERLAND
Install new libsudo_util and plugins.
Update configure command line options.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 .../0001-install-sh-disable-stripping.patch| 29 
 patches/sudo-1.7.2p6/series|  1 -
 .../0001-install-sh-disable-stripping.patch| 29 
 patches/sudo-1.8.20p2/series   |  1 +
 rules/sudo.make| 86 +-
 5 files changed, 63 insertions(+), 83 deletions(-)
 delete mode 100644 patches/sudo-1.7.2p6/0001-install-sh-disable-stripping.patch
 delete mode 100644 patches/sudo-1.7.2p6/series
 create mode 100644 
patches/sudo-1.8.20p2/0001-install-sh-disable-stripping.patch
 create mode 100644 patches/sudo-1.8.20p2/series

diff --git a/patches/sudo-1.7.2p6/0001-install-sh-disable-stripping.patch 
b/patches/sudo-1.7.2p6/0001-install-sh-disable-stripping.patch
deleted file mode 100644
index c8421a5..000
--- a/patches/sudo-1.7.2p6/0001-install-sh-disable-stripping.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 0c293e823cbe169ed09f1be263ff22e57b9d03ef Mon Sep 17 00:00:00 2001
-From: Marc Kleine-Budde <m...@pengutronix.de>
-Date: Wed, 13 Jan 2010 09:29:27 +0100
-Subject: [PATCH] install-sh: disable stripping
-
-This patch disables stripping because the install-sh would use
-/usr/bin/strip which doesn't work during cross compilation.
-
-Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de>

- install-sh |2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/install-sh b/install-sh
-index 5a6d399..e9a70b5 100755
 a/install-sh
-+++ b/install-sh
-@@ -138,7 +138,7 @@ while ${MORETODO} ; do
-   fi
-   ;;
- X-s)
--  STRIPIT=true
-+  STRIPIT=false
-   ;;
- X--)
-   shift
--- 
-1.6.6
-
diff --git a/patches/sudo-1.7.2p6/series b/patches/sudo-1.7.2p6/series
deleted file mode 100644
index fab2261..000
--- a/patches/sudo-1.7.2p6/series
+++ /dev/null
@@ -1 +0,0 @@
-0001-install-sh-disable-stripping.patch
diff --git a/patches/sudo-1.8.20p2/0001-install-sh-disable-stripping.patch 
b/patches/sudo-1.8.20p2/0001-install-sh-disable-stripping.patch
new file mode 100644
index 000..c8421a5
--- /dev/null
+++ b/patches/sudo-1.8.20p2/0001-install-sh-disable-stripping.patch
@@ -0,0 +1,29 @@
+From 0c293e823cbe169ed09f1be263ff22e57b9d03ef Mon Sep 17 00:00:00 2001
+From: Marc Kleine-Budde <m...@pengutronix.de>
+Date: Wed, 13 Jan 2010 09:29:27 +0100
+Subject: [PATCH] install-sh: disable stripping
+
+This patch disables stripping because the install-sh would use
+/usr/bin/strip which doesn't work during cross compilation.
+
+Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de>
+---
+ install-sh |2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/install-sh b/install-sh
+index 5a6d399..e9a70b5 100755
+--- a/install-sh
 b/install-sh
+@@ -138,7 +138,7 @@ while ${MORETODO} ; do
+   fi
+   ;;
+ X-s)
+-  STRIPIT=true
++  STRIPIT=false
+   ;;
+ X--)
+   shift
+-- 
+1.6.6
+
diff --git a/patches/sudo-1.8.20p2/series b/patches/sudo-1.8.20p2/series
new file mode 100644
index 000..fab2261
--- /dev/null
+++ b/patches/sudo-1.8.20p2/series
@@ -0,0 +1 @@
+0001-install-sh-disable-stripping.patch
diff --git a/rules/sudo.make b/rules/sudo.make
index c9ba61c..e4032ef 100644
--- a/rules/sudo.make
+++ b/rules/sudo.make
@@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_SUDO) += sudo
 #
 # Paths and names
 #
-SUDO_VERSION   := 1.7.2p6
-SUDO_MD5   := c4f1a43e8ba94f6bf06d2211442148c4
+SUDO_VERSION   := 1.8.20p2
+SUDO_MD5   := 03da8e711caca6fd93e57751bfb74adc
 SUDO   := sudo-$(SUDO_VERSION)
 SUDO_SUFFIX:= tar.gz
 SUDO_URL   := \
@@ -58,7 +58,29 @@ SUDO_AUTOCONF = \
--without-project \
--without-lecture \
--with-ignore-dot \
-   --without-pam
+   --without-pam \
+   --enable-env-reset \
+   --enable-warnings \
+   --enable-werror \
+   --enable-openssl \
+   --disable-gcrypt \
+   --enable-hardening \
+   --enable-pie \
+   --enable-asan \
+   --enable-poll \
+   --disable-admin-flag \
+   --disable-nls \
+   --enable-static-sudoers \
+   --enable-shared-libutil \
+   --enable-largefile \
+   --disable-kerb5-instance \
+   --without-linux-audit \
+   --without-solaris-audit \
+   --without-sssd \
+   --with-man \
+   --with-mdoc \
+   --without-umask-override \
+   --without-pam-login
 
 ifdef PTXCONF_SUDO_USE_SENDMAIL
 SUDO_AUTOCONF += --with-sendmail
@@ -76,54 +98,6 @@ else
 SUDO_AUTOCONF += --without-env-editor
 endif
 
-#  --disable-root-mailer   Don't run the mailer as root, run as the user
-#  --disable-setreuid  Don't try to use the setreuid() function
-#  --disable-setresuid Don't try to use the setresuid() function
-#  --enable-shell-sets-home set $HOME to target user in shell mode
-#  --with-AFS  

Re: [ptxdist] [PATCH 05/19] host-imx-cst: version bump 2.3.1 -> 2.3.2

2017-09-04 Thread Denis OSTERLAND
Hi Clemens,

as far as I know, this will require a change in Barebox scripts/imx/imx-image.c,
because in this version it expects input file as command line option
and does not understand piped input anymore.

This is how I deal with this issue, but it wont work with both versions.

From: Denis Osterland <denis.osterl...@diehl.com>
Date: Thu, 18 May 2017 07:40:48 +0200
Subject: [PATCH] imx-image: Adapt command line of cst call to match changed
 cli.

Current version 2.3.2 of freescales code-sign-tool expects '-i file' instead of 
stdin.
---
 scripts/imx/imx-image.c | 19 ++-
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c
index dd57994b..ed3f4ffa50c3 100644
--- a/scripts/imx/imx-image.c
+++ b/scripts/imx/imx-image.c
@@ -517,7 +517,7 @@ static int nop(const struct config_data *data)
 static int hab_sign(struct config_data *data)
 {
int fd, outfd, ret, lockfd;
-   char *csffile, *command;
+   char *csffile, *command, *csfinput;
struct stat s;
char *cst;
void *buf;
@@ -530,6 +530,10 @@ static int hab_sign(struct config_data *data)
if (ret < 0)
exit(1);
 
+   ret = asprintf(, "%s.csf", data->outfile);
+   if (ret < 0)
+   exit(1);
+
ret = stat(csffile, );
if (!ret) {
if (S_ISREG(s.st_mode)) {
@@ -546,7 +550,7 @@ static int hab_sign(struct config_data *data)
}
}
 
-   ret = asprintf(, "%s -o %s", cst, csffile);
+   ret = asprintf(, "%s -o %s -i %s", cst, csffile, csfinput);
if (ret < 0)
return -ENOMEM;
 
@@ -568,15 +572,20 @@ static int hab_sign(struct config_data *data)
return -errno;
}
 
-   FILE *f = popen(command, "w");
+   FILE *f = fopen(csfinput, "w");
if (!f) {
-   perror("popen");
+   perror("fopen");
return -errno;
}
 
fwrite(data->csf, 1, strlen(data->csf) + 1, f);
 
-   pclose(f);
+   fclose(f);
+
+   ret = system(command);
+   if (ret) {
+   exit(ret);
+   }
 
flock(lockfd, LOCK_UN);
close(lockfd);

Am Freitag, den 01.09.2017, 18:39 +0200 schrieb Clemens Gruber:
> Signed-off-by: Clemens Gruber <clemens.gru...@pqgruber.com>
> ---
>  rules/host-imx-cst.make | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/rules/host-imx-cst.make b/rules/host-imx-cst.make
> index b5aad5aee..dc2a17f4a 100644
> --- a/rules/host-imx-cst.make
> +++ b/rules/host-imx-cst.make
> @@ -16,8 +16,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_IMX_CST) += host-imx-cst
>  #
>  # Paths and names
>  #
> -HOST_IMX_CST_VERSION := 2.3.1
> -HOST_IMX_CST_MD5 := 01684a853e9245dbd6db42acad5861dd
> +HOST_IMX_CST_VERSION := 2.3.2
> +HOST_IMX_CST_MD5 := a81766cab2e184ab12e459c0476f6639
>  HOST_IMX_CST := cst-$(HOST_IMX_CST_VERSION)
>  HOST_IMX_CST_SUFFIX  := tar.gz
>  HOST_IMX_CST_URL := 
> https://www.nxp.com/webapp/sps/download/license.jsp?colCode=IMX_CST_TOOL
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] disabling the /bin and /usr/bin merge

2018-06-25 Thread Denis OSTERLAND
Hi,

the link is installed by usr-rootfs.
You may disable it by disable initmethod.
Maybe you can boot your system with additional "init=/usr/sbin/init" kernel 
argument.
Good luck!

Regards Denis

Am Montag, den 25.06.2018, 10:47 +0200 schrieb Wim Vinckier:
> Hi,
> 
> Is there anyway to disable the link from /bin to /usr/bin? It currently 
> causes some issues with our installation procedure and we would like to 
> temporary disable it so we can word at a fix.
> 
> Kind regards,
> 
> wim vinckier.
> -- 
> I would love to change the world, but they wont give me the source code.
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [RFC PATCH] git-ptx-patches: git 2.17.0 compatible stat width

2018-04-26 Thread Denis OSTERLAND
With git 2.17.0 the stat with of old patches gets changes using git ptx-patches.
This generates changes like:
- drivers/tty/serial/imx.c | 46 +-
+ drivers/tty/serial/imx.c | 46 

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 scripts/git-ptx-patches | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/git-ptx-patches b/scripts/git-ptx-patches
index 66cefb62c..721aa78ba 100755
--- a/scripts/git-ptx-patches
+++ b/scripts/git-ptx-patches
@@ -126,6 +126,8 @@ if man git-format-patch | grep -e --notes > /dev/null; then
GIT_EXTRA_ARGS="$GIT_EXTRA_ARGS --notes"
 fi
 
+GIT_EXTRA_ARGS="$GIT_EXTRA_ARGS --summary --stat=80"
+
 cat .ptxdist/series.0 > .ptxdist/series
 git format-patch -N $GIT_EXTRA_ARGS ${tagopt} -o .ptxdist/patches/ ${range} | 
sed -e 's,^.ptxdist/patches/,,' > .ptxdist/series.auto
 cat .ptxdist/series.auto >> .ptxdist/series
-- 
2.17.0


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dr.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH 2/2] lua: Add missing dependency to pthread.

2018-01-15 Thread Denis OSTERLAND
liblua depends on pthread.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/lua.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/lua.in b/rules/lua.in
index 9858002..4491cb3 100644
--- a/rules/lua.in
+++ b/rules/lua.in
@@ -6,6 +6,7 @@ menuconfig LUA
select READLINE if BUILDTIME || LUA_INSTALL_LUA
select LIBC_M
select LIBC_DL
+   select LIBC_PTHREAD
help
  Lua is a powerful, fast, light-weight, embeddable scripting language.
  Lua combines simple procedural syntax with powerful data description
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dr.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH 1/2] lua: Fix dependency to readline.

2018-01-15 Thread Denis OSTERLAND
Depend on readline always on build time.
This will not add runtime dependency to lua pkg.
But add runtime dependency, if lua tool gets installed.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/lua.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/lua.in b/rules/lua.in
index 15c9d71..9858002 100644
--- a/rules/lua.in
+++ b/rules/lua.in
@@ -3,7 +3,7 @@
 menuconfig LUA
tristate
prompt "lua   "
-   select READLINE
+   select READLINE if BUILDTIME || LUA_INSTALL_LUA
select LIBC_M
select LIBC_DL
help
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dr.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] ptxdist: add xpkg_install to install external ipkgs

2018-02-05 Thread Denis OSTERLAND
Am Sonntag, den 04.02.2018, 22:31 +0100 schrieb Michael Grzeschik:
> This patch enables the feature to call install_xpkg in the targetinstall stage
> of any rule. This way it is possible to install external ipkgs into the 
> targets
> rootfilesystem.
> 
> The next example describes an simple usecase with two packages in local_src.
> 
> PACKAGES-$(EXAMPLERULE_IPKGS) += examplerule-ipkgs
> EXAMPLERULE_IPKGS_VERSION := 1.0
> EXAMPLERULE_IPKGS := examplerule-ipkgs-$(EXAMPLERULE_IPKGS_VERSION)
> EXAMPLERULE_IPKGS_URL := 
> file://$(PTXDIST_WORKSPACE)/local_src/$(EXAMPLERULE_IPKGS)
> 
> EXAMPLERULE_IPKGS_FILES := \
>   example1-package_1.1.3_armhf.ipk \
>   example2-package_0.3.3_armhf.ipk
> 
> define rmsuffix
> $(shell echo $(1) | sed 's-^\([0-9a-zA-Z\-].*\)_\([a-zA-Z.0-9].*\)_.*-\1-g')
> endef
> 
> $(STATEDIR)/examplerule.targetinstall:
>   @$(call targetinfo)
>   @$(foreach ipkg, $(EXAMPLERULE_IPKGS_FILES), \
>   $(call install_xpkg, $(call rmsuffix, $(ipkg)), \
>   $(EXAMPLERULE_IPKGS_URL)/$(ipkg));)
>   @$(call touch)
> 
> Signed-off-by: Michael Grzeschik 
> ---
>  rules/post/ptxd_make_xpkg_install.make |  33 ++
>  scripts/lib/ptxd_make_xpkg_install.sh  | 111 
> +
>  2 files changed, 144 insertions(+)
>  create mode 100644 rules/post/ptxd_make_xpkg_install.make
>  create mode 100644 scripts/lib/ptxd_make_xpkg_install.sh
> 
> diff --git a/rules/post/ptxd_make_xpkg_install.make 
> b/rules/post/ptxd_make_xpkg_install.make
> new file mode 100644
> index 0..397961aab
> --- /dev/null
> +++ b/rules/post/ptxd_make_xpkg_install.make
> @@ -0,0 +1,33 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2018 by Michael Grzeschik 
> +#
> +# 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.
> +#
> +
> +#
> +# install_finish
> +#
> +# finishes packet creation
> +#
> +# $1: packet label
Missing $2 documentation
> +#
> +install_xpkg = \
> + $(call xpkg/install, $(1), $(2))
> +
> +#
> +# xpkg/install
> +#
> +# installs packet
> +#
> +# $1: xpkg label
Missing $2 documentation
> +#
> +xpkg/install = \
> + $(call xpkg/env, $(1))  \
> + pkg_xpkg_source='$(strip $(2))' \
> + ptxd_make_xpkg_install
> +
> +# vim: syntax=make
> diff --git a/scripts/lib/ptxd_make_xpkg_install.sh 
> b/scripts/lib/ptxd_make_xpkg_install.sh
> new file mode 100644
> index 0..f0367c5e1
> --- /dev/null
> +++ b/scripts/lib/ptxd_make_xpkg_install.sh
> @@ -0,0 +1,111 @@
> +#
> +# ptxd_make_image_extract_ipkg_package - extract ipkg for later image 
> generation
> +#
> +# in:
> +# - $1   ipkg to be extracted
> +# - $2   directory where ipkg are extracted
> +# - $PTXDIST_IPKG_ARCH_STRINGARCH variable for ipkg files
> +#
> +ptxd_make_image_extract_xpkg_package() {
> +# FIXME: consolidate "ptxd_install_setup_src"
> +local src="/etc/opkg/opkg.conf"
> +local xpkg_conf="$(mktemp ${PTXDIST_TEMPDIR}/XX_xpkg.conf)"
> +local ipkg="$1"
> +local work_dir="$2"
> +local -a list ptxd_reply
> +echo "option force_reinstall 1" > "${xpkg_conf}"
> +echo "option nodeps 1" >> "${xpkg_conf}"
> +echo "option volatile_cache 1" >> "${xpkg_conf}"
> +echo "option force_postinstall 1" >> "${xpkg_conf}"
> +list=( \
> + "${PTXDIST_WORKSPACE}/projectroot${PTXDIST_PLATFORMSUFFIX}${src}" \
> + "${PTXDIST_WORKSPACE}/projectroot${src}${PTXDIST_PLATFORMSUFFIX}" \
> + "${PTXDIST_WORKSPACE}/projectroot${src}" \
> + "${PTXDIST_TOPDIR}/projectroot${src}" \
> + )
> +
> +if ! ptxd_get_path "${list[@]}"; then
> + local IFS="
> +"
> + ptxd_bailout "
> +unable to find '${src}'
> +
> +These location have been searched:
> +${list[*]}
> +"
> +fi
> +
> +#rm -rf "${work_dir}" &&
> +#install -m 755 -d "${work_dir}" &&
> +
> +ARCH="${PTXDIST_IPKG_ARCH_STRING}" \
> +SRC="" \
> +CHECKSIG="" \
> +CAPATH="" \
> +CAFILE="" \
> + ptxd_replace_magic "${ptxd_reply}" >> "${xpkg_conf}" &&
> +
> +DESTDIR="${work_dir}" \
> + opkg -f "${xpkg_conf}" -o "${work_dir}" \
> + install "${ipkg}" &&
Is it possible to do this with ipkg as well?
> +
> +   ptxd_install_fixup_timestamps "${work_dir}"
> +}
> +export -f ptxd_make_image_extract_xpkg_package
> +
> +ptxd_make_xpkg_install_impl() {
> +source="$1"
> +pkg_xpkg_tmp=""
> +
> +ptxd_install_setup &&
> +for dir in "${dirs[@]}"; do
> + if [ -n "${dir}" ]; then
> + echo installing to ${dir}; \
> + ptxd_make_image_extract_xpkg_package \
> + "${source}" "${dir}" || break
> + fi
> +done
> +}
> +export -f ptxd_make_xpkg_install_impl
> +
> +#
> +# function to install a generic package
> +#
> +ptxd_make_xpkg_install() {
> +ptxd_make_xpkg_init 

Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2018.02.0 released

2018-02-13 Thread Denis OSTERLAND
Am Dienstag, den 13.02.2018, 14:30 +0100 schrieb Michael Olbrich:
> Hi,
> 
> On Tue, Feb 13, 2018 at 01:41:59PM +0100, Alexander Dahl wrote:
> > 
> > I had several problems compiling the new toolchain, the main one like in 
> > the 
> > first example, see below.
> > 
> > Am Montag, 12. Februar 2018, 16:51:54 CET schrieb Michael Olbrich:
> > > 
> > > Download the release here:
> > > https://public.pengutronix.de/oselas/toolchain/
> > I didn't download a prebuilt release, but tried to build it myself from 
> > Git. 
> > Host is on Debian 9 (stretch), amd64, using icecc:
> > 
> >   git clean -dxf
> >   git checkout v2018.02.0
> >   ln -s /usr/local/bin/ptxdist-2018.02.0 p
> >   make -f build_all_v2.mk
> > 
> > This ends with:
> > 
> > ---
> > target: 
> > oselas.toolchain-2018.02.0-powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb
> > ---
> > 
> > mkdir: cannot create directory '/mnt//data-temp': Permission denied   
> > mkdir: cannot create directory '/mnt//data-temp': Permission denied   
> > scripts/make_deb.sh: line 37: /mnt//data-temp/debian/control: No such file 
> > or directory
> > scripts/make_deb.sh: line 52: /mnt//data-temp/debian/changelog: No such 
> > file or directory
> > scripts/make_deb.sh: line 59: /mnt//data-temp/debian/compat: No such file 
> > or directory
> > Copy data...
> > tar: /mnt//data-temp/tmp: Cannot open: No such file or directory
> > tar: Error is not recoverable: exiting now
> > scripts/make_deb.sh: line 67: cd: /mnt//data-temp: No such file or directory
> > Generate dependencies...
> > dh_shlibdeps: cannot read debian/control: No such file or directory
> > 
> > /mnt/data_2/adahl/src/OSELAS.Toolchain/rules/image-toolchain-deb.make:28: 
> > recipe for target 
> > '/mnt/data_2/adahl/src/OSELAS.Toolchain/dist/oselas.toolchain-2018.02.0-powerpc-603e-linux-gnu-gcc-
> > 7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb'
> >  failed
> > make: *** 
> > [/mnt/data_2/adahl/src/OSELAS.Toolchain/dist/oselas.toolchain-2018.02.0-powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized_2018.02.0-0ptx1~bpo9+1_amd64.deb]
> > Error 2
> > build_all_v2.mk:49: die Regel für Ziel 
> > „gstate/powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized.build“
> >  scheiterte
> > make: *** 
> > [gstate/powerpc-603e-linux-gnu-gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized.build]
> >  Fehler 2
> > make -f build_all_v2.mk  3545,92s user 325,01s system 164% cpu 39:07,55 
> > total
> Hmm, generating Debian packages is not widely tested outside my local
Do you plan to upload the deb file to debian.pengutronix.de?
> setup, but it should work. Can you add 'set -x' at the beginning of the
> main() function in scripts/make_deb.sh and send the output?
> 
> > 
> > Second try, just building one toolchain:
> > 
> >   ./build_one.sh v5te
> > 
> > Result (the failing part):
> > 
> > In file included from /usr/include/c++/6/vector:69:0,
> >  from ../../binutils-2.30/gold/options.h:44,
> >  from ../../binutils-2.30/gold/incremental.cc:30:
> > /usr/include/c++/6/bits/vector.tcc: In member function 'void 
> > std::vector<_Tp, _Alloc>::_M_default_append(std::vector<_Tp, 
> > _Alloc>::size_type) [with _Tp = long unsigned int; _Alloc =
> > std::allocator]':
> > /usr/include/c++/6/bits/vector.tcc:586:5: internal compiler error: in 
> > gt_ggc_mx_symtab_node, at gtype-desc.c:1773
> >  }
> >  ^
> > libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes 
> > -Wshadow -Wstack-usage=262144 -I../../binutils-2.30/binutils/../zlib -g -O2 
> > -static-libstdc++ -static-libgcc -o ar arparse.o
> > arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o 
> > bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a 
> > -L/mnt/data_2/adahl/src/OSELAS.Toolchain/platform-arm-v5te-linux-gnueabi-
> > gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/build-cross/binutils-2.30-build/zlib
> >  -lz ../libiberty/libiberty.a -lfl -ldl
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See  for instructions.
> > Makefile:918: recipe for target 'incremental.o' failed
> > make[5]: *** [incremental.o] Error 1
> > make[5]: *** Waiting for unfinished jobs
> This is a bug in gcc on your build host. What distribution (and version)
> are you using and what is the output of 'gcc --version'?
> 
> > 
> > Third try, build another toolchain, still with icecc:
> > 
> >   ./build_one.sh arm-1136jfs-linux-gnueabihf
> > 
> > Result (failed):
> > 
> > *** Error in `/usr/lib/gcc/x86_64-linux-gnu/6/cc1plus': corrupted size vs. 

[ptxdist] [PATCH] libxml2: apply fix for CVE-2017-8872

2018-06-21 Thread Denis OSTERLAND
Taken from debian buster libxml2_2.9.7+dfsg-1.

Signed-off-by: Denis Osterland 
---
 ...-bounds-read-in-htmlParseTryOrFinish.patch | 31 +++
 patches/libxml2-2.9.7/series  |  5 +--
 2 files changed, 34 insertions(+), 2 deletions(-)
 create mode 100644 
patches/libxml2-2.9.7/0001-Out-of-bounds-read-in-htmlParseTryOrFinish.patch

diff --git 
a/patches/libxml2-2.9.7/0001-Out-of-bounds-read-in-htmlParseTryOrFinish.patch 
b/patches/libxml2-2.9.7/0001-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
new file mode 100644
index 0..c23cb47e5
--- /dev/null
+++ 
b/patches/libxml2-2.9.7/0001-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
@@ -0,0 +1,31 @@
+From: Marcus Meissner 
+Date: Wed, 3 Jan 2018 14:43:41 +0100
+Subject: [PATCH] Out-of-bounds read in htmlParseTryOrFinish
+
+Origin: vendor, https://bugzilla.novell.com/attachment.cgi?id=732309
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=775200
+Bug-Debian: https://bugs.debian.org/862450
+Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2017-8872
+Bug-SUSE: https://bugzilla.novell.com/show_bug.cgi?id=1038444
+Forwarded: yes, https://bugzilla.gnome.org/attachment.cgi?id=366193
+Reviewed-by: Salvatore Bonaccorso 
+Last-Update: 2018-01-03
+---
+ parser.c | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/parser.c b/parser.c
+index 1c5e036ea265..025111067ae8 100644
+--- a/parser.c
 b/parser.c
+@@ -12467,6 +12467,10 @@ xmlHaltParser(xmlParserCtxtPtr ctxt) {
+   ctxt->input->cur = BAD_CAST"";
+   ctxt->input->base = ctxt->input->cur;
+ ctxt->input->end = ctxt->input->cur;
++if (ctxt->input->buf)
++xmlBufEmpty (ctxt->input->buf->buffer);
++else
++ctxt->input->length = 0;
+ }
+ }
+ 
diff --git a/patches/libxml2-2.9.7/series b/patches/libxml2-2.9.7/series
index 05ba5ddea..dcf0dbafc 100644
--- a/patches/libxml2-2.9.7/series
+++ b/patches/libxml2-2.9.7/series
@@ -1,6 +1,7 @@
 # generated by git-ptx-patches
-#tag:base --start-number 1
 #tag:upstream --start-number 1
 #tag:ptx --start-number 200
 0200-xml2-config-is-not-SYSROOT-aware.patch
-# b6720be956d1b4619bc1c347a0ceb1dd  - git-ptx-patches magic
+#tag:base --start-number 1
+0001-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
+# 5a3ede3e80859cb7bc5c630bc7dbe43c  - git-ptx-patches magic
-- 
2.17.1


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] libxslt: version bump to 1.1.29

2018-06-21 Thread Denis OSTERLAND
---
 .../0001-xslt-config-add-SYSROOT-support.patch| 0
 patches/{libxslt-1.1.28 => libxslt-1.1.29}/series | 0
 rules/libxslt.make| 4 ++--
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename patches/{libxslt-1.1.28 => 
libxslt-1.1.29}/0001-xslt-config-add-SYSROOT-support.patch (100%)
 rename patches/{libxslt-1.1.28 => libxslt-1.1.29}/series (100%)

diff --git a/patches/libxslt-1.1.28/0001-xslt-config-add-SYSROOT-support.patch 
b/patches/libxslt-1.1.29/0001-xslt-config-add-SYSROOT-support.patch
similarity index 100%
rename from patches/libxslt-1.1.28/0001-xslt-config-add-SYSROOT-support.patch
rename to patches/libxslt-1.1.29/0001-xslt-config-add-SYSROOT-support.patch
diff --git a/patches/libxslt-1.1.28/series b/patches/libxslt-1.1.29/series
similarity index 100%
rename from patches/libxslt-1.1.28/series
rename to patches/libxslt-1.1.29/series
diff --git a/rules/libxslt.make b/rules/libxslt.make
index 5ea8d2315..743a9ccca 100644
--- a/rules/libxslt.make
+++ b/rules/libxslt.make
@@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_LIBXSLT) += libxslt
 #
 # Paths and names
 #
-LIBXSLT_VERSION:= 1.1.28
-LIBXSLT_MD5:= 9667bf6f9310b957254fdcf6596600b7
+LIBXSLT_VERSION:= 1.1.29
+LIBXSLT_MD5:= a129d3c44c022de3b9dcf6d6f288d72e
 LIBXSLT:= libxslt-$(LIBXSLT_VERSION)
 LIBXSLT_SUFFIX := tar.gz
 LIBXSLT_SOURCE := $(SRCDIR)/$(LIBXSLT).$(LIBXSLT_SUFFIX)
-- 
2.17.1


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] avahi: optional install avahi-browse

2018-06-21 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland 
---
 rules/avahi.in   | 7 +++
 rules/avahi.make | 5 +
 2 files changed, 12 insertions(+)

diff --git a/rules/avahi.in b/rules/avahi.in
index 2190e9ef9..83b438fe7 100644
--- a/rules/avahi.in
+++ b/rules/avahi.in
@@ -148,4 +148,11 @@ config AVAHI_COMPAT
help
  compatibility layer for libdns_sd
 
+config AVAHI_BROWSE
+   bool
+   select AVAHI_LIBAVAHI_CLIENT
+   prompt "avahi-browse utility"
+   help
+ client to browse network for avahi announcments
+
 endif
diff --git a/rules/avahi.make b/rules/avahi.make
index 8f58ac61e..c3d5ce963 100644
--- a/rules/avahi.make
+++ b/rules/avahi.make
@@ -177,6 +177,11 @@ endif
 endif
 endif
 
+ifdef PTXCONF_AVAHI_BROWSE
+   @$(call install_copy, avahi, 0, 0, 0755, -, /usr/bin/avahi-browse)
+   @$(call install_link, avahi, avahi-browse, 
/usr/bin/avahi-browse-domains)
+endif
+
 ifdef PTXCONF_AVAHI_AUTOIP
 #  avahi autoip daemon (avahi IPv4LL Implementation)
 #  this component is needed for rfc3927 style link local adressing
-- 
2.17.1


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] glibc: optional install libanl

2018-06-21 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland 
---
 rules/glibc.in   | 7 +++
 rules/glibc.make | 4 
 2 files changed, 11 insertions(+)

diff --git a/rules/glibc.in b/rules/glibc.in
index 76174b964..bd0f1db91 100644
--- a/rules/glibc.in
+++ b/rules/glibc.in
@@ -99,6 +99,13 @@ config GLIBC_M
  If at least one application on your target does any kind of math
  calculation, you should install this library.
 
+config GLIBC_ANL
+   bool
+   prompt "Install libanl"
+   help
+   Install the libanl
+
+
 config GLIBC_NSS_DNS
bool
prompt "Install libnss_dns"
diff --git a/rules/glibc.make b/rules/glibc.make
index bef37ce98..c4de24ab1 100644
--- a/rules/glibc.make
+++ b/rules/glibc.make
@@ -85,6 +85,10 @@ ifdef PTXCONF_GLIBC_NSS_HESIOD
@$(call install_copy_toolchain_lib, glibc, libnss_hesiod.so)
 endif
 
+ifdef PTXCONF_GLIBC_ANL
+   @$(call install_copy_toolchain_lib, glibc, libanl.so)
+endif
+
 ifdef PTXCONF_GLIBC_NSS_NIS
@$(call install_copy_toolchain_lib, glibc, libnss_nis.so)
 endif
-- 
2.17.1


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] dc3dd: add new package

2018-06-21 Thread Denis OSTERLAND
From: Thorsten Liepert 

dd like tool with inline checksum validation.
Allow to install as dd.

Signed-off-by: Thorsten Liepert 
Signed-off-by: Denis Osterland 
---
 rules/dc3dd.in   | 23 
 rules/dc3dd.make | 68 
 2 files changed, 91 insertions(+)
 create mode 100644 rules/dc3dd.in
 create mode 100644 rules/dc3dd.make

diff --git a/rules/dc3dd.in b/rules/dc3dd.in
new file mode 100644
index 0..a97d6498e
--- /dev/null
+++ b/rules/dc3dd.in
@@ -0,0 +1,23 @@
+## SECTION=disk_and_file
+
+menuconfig DC3DD
+   tristate
+   default ALLYES
+   select LIBC_PTHREAD
+   select LIBC
+   prompt "dc3dd "
+   help
+ dc3dd is a patched version of GNU dd with added features for computer 
forensics.
+ It was developed at the DoD Cyber Crime Center by Jesse Kornblum.
+
+if DC3DD
+
+config DC3DD_DD
+   bool
+   depends on !COREUTILS_DD
+   depends on !BUSYBOX_DD
+   prompt "use DC3DD as default DD "
+   help
+ installs a link called dd to dc3dd
+
+endif
diff --git a/rules/dc3dd.make b/rules/dc3dd.make
new file mode 100644
index 0..e7f25d57c
--- /dev/null
+++ b/rules/dc3dd.make
@@ -0,0 +1,68 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Thorsten Liepert
+#
+# 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_DC3DD) += dc3dd
+
+#
+# Paths and names
+#
+DC3DD_VERSION  := 7.2.641
+DC3DD_MD5  := 63987a467310d7b8a5102cb33e1945f4
+DC3DD  := dc3dd-$(DC3DD_VERSION)
+DC3DD_SUFFIX   := tar.xz
+DC3DD_URL  := $(call ptx/mirror, SF, 
dc3dd/7.2/dc3dd-$(DC3DD_VERSION).$(DC3DD_SUFFIX))
+DC3DD_SOURCE   := $(SRCDIR)/$(DC3DD).$(DC3DD_SUFFIX)
+DC3DD_DIR  := $(BUILDDIR)/$(DC3DD)
+DC3DD_LICENSE  := GPL-3.0-or-later
+DC3DD_LICENSE_FILES:= file://COPYING;md5=d32239bcb673463ab874e80d47fae504
+
+# 
+# Prepare
+# 
+
+#
+# autoconf
+#
+DC3DD_AUTOCONF := \
+   $(CROSS_AUTOCONF_USR) \
+   $(GLOBAL_LARGE_FILE_OPTION) \
+   --enable-dependency-tracking \
+   --disable-assert \
+   --disable-rpath \
+   --disable-hdparm \
+   --disable-nls \
+   --without-included-regex \
+   --with-gnu-ld
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/dc3dd.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, dc3dd)
+   @$(call install_fixup, dc3dd,PRIORITY,optional)
+   @$(call install_fixup, dc3dd,SECTION,base)
+   @$(call install_fixup, dc3dd,AUTHOR,"Thorsten Liepert 
")
+   @$(call install_fixup, dc3dd,DESCRIPTION,missing)
+
+   @$(call install_copy, dc3dd, 0, 0, 0755, -, /usr/bin/dc3dd)
+ifdef $(PTXCONF_DC3DD_DD)
+   @$(call install_link, dc3dd, dc3dd, /usr/bin/dd)
+endif
+   @$(call install_finish, dc3dd)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.17.1


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of 

[ptxdist] [PATCH v2] yajl: add new package

2018-06-22 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland 
---
 rules/yajl.in   |  8 +++
 rules/yajl.make | 58 +
 2 files changed, 66 insertions(+)
 create mode 100644 rules/yajl.in
 create mode 100644 rules/yajl.make

diff --git a/rules/yajl.in b/rules/yajl.in
new file mode 100644
index 0..39c53e1df
--- /dev/null
+++ b/rules/yajl.in
@@ -0,0 +1,8 @@
+## SECTION=system_libraries
+
+config YAJL
+   tristate
+   prompt "yajl"
+   select HOST_CMAKE
+   help
+ A fast streaming JSON parsing library in C.
diff --git a/rules/yajl.make b/rules/yajl.make
new file mode 100644
index 0..92bfe49ad
--- /dev/null
+++ b/rules/yajl.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Denis Osterland 
+#
+# 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_YAJL) += yajl
+
+#
+# Paths and names
+#
+YAJL_VERSION   := 2.1.0
+YAJL_MD5   := 8df8a92a2799bc949577e8e7a9f43670
+YAJL   := yajl-$(YAJL_VERSION)
+YAJL_SUFFIX:= tar.gz
+YAJL_URL   := http://github.com/lloyd/yajl/tarball/$(YAJL_VERSION)
+YAJL_SOURCE:= $(SRCDIR)/$(YAJL).$(YAJL_SUFFIX)
+YAJL_DIR   := $(BUILDDIR)/$(YAJL)
+YAJL_LICENSE   := ISC
+YAJL_LICENSE_FILES := file://COPYING;md5=39af6eb42999852bdd3ea00ad120a36d
+
+
+# 
+# Prepare
+# 
+
+#
+# autoconf
+#
+YAJL_CONF_TOOL := cmake
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/yajl.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, yajl)
+   @$(call install_fixup, yajl,PRIORITY,optional)
+   @$(call install_fixup, yajl,SECTION,base)
+   @$(call install_fixup, yajl,AUTHOR,"Denis Osterland 
")
+   @$(call install_fixup, yajl,DESCRIPTION,missing)
+
+   @$(call install_lib, yajl, 0, 0, 0755, libyajl)
+
+   @$(call install_finish, yajl)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] yajl: add new package

2018-06-22 Thread Denis OSTERLAND
Am Freitag, den 22.06.2018, 09:19 +0200 schrieb Michael Olbrich:
> > +   default ALLYES
> This default is only used for noprompt packages.
> 
> Michael
I will remove this in v2.
> 
> > +YAJL_SUFFIX:= orig.tar.gz
> > +YAJL_URL   := $(call ptx/mirror, DEB, 
> > pool/main/y/yajl)/yajl_$(YAJL_VERSION).$(YAJL_SUFFIX)
> Use the upstream github URL:
> 
> http://github.com/lloyd/yajl/tarball/2.1.0
> 
> Michael
I will change the URL in v2.

Regards Denis
> 
> > 
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] libxml2: apply fix for CVE-2017-8872

2018-06-22 Thread Denis OSTERLAND
Am Freitag, den 22.06.2018, 09:15 +0200 schrieb Michael Olbrich:
> > +
> > +Origin: vendor, https://bugzilla.novell.com/attachment.cgi?id=732309
> > +Bug: https://bugzilla.gnome.org/show_bug.cgi?id=775200
> > +Bug-Debian: https://bugs.debian.org/862450
> > +Bug-Debian-Security: 
> > https://security-tracker.debian.org/tracker/CVE-2017-8872
> > +Bug-SUSE: https://bugzilla.novell.com/show_bug.cgi?id=1038444
> > +Forwarded: yes, https://bugzilla.gnome.org/attachment.cgi?id=366193
> > +Reviewed-by: Salvatore Bonaccorso 
> > +Last-Update: 2018-01-03
> > +---
> > diff --git a/patches/libxml2-2.9.7/series b/patches/libxml2-2.9.7/series
> > index 05ba5ddea..dcf0dbafc 100644
> > --- a/patches/libxml2-2.9.7/series
> > +++ b/patches/libxml2-2.9.7/series
> > @@ -1,6 +1,7 @@
> >  # generated by git-ptx-patches
> > -#tag:base --start-number 1
> >  #tag:upstream --start-number 1
> >  #tag:ptx --start-number 200
> >  0200-xml2-config-is-not-SYSROOT-aware.patch
> > -# b6720be956d1b4619bc1c347a0ceb1dd  - git-ptx-patches magic
> > +#tag:base --start-number 1
> > +0001-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
> That's an upstream patch, right? It should come before the other patch in
> the 'upstream' section.
> 
> Michael
Debian send this patch to the developers, yes.
The have not yet applied it.
I will move it to upstream.
Do you have preferences about patch-numbers?
My suggestion would be:
tag:upstream --start-number 100
tag:ptx --start-number 200
tag:base --start-number 1

Regards Denis
> > 
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] avahi: optional install avahi-browse

2018-06-22 Thread Denis OSTERLAND
Am Freitag, den 22.06.2018, 09:13 +0200 schrieb Michael Olbrich:
> >  
> > +ifdef PTXCONF_AVAHI_BROWSE
> > +   @$(call install_copy, avahi, 0, 0, 0755, -, /usr/bin/avahi-browse)
> I just pushed a change that installs several tools including avahi-browse.
> Unless you see a good reason to split those up, I'd like to keep it that
> way.
Seems I forgot to pull yesterday before I sent the emails, sorry.
AVAHI_UTILS is good.
> 
> > 
> > +   @$(call install_link, avahi, avahi-browse, 
> > /usr/bin/avahi-browse-domains)
> What's the reason for this link?
> 
> Michael
Thats a convenience function, "avahi-browse-domains" is equal to "avahi-browse 
-D".
So it is not really needed, but nice to have.
Are you willing to add the link, if I send you the patch?

Regards Denis
> 
> > 
> > +endif
> > +
> >  ifdef PTXCONF_AVAHI_AUTOIP
> >  #  avahi autoip daemon (avahi IPv4LL Implementation)
> >  #  this component is needed for rfc3927 style link local adressing
> > -- 
> > 2.17.1
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH v2] yajl: add new package

2018-06-22 Thread Denis OSTERLAND
Am Freitag, den 22.06.2018, 10:25 +0200 schrieb Alexander Dahl:
> Hei hei,
> 
> Am Freitag, 22. Juni 2018, 08:12:10 CEST schrieb Denis OSTERLAND:
> > 
> > +#
> > +# autoconf
> > +#
> > +YAJL_CONF_TOOL := cmake
> Comment does not match assignment. ;-)
You are guess configtool as comment would be better.
Shall we patch it in the template?
> 
> Greets
> Alex
> 
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] dc3dd: add new package

2018-06-22 Thread Denis OSTERLAND
Am Freitag, den 22.06.2018, 09:23 +0200 schrieb Michael Olbrich:
> On Thu, Jun 21, 2018 at 01:12:46PM +0000, Denis OSTERLAND wrote:
> > +   tristate
> > +   default ALLYES
> Remove the default.
Okay.
> 
> > 
> > +   select LIBC_PTHREAD
> > +   select LIBC
> > +   prompt "dc3dd "
> > +   help
> > +     dc3dd is a patched version of GNU dd with added features for computer 
> > forensics.
> > +     It was developed at the DoD Cyber Crime Center by Jesse Kornblum.
> > +
> What's the usecase to install two versions of dd? Is dc3dd compatible with
> coreutils dd? If it is, then I think the whole package should have the
> 'depends on !...' and no suboption.
> 
> Michael
See https://tools.kali.org/forensics/dc3dd
The usecase is checksum validation while copy.
We use it for production.
It seems to be not 100% compatible, at least I miss "bs=" option.
Shall I remove the link?

Regards Denis
> 
> > 
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH v2] yajl: add new package

2018-06-22 Thread Denis OSTERLAND
Am Freitag, den 22.06.2018, 10:52 +0200 schrieb Alexander Dahl:
> Hello Denis,
> 
> > 
> > > 
> > > > 
> > > > +#
> > > > +# autoconf
> > > > +#
> > > > +YAJL_CONF_TOOL := cmake
> > > Comment does not match assignment. ;-)
> > You are guess configtool as comment would be better.
> From the 'src-cmake-prog' template you would get:
> 
> # 
>   
>  
> # cmake   
>   
>  
> # 
>   
>  
> FOO_CONF_TOOL := cmake
>   
>    
> 
> > 
> > Shall we patch it in the template?
> I guess you used the 'target' template, which got you this:
> 
> # 
>   
>  
> # autoconf
>   
>  
> # 
>   
>  
> FOO_CONF_TOOL := autoconf 
>   
>    
> 
> I would not touch this in the template, it is consistent.
> 
> So I would say, just change the comment to 'cmake' or remove those comment 
> lines. The line assigning the conf tool speaks for itself.
> 
> Greets
> Alex
> 
So I just used the wrong template.
Thanks for that hint.
I will remove the useless comment.

Regards Denis
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v3] yajl: add new package

2018-06-22 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland 
---
 rules/yajl.in   |  8 
 rules/yajl.make | 49 +
 2 files changed, 57 insertions(+)
 create mode 100644 rules/yajl.in
 create mode 100644 rules/yajl.make

diff --git a/rules/yajl.in b/rules/yajl.in
new file mode 100644
index 0..39c53e1df
--- /dev/null
+++ b/rules/yajl.in
@@ -0,0 +1,8 @@
+## SECTION=system_libraries
+
+config YAJL
+   tristate
+   prompt "yajl"
+   select HOST_CMAKE
+   help
+ A fast streaming JSON parsing library in C.
diff --git a/rules/yajl.make b/rules/yajl.make
new file mode 100644
index 0..3113a8cd0
--- /dev/null
+++ b/rules/yajl.make
@@ -0,0 +1,49 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Denis Osterland 
+#
+# 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.
+#
+
+PACKAGES-$(PTXCONF_YAJL) += yajl
+
+YAJL_VERSION   := 2.1.0
+YAJL_MD5   := 8df8a92a2799bc949577e8e7a9f43670
+YAJL   := yajl-$(YAJL_VERSION)
+YAJL_SUFFIX:= tar.gz
+YAJL_URL   := http://github.com/lloyd/yajl/tarball/$(YAJL_VERSION)
+YAJL_SOURCE:= $(SRCDIR)/$(YAJL).$(YAJL_SUFFIX)
+YAJL_DIR   := $(BUILDDIR)/$(YAJL)
+YAJL_LICENSE   := ISC
+YAJL_LICENSE_FILES := file://COPYING;md5=39af6eb42999852bdd3ea00ad120a36d
+
+
+# 
+# Prepare
+# 
+
+YAJL_CONF_TOOL := cmake
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/yajl.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, yajl)
+   @$(call install_fixup, yajl,PRIORITY,optional)
+   @$(call install_fixup, yajl,SECTION,base)
+   @$(call install_fixup, yajl,AUTHOR,"Denis Osterland 
")
+   @$(call install_fixup, yajl,DESCRIPTION,missing)
+
+   @$(call install_lib, yajl, 0, 0, 0755, libyajl)
+
+   @$(call install_finish, yajl)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2] dc3dd: add new package

2018-06-22 Thread Denis OSTERLAND
From: Thorsten Liepert 

dd like tool with inline checksum validation.

Signed-off-by: Thorsten Liepert 
Signed-off-by: Denis Osterland 
---
 rules/dc3dd.in   | 11 ++
 rules/dc3dd.make | 57 
 2 files changed, 68 insertions(+)
 create mode 100644 rules/dc3dd.in
 create mode 100644 rules/dc3dd.make

diff --git a/rules/dc3dd.in b/rules/dc3dd.in
new file mode 100644
index 0..ea95631ed
--- /dev/null
+++ b/rules/dc3dd.in
@@ -0,0 +1,11 @@
+## SECTION=disk_and_file
+
+config DC3DD
+   tristate
+   select LIBC_PTHREAD
+   select LIBC
+   prompt "dc3dd"
+   help
+ dc3dd is a patched version of GNU dd with added features for computer 
forensics.
+ It was developed at the DoD Cyber Crime Center by Jesse Kornblum.
+ See https://tools.kali.org/forensics/dc3dd for usage.
diff --git a/rules/dc3dd.make b/rules/dc3dd.make
new file mode 100644
index 0..16520f3c5
--- /dev/null
+++ b/rules/dc3dd.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Thorsten Liepert
+#
+# 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.
+#
+
+PACKAGES-$(PTXCONF_DC3DD) += dc3dd
+
+DC3DD_VERSION  := 7.2.641
+DC3DD_MD5  := 63987a467310d7b8a5102cb33e1945f4
+DC3DD  := dc3dd-$(DC3DD_VERSION)
+DC3DD_SUFFIX   := tar.xz
+DC3DD_URL  := $(call ptx/mirror, SF, 
dc3dd/7.2/dc3dd-$(DC3DD_VERSION).$(DC3DD_SUFFIX))
+DC3DD_SOURCE   := $(SRCDIR)/$(DC3DD).$(DC3DD_SUFFIX)
+DC3DD_DIR  := $(BUILDDIR)/$(DC3DD)
+DC3DD_LICENSE  := GPL-3.0-or-later
+DC3DD_LICENSE_FILES:= file://COPYING;md5=d32239bcb673463ab874e80d47fae504
+
+# 
+# Prepare
+# 
+
+DC3DD_AUTOCONF := \
+   $(CROSS_AUTOCONF_USR) \
+   $(GLOBAL_LARGE_FILE_OPTION) \
+   --enable-dependency-tracking \
+   --disable-assert \
+   --disable-rpath \
+   --disable-hdparm \
+   --disable-nls \
+   --without-included-regex \
+   --with-gnu-ld
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/dc3dd.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, dc3dd)
+   @$(call install_fixup, dc3dd,PRIORITY,optional)
+   @$(call install_fixup, dc3dd,SECTION,base)
+   @$(call install_fixup, dc3dd,AUTHOR,"Thorsten Liepert 
")
+   @$(call install_fixup, dc3dd,DESCRIPTION,missing)
+
+   @$(call install_copy, dc3dd, 0, 0, 0755, -, /usr/bin/dc3dd)
+
+   @$(call install_finish, dc3dd)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] avahi: add avahi-browse-domains link

2018-06-22 Thread Denis OSTERLAND
This is a conveniance function and equal to "avahi-browse -D".

Signed-off-by: Denis Osterland 
---
 rules/avahi.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/avahi.make b/rules/avahi.make
index 56c15ce56..ca7573954 100644
--- a/rules/avahi.make
+++ b/rules/avahi.make
@@ -152,6 +152,7 @@ endif
 endif
 ifdef PTXCONF_AVAHI_UTILS
@$(call install_copy, avahi, 0, 0, 0755, -, /usr/bin/avahi-browse)
+   @$(call install_link, avahi, avahi-browse, 
/usr/bin/avahi-browse-domains)
@$(call install_copy, avahi, 0, 0, 0755, -, /usr/bin/avahi-publish)
@$(call install_copy, avahi, 0, 0, 0755, -, /usr/bin/avahi-resolve)
@$(call install_copy, avahi, 0, 0, 0755, -, 
/usr/bin/avahi-set-host-name)
-- 
2.18.0


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2] libxml2: apply fix for CVE-2017-8872

2018-06-22 Thread Denis OSTERLAND
Taken from debian buster libxml2_2.9.7+dfsg-1.

Signed-off-by: Denis Osterland 
---
 ...-bounds-read-in-htmlParseTryOrFinish.patch | 31 +++
 patches/libxml2-2.9.7/series  |  7 +++--
 2 files changed, 35 insertions(+), 3 deletions(-)
 create mode 100644 
patches/libxml2-2.9.7/0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch

diff --git 
a/patches/libxml2-2.9.7/0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch 
b/patches/libxml2-2.9.7/0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
new file mode 100644
index 0..c23cb47e5
--- /dev/null
+++ 
b/patches/libxml2-2.9.7/0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
@@ -0,0 +1,31 @@
+From: Marcus Meissner 
+Date: Wed, 3 Jan 2018 14:43:41 +0100
+Subject: [PATCH] Out-of-bounds read in htmlParseTryOrFinish
+
+Origin: vendor, https://bugzilla.novell.com/attachment.cgi?id=732309
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=775200
+Bug-Debian: https://bugs.debian.org/862450
+Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2017-8872
+Bug-SUSE: https://bugzilla.novell.com/show_bug.cgi?id=1038444
+Forwarded: yes, https://bugzilla.gnome.org/attachment.cgi?id=366193
+Reviewed-by: Salvatore Bonaccorso 
+Last-Update: 2018-01-03
+---
+ parser.c | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/parser.c b/parser.c
+index 1c5e036ea265..025111067ae8 100644
+--- a/parser.c
 b/parser.c
+@@ -12467,6 +12467,10 @@ xmlHaltParser(xmlParserCtxtPtr ctxt) {
+   ctxt->input->cur = BAD_CAST"";
+   ctxt->input->base = ctxt->input->cur;
+ ctxt->input->end = ctxt->input->cur;
++if (ctxt->input->buf)
++xmlBufEmpty (ctxt->input->buf->buffer);
++else
++ctxt->input->length = 0;
+ }
+ }
+ 
diff --git a/patches/libxml2-2.9.7/series b/patches/libxml2-2.9.7/series
index 05ba5ddea..76a7f7c25 100644
--- a/patches/libxml2-2.9.7/series
+++ b/patches/libxml2-2.9.7/series
@@ -1,6 +1,7 @@
 # generated by git-ptx-patches
-#tag:base --start-number 1
-#tag:upstream --start-number 1
+#tag:upstream --start-number 100
+0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
 #tag:ptx --start-number 200
 0200-xml2-config-is-not-SYSROOT-aware.patch
-# b6720be956d1b4619bc1c347a0ceb1dd  - git-ptx-patches magic
+#tag:base --start-number 1
+# 73b51dbb579d1555a9c4c76cc8b2947a  - git-ptx-patches magic
-- 
2.18.0


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang 
Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. 
Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , 
Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, 
Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] Failed to compile gdbserver

2018-07-30 Thread Denis OSTERLAND
Hi,

I try to compile gdbserver with OSELAS.Toolchain-2018.02.0 on armv5te + armv7a, 
but it fails.
I tried the default version 7.6.1:

../gdbserver-7.6.1/gdb/gdbserver/linux-arm-low.c:328:1: error: conflicting 
types for 'ps_get_thread_area'
 ps_get_thread_area (const struct ps_prochandle *ph,
 ^~
In file included from ../gdbserver-7.6.1/gdb/gdbserver/gdb_proc_service.h:25:0,
 from ../gdbserver-7.6.1/gdb/gdbserver/linux-low.h:25,
 from ../gdbserver-7.6.1/gdb/gdbserver/linux-arm-low.c:20:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:72:17:
 note: previous
declaration of 'ps_get_thread_area' was here
 extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
 ^~
../gdbserver-7.6.1/gdb/gdbserver/proc-service.c:136:1: error: conflicting types 
for 'ps_lgetfpregs'
 ps_lgetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
 ^
In file included from ../gdbserver-7.6.1/gdb/gdbserver/gdb_proc_service.h:25:0,
 from ../gdbserver-7.6.1/gdb/gdbserver/linux-low.h:25,
 from ../gdbserver-7.6.1/gdb/gdbserver/proc-service.c:27:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:61:17:
 note: previous
declaration of 'ps_lgetfpregs' was here
 extern ps_err_e ps_lgetfpregs (struct ps_prochandle *,
 ^
../gdbserver-7.6.1/gdb/gdbserver/proc-service.c:146:1: error: conflicting types 
for 'ps_lsetfpregs'
 ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
 ^
In file included from ../gdbserver-7.6.1/gdb/gdbserver/gdb_proc_service.h:25:0,
 from ../gdbserver-7.6.1/gdb/gdbserver/linux-low.h:25,
 from ../gdbserver-7.6.1/gdb/gdbserver/proc-service.c:27:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:63:17:
 note: previous
declaration of 'ps_lsetfpregs' was here
 extern ps_err_e ps_lsetfpregs (struct ps_prochandle *,
 ^
Makefile:232: recipe for target 'proc-service.o' failed
make[1]: *** [proc-service.o] Error 1


##
I tried to use the GDB version from Toolchain too, but same result:

../gdbserver-7.8.1/gdb/gdbserver/linux-arm-low.c:337:1: error: conflicting 
types for 'ps_get_thread_area'
 ps_get_thread_area (const struct ps_prochandle *ph,
 ^~
In file included from ../gdbserver-7.8.1/gdb/gdbserver/gdb_proc_service.h:25:0,
 from ../gdbserver-7.8.1/gdb/gdbserver/linux-low.h:23,
 from ../gdbserver-7.8.1/gdb/gdbserver/linux-arm-low.c:20:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:72:17:
 note: previous
declaration of 'ps_get_thread_area' was here
 extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
 ^~
Makefile:239: recipe for target 'linux-arm-low.o' failed
../gdbserver-7.8.1/gdb/gdbserver/proc-service.c:138:1: error: conflicting types 
for 'ps_lgetfpregs'
 ps_lgetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
 ^
In file included from ../gdbserver-7.8.1/gdb/gdbserver/gdb_proc_service.h:25:0,
 from ../gdbserver-7.8.1/gdb/gdbserver/linux-low.h:23,
 from ../gdbserver-7.8.1/gdb/gdbserver/proc-service.c:27:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:61:17:
 note: previous
declaration of 'ps_lgetfpregs' was here
 extern ps_err_e ps_lgetfpregs (struct ps_prochandle *,
 ^
../gdbserver-7.8.1/gdb/gdbserver/proc-service.c:148:1: error: conflicting types 
for 'ps_lsetfpregs'
 ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
 ^
In file included from ../gdbserver-7.8.1/gdb/gdbserver/gdb_proc_service.h:25:0,
 from ../gdbserver-7.8.1/gdb/gdbserver/linux-low.h:23,
 from ../gdbserver-7.8.1/gdb/gdbserver/proc-service.c:27:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:63:17:
 note: previous
declaration of 'ps_lsetfpregs' was here
 extern ps_err_e ps_lsetfpregs (struct ps_prochandle *,
 ^
Makefile:239: recipe for target 'proc-service.o' failed
make[1]: *** [proc-service.o] Error 1

###
Which versions do you use?

Regards Denis

Diehl Connectivity Solutions GmbH

Re: [ptxdist] Failed to compile gdbserver

2018-07-30 Thread Denis OSTERLAND
Am Montag, den 30.07.2018, 13:44 +0200 schrieb Michael Olbrich:
> Hi,
> 
> On Mon, Jul 30, 2018 at 11:29:04AM +0000, Denis OSTERLAND wrote:
> > 
> > I try to compile gdbserver with OSELAS.Toolchain-2018.02.0 on armv5te + 
> > armv7a, but it fails.
> > I tried the default version 7.6.1:
> You need to use the same version as the gdb in the toolchain. That's 8.1,
> if I remember correctly.
> 
> Michael
> 
Correct, that works.
Sorry, I mixed 7.8.1 and 8.1 somehow...

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] minicoredumper: New package

2018-08-14 Thread Denis OSTERLAND
Am Dienstag, den 14.08.2018, 13:02 +0200 schrieb Uwe Kleine-König:
> Hello Roland,
> 
> On Tue, Aug 14, 2018 at 12:14:20PM +0200, Roland Hieber wrote:
> > 
> > On Tue, Aug 14, 2018 at 11:57:44AM +0200, Roland Hieber wrote:
> > > 
> > > On Mon, Aug 13, 2018 at 04:57:48PM +0200, Uwe Kleine-König wrote:
> > > > 
> > > > +$(STATEDIR)/minicoredumper.extract: $(STATEDIR)/autogen-tools
> > > Interesting, I didn't know this one yet. Apparently it generates a
> > > configure script when only a configure.ac is present?
> > Hm. On second read of ptxdist/rules/pre/autogen.make, this should be a
> > no-op as long as no patches/$(MINICOREDUMPER)/autogen.sh is present,
> > which is the case here. Does it work for you as intended?
> Yes, works as intended (i.e. the package builds fine) :-)
> 
> I used that not because I consider it sensible but because that's what
> ptxdist newpackage did for me.
> 
> Best regards
> Uwe
> 

I would expect a link in patch folder instead of prepare section:
patches/minicoredumper-2.0.1/autogen.sh -> ../autogen.sh

Regards Denis


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 1/1] m4/coreutil: add gnulib patches for GLibc-2.28

2018-08-22 Thread Denis OSTERLAND
Am Mittwoch, den 22.08.2018, 19:33 +0200 schrieb Rouven Czerwinski:
> From: Rouven Czerwinski 
> 
> This adds the neceassry patches for m4 ad coreutils to compile with 
> glibc-2.28.
> These can be removed when new releases are available.
> 
> This version is manually applied for both packages from
> 4af4a4a71827c0bc5e0ec67af23edef4f15cee8e
> in the upstream gnulib repository.
> 
> Signed-off-by: Rouven Czerwinski 
> ---
>  ...adjust-to-glibc-2.28-libio.h-removal.patch | 164 ++
>  patches/coreutils-8.29/series |   4 +
>  ...adjust-to-glibc-2.28-libio.h-removal.patch | 136 +++
>  patches/m4-1.4.18/series  |   4 +
>  4 files changed, 308 insertions(+)
>  create mode 100644 
> patches/coreutils-8.29/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
>  create mode 100644 patches/coreutils-8.29/series
>  create mode 100644 
> patches/m4-1.4.18/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
>  create mode 100644 patches/m4-1.4.18/series
> 
> diff --git 
> a/patches/coreutils-8.29/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
>  
> b/patches/coreutils-8.29/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
> new file mode 100644
> index 0..651335917
> --- /dev/null
> +++ 
> b/patches/coreutils-8.29/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
> @@ -0,0 +1,164 @@
> +From: Rouven Czerwinski 
> +Date: Wed, 22 Aug 2018 17:22:23 +0200
> +Subject: [PATCH] fflush: adjust to glibc 2.28 libio.h removal
A comment like "backport of 4af4a4a71827c0bc5e0ec67af23edef4f15cee8e" should be 
added.
It would be great if you use the original patch message with From and Date
and add a description of your changes.
Your signed-off is missing.
> +
> +---
> + lib/fflush.c | 6 +++---
> + lib/fpending.c   | 2 +-
> + lib/freadahead.c | 2 +-
> + lib/freading.c   | 2 +-
> diff --git 
> a/patches/m4-1.4.18/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch 
> b/patches/m4-1.4.18/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
> new file mode 100644
> index 0..0a11b87d6
> --- /dev/null
> +++ b/patches/m4-1.4.18/0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
> @@ -0,0 +1,136 @@
> +From: Rouven Czerwinski 
> +Date: Wed, 22 Aug 2018 16:58:36 +0200
> +Subject: [PATCH] fflush: adjust to glibc 2.28 libio.h removal
same
> +
> +---
> + lib/fflush.c | 6 +++---
> + lib/fpending.c   | 2 +-
> + lib/fpurge.c | 2 +-
> + lib/freadahead.c | 2 +-
Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] glibc: optional install libatomic

2018-07-24 Thread Denis OSTERLAND
Am Montag, den 09.07.2018, 10:28 -0400 schrieb Jon Ringle:
> On Mon, Jul 9, 2018 at 8:19 AM Denis OSTERLAND
>  wrote:
> > 
> > 
> > +ifdef PTXCONF_GLIBC_ATOMIC
> > +   @$(call install_copy_toolchain_lib, glibc, libatomic.so)
> > +endif
> > +
> This looks to be handled in rules/gcclibs.{in,make}
Correct.
Thank you
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH v2] dc3dd: add new package

2018-07-24 Thread Denis OSTERLAND
Hi Micheal,

are there further concerns, or is it simply not worthy?

Regards Denis

Am Freitag, den 22.06.2018, 11:15 + schrieb Denis OSTERLAND:
> From: Thorsten Liepert 
> 
> dd like tool with inline checksum validation.
> 
> Signed-off-by: Thorsten Liepert 
> Signed-off-by: Denis Osterland 
> ---
>  rules/dc3dd.in   | 11 ++
>  rules/dc3dd.make | 57 
>  2 files changed, 68 insertions(+)
>  create mode 100644 rules/dc3dd.in
>  create mode 100644 rules/dc3dd.make
> 
> diff --git a/rules/dc3dd.in b/rules/dc3dd.in
> new file mode 100644
> index 0..ea95631ed
> --- /dev/null
> +++ b/rules/dc3dd.in
> @@ -0,0 +1,11 @@
> +## SECTION=disk_and_file
> +
> +config DC3DD
> + tristate
> + select LIBC_PTHREAD
> + select LIBC
> + prompt "dc3dd"
> + help
> +   dc3dd is a patched version of GNU dd with added features for computer 
> forensics.
> +   It was developed at the DoD Cyber Crime Center by Jesse Kornblum.
> +   See https://tools.kali.org/forensics/dc3dd for usage.
> diff --git a/rules/dc3dd.make b/rules/dc3dd.make
> new file mode 100644
> index 0..16520f3c5
> --- /dev/null
> +++ b/rules/dc3dd.make
> @@ -0,0 +1,57 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Thorsten Liepert
> +#
> +# 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.
> +#
> +
> +PACKAGES-$(PTXCONF_DC3DD) += dc3dd
> +
> +DC3DD_VERSION:= 7.2.641
> +DC3DD_MD5:= 63987a467310d7b8a5102cb33e1945f4
> +DC3DD:= dc3dd-$(DC3DD_VERSION)
> +DC3DD_SUFFIX := tar.xz
> +DC3DD_URL:= $(call ptx/mirror, SF, 
> dc3dd/7.2/dc3dd-$(DC3DD_VERSION).$(DC3DD_SUFFIX))
> +DC3DD_SOURCE := $(SRCDIR)/$(DC3DD).$(DC3DD_SUFFIX)
> +DC3DD_DIR:= $(BUILDDIR)/$(DC3DD)
> +DC3DD_LICENSE:= GPL-3.0-or-later
> +DC3DD_LICENSE_FILES  := file://COPYING;md5=d32239bcb673463ab874e80d47fae504
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +DC3DD_AUTOCONF := \
> + $(CROSS_AUTOCONF_USR) \
> + $(GLOBAL_LARGE_FILE_OPTION) \
> + --enable-dependency-tracking \
> + --disable-assert \
> + --disable-rpath \
> + --disable-hdparm \
> + --disable-nls \
> + --without-included-regex \
> + --with-gnu-ld
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/dc3dd.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, dc3dd)
> + @$(call install_fixup, dc3dd,PRIORITY,optional)
> + @$(call install_fixup, dc3dd,SECTION,base)
> + @$(call install_fixup, dc3dd,AUTHOR,"Thorsten Liepert 
> ")
> + @$(call install_fixup, dc3dd,DESCRIPTION,missing)
> +
> + @$(call install_copy, dc3dd, 0, 0, 0755, -, /usr/bin/dc3dd)
> +
> + @$(call install_finish, dc3dd)
> +
> + @$(call touch)
> +
> +# vim: syntax=make

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] glibc: optional install libatomic

2018-07-09 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland 
---
 rules/glibc.in   | 6 ++
 rules/glibc.make | 4 
 2 files changed, 10 insertions(+)

diff --git a/rules/glibc.in b/rules/glibc.in
index bd0f1db91..3e50ef455 100644
--- a/rules/glibc.in
+++ b/rules/glibc.in
@@ -177,6 +177,12 @@ config GLIBC_NSL
  transport-level interface to networking services like i.E.
  nis(+)
 
+config GLIBC_ATOMIC
+   bool
+   prompt "Install libatomic"
+   help
+ Functions in this library provide implementation of C/C++11 atomic.
+
 
 config GLIBC_LDCONFIG
bool
diff --git a/rules/glibc.make b/rules/glibc.make
index c4de24ab1..1a410b99f 100644
--- a/rules/glibc.make
+++ b/rules/glibc.make
@@ -109,6 +109,10 @@ ifdef PTXCONF_GLIBC_NSL
@$(call install_copy_toolchain_lib, glibc, libnsl.so)
 endif
 
+ifdef PTXCONF_GLIBC_ATOMIC
+   @$(call install_copy_toolchain_lib, glibc, libatomic.so)
+endif
+
 ifdef PTXCONF_GLIBC_GCONF_BASE
@$(call install_copy_toolchain_lib, glibc, gconv/gconv-modules,, n)
 endif
-- 
2.18.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] license-csv: Add rules to generate CSV license report.

2018-03-29 Thread Denis OSTERLAND
Generates CSV license report along with PDF license report.

Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/post/ptxd_make_license_csv.make | 14 ++
 scripts/lib/ptxd_make_license_csv.sh  | 16 
 2 files changed, 30 insertions(+)
 create mode 100644 rules/post/ptxd_make_license_csv.make
 create mode 100644 scripts/lib/ptxd_make_license_csv.sh

diff --git a/rules/post/ptxd_make_license_csv.make 
b/rules/post/ptxd_make_license_csv.make
new file mode 100644
index 000..d74fed8
--- /dev/null
+++ b/rules/post/ptxd_make_license_csv.make
@@ -0,0 +1,14 @@
+
+license-report: $(REPORTDIR)/license-report.csv
+
+$(foreach p,$(PTX_PACKAGES_INSTALL),$(eval $(addprefix 
$(STATEDIR)/,$(addsuffix .report-csv,$p)): $(addprefix $(STATEDIR)/,$(addsuffix 
.report,$p
+
+$(REPORTDIR)/license-report.csv: $(addprefix $(STATEDIR)/,$(addsuffix 
.report-csv,$(PTX_PACKAGES_INSTALL)))
+   @$(call targetinfo)
+   cat $(wildcard $(addprefix $(REPORTDIR)/*/,$(addsuffix 
/report.csv,$(sort $(PTX_PACKAGES_INSTALL) > $@
+
+$(STATEDIR)/%.report-csv:
+   @$(call targetinfo)
+   @$(call world/env, $(PTX_MAP_TO_PACKAGE_$(*))) ptxd_make_license_csv
+   @$(call touch)
+
diff --git a/scripts/lib/ptxd_make_license_csv.sh 
b/scripts/lib/ptxd_make_license_csv.sh
new file mode 100644
index 000..f6149f5
--- /dev/null
+++ b/scripts/lib/ptxd_make_license_csv.sh
@@ -0,0 +1,16 @@
+#! /bin/bash
+#
+# Copyright (C) 2017 by Denis Osterland <denis.osterl...@diehl.com>
+#
+
+ptxd_make_license_csv() {
+   declare -A pkg_license_flags
+   ptxd_make_world_license_init || return
+
+   if [ "${pkg_section}" != "ignore" ]
+   then
+   echo 
"${pkg_label};${pkg_version};${pkg_section};${pkg_license};${pkg_url}" > 
${pkg_license_dir}/report.csv
+   fi
+}
+export -f ptxd_make_license_csv 
+
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dr.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] How to generate license report?

2018-03-29 Thread Denis OSTERLAND
We did something similar, some time ago.
We have used make dependencies to generate csv along with pdf report.
I have sent the patch to list.

Regards Denis
Am Mittwoch, den 28.03.2018, 22:31 +0200 schrieb Andreas Pretzsch:
> On Di, 2018-03-27 at 09:26 +, Alm, Michael wrote:
> > 
> > Also, it would be helpful to have a short-list with the package name, 
> > version and license 
> > type only, without all the license text. Maybe like this:
> > 
> > 'ptxdist license-report target short'
> > 
> > foo, 1.0, BSD
> > bar, 2.8.1.5, GPLv2
> > ...
> Have a look at my patchset "license-report: also create CSV lists" just
> sent to the list. It adds CSV generation to the regular process
> (triggered by "ptxdist make license-report").
> It might already solve your task.
> 
> Best regards,
>   Andreas
> 
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dr.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] license-csv: Add rules to generate CSV license report.

2018-03-29 Thread Denis OSTERLAND
Am Donnerstag, den 29.03.2018, 14:08 +0200 schrieb Andreas Pretzsch:
> On Do, 2018-03-29 at 07:29 +0000, Denis OSTERLAND wrote:
> > 
> > +++ b/scripts/lib/ptxd_make_license_csv.sh
> > @@ -0,0 +1,16 @@
> > +#! /bin/bash
> > +#
> > +# Copyright (C) 2017 by Denis Osterland <denis.osterl...@diehl.com>
> > +#
> > +
> > +ptxd_make_license_csv() {
> > +   declare -A pkg_license_flags
> > +   ptxd_make_world_license_init || return
> > +
> > +   if [ "${pkg_section}" != "ignore" ]
> > +   then
> > +   echo "${pkg_label};${pkg_version};${pkg_section};
> > ${pkg_license};${pkg_url}" > ${pkg_license_dir}/report.csv
> > +   fi
> > +}
> > +export -f ptxd_make_license_csv 
> Extending the field list by section is a good point, thanks. Will do.
> 
> But I would refrain from including the URL (for now), simply as it will
> include all sorts of characters, which then will require proper
> escaping. And in 20+ years, I've seen way too many broken parsers (and
> escapers)...
> Beside, the key point of the CSV list (to me / customers) is to have a
> diff'able list of included packages (which ones, version, license),
> beside the full fledged report. To see if one needs to look into
> something. So URL is nice, but not mandatory.
> 
> Last, about the CSV separator, I chose | out of experience, avoiding
> most collisions. Both , and ; show up often in text and even version
> tags. Yes, they are marked as string with "", but back to "broken
> parsers"...
> 
> So I still tend to a CSV output like:
> 
> "name"|"version"|"section"|"licenses"|"flags"
> "somepackage"|"1.2.3"|"osi-conform"|"Apache-2.0"|"attribution"
> [...]
> 
> 
> Denis, what do you think ?
You are right, URL tend to be brittle.
We use it as input for an overview page on embedded web server.
This will need some refactoring.
By the way, is it possible depend on your csv report from make?
I guess I will need to add some wrapper target to call sh function.

Regards Denis
> Michael, any experience/opinion on this ?
> 
> Best regards,
>   Andreas
> 
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dr.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] ptxdist: Add switch to generate PDF license report.

2018-03-22 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland <denis.osterl...@diehl.com>
---
 rules/license-report.in   | 6 ++
 rules/license-report.make | 3 +++
 2 files changed, 9 insertions(+)
 create mode 100644 rules/license-report.in
 create mode 100644 rules/license-report.make

diff --git a/rules/license-report.in b/rules/license-report.in
new file mode 100644
index 000..9d15a7f
--- /dev/null
+++ b/rules/license-report.in
@@ -0,0 +1,6 @@
+## SECTION=ptxdist_options
+
+config PROJECT_LICENSE_REPORT
+   bool "PDF license report"
+
+
diff --git a/rules/license-report.make b/rules/license-report.make
new file mode 100644
index 000..44745fe
--- /dev/null
+++ b/rules/license-report.make
@@ -0,0 +1,3 @@
+
+images: $(if $(PTXCONF_PROJECT_LICENSE_REPORT),license-report)
+
-- 
2.7.4


Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dr.-Ing. Michael Siedentop (Sprecher), Josef Fellner 
(Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 
620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – 
Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr 
Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), 
Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 
Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) 
Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form 
der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 
dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by mistake and delete it in such a case. Each 
unauthorized reproduction, disclosure, alteration, distribution and/or 
publication of this e-mail is strictly prohibited.

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] giflib: add new package

2018-06-29 Thread Denis OSTERLAND
Signed-off-by: Denis Osterland 
---
 rules/giflib.in   | 17 ++
 rules/giflib.make | 59 +++
 2 files changed, 76 insertions(+)
 create mode 100644 rules/giflib.in
 create mode 100644 rules/giflib.make

diff --git a/rules/giflib.in b/rules/giflib.in
new file mode 100644
index 0..335c8cb4d
--- /dev/null
+++ b/rules/giflib.in
@@ -0,0 +1,17 @@
+## SECTION=system_libraries
+
+menuconfig GIFLIB
+   tristate
+   prompt "giflib"
+   help
+ GIFLIB is a package of portable tools and library routines for 
working with GIF images.
+
+if GIFLIB
+
+config GIFLIB_TOOLS
+   bool "install gif tools"
+   help
+ giftext gif2rgb gifinto gifecho
+ gifbuild giftool giffix gifclrmp
+
+endif # GIFLIB
diff --git a/rules/giflib.make b/rules/giflib.make
new file mode 100644
index 0..363fa1241
--- /dev/null
+++ b/rules/giflib.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Denis Osterland 
+#
+# 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.
+#
+
+PACKAGES-$(PTXCONF_GIFLIB) += giflib
+
+GIFLIB_VERSION   := 5.1.4
+GIFLIB_MD5   := 2c171ced93c0e83bb09e6ccad8e3ba2b
+GIFLIB   := giflib-$(GIFLIB_VERSION)
+GIFLIB_SUFFIX:= tar.bz2
+GIFLIB_URL   := $(call ptx/mirror, SF, 
giflib/$(GIFLIB).$(GIFLIB_SUFFIX))
+GIFLIB_SOURCE:= $(SRCDIR)/$(GIFLIB).$(GIFLIB_SUFFIX)
+GIFLIB_DIR   := $(BUILDDIR)/$(GIFLIB)
+GIFLIB_LICENSE   := MIT
+GIFLIB_LICENSE_FILES := file://COPYING;md5=ae11c61b04b2917be39b11f78d71519a
+
+# 
+# Prepare
+# 
+
+GIFLIB_CONF_TOOL := autoconf
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/giflib.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, giflib)
+   @$(call install_fixup, giflib,PRIORITY,optional)
+   @$(call install_fixup, giflib,SECTION,base)
+   @$(call install_fixup, giflib,AUTHOR,"Denis Osterland 
")
+   @$(call install_fixup, giflib,DESCRIPTION,missing)
+
+   @$(call install_lib, giflib, 0, 0, 0644, libgif)
+
+ifdef GIFLIB_TOOLS
+   @$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/giftext)
+   @$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gif2rgb)
+   @$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gifinfo)
+   @$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gifecho)
+   @$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gifbuild)
+   @$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/giftool)
+   @$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/giffix)
+   @$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gifclrmp)
+endif
+
+   @$(call install_finish, giflib)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.18.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] xorg-lib-x11: add dependency to host xproto for X.h

2018-06-29 Thread Denis OSTERLAND
Required by src/util/makekeys.c host tool.

Signed-off-by: Denis Osterland 
---
 rules/xorg-lib-X11.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/xorg-lib-X11.in b/rules/xorg-lib-X11.in
index ce7a2b9a7..861d840e5 100644
--- a/rules/xorg-lib-X11.in
+++ b/rules/xorg-lib-X11.in
@@ -10,6 +10,7 @@ menuconfig XORG_LIB_X11
select LIBXCB
select XORG_LIB_XTRANS
select LIBC_PTHREAD
+   select HOST_XORGPROTO
help
  This is the main X library
 
-- 
2.18.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 6/7] u-boot: allow generation of custom environment binary

2018-10-16 Thread Denis OSTERLAND
Hi Ahmad,

Am Mittwoch, den 10.10.2018, 14:03 +0200 schrieb Ahmad Fatoum:
> U-Boot can be configured at compile-time to expect the environment at a
> set offset of e.g. the MMC.
> 
> Signed-off-by: Ahmad Fatoum 
> ---
>  platforms/u-boot.in | 27 +++
>  rules/u-boot.make   | 32 
>  2 files changed, 59 insertions(+)
> 
> diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> index bcb78cfc3f5a..4e19d09c74f5 100644
> --- a/platforms/u-boot.in
> +++ b/platforms/u-boot.in
> @@ -35,6 +35,33 @@ config U_BOOT_CONFIG
>     "yourbox_config". See Uboot's main Makefile for possible
>     configuration targets.
>  
> +config U_BOOT_ENV
> + prompt "Generate U-Boot environment binary image"
> + bool
> + help
> +   Use U-Boot's mkenvimage to generate an U-Boot environment binary image
> +   (uboot-env.bin) out of a text file (uboot-env.txt)
> +   with entries of the form:
> +   key1=value1
> +   key2=value2
> +
> +if U_BOOT_ENV
> +
> +config U_BOOT_ENV_IMAGE_SIZE
> + prompt "U-Boot environment image size"
> + string
> + default '0x2000'
> + help
> +   The output image size
> +
> +config U_BOOT_ENV_FLASH_REDUNDANT
> + prompt "Environment has multiple copies in flash"
> + bool
> + help
> +   Whether there are multiple copies of the U-Boot environment in flash
> +
> +endif
> +
>  comment "target install"
>  
>  config U_BOOT_INSTALL_SREC
> diff --git a/rules/u-boot.make b/rules/u-boot.make
> index d9bcdf5ca64d..39228dbcaf9c 100644
> --- a/rules/u-boot.make
> +++ b/rules/u-boot.make
> @@ -33,6 +33,16 @@ U_BOOT_CONFIG  := $(call ptx/in-platformconfigdir, \
>  # Prepare
>  # 
> 
>  
> +U_BOOT_ENV_TXT   := $(call ptx/in-platformconfigdir, uboot-env.txt)
> +U_BOOT_ENV_BIN   := $(IMAGEDIR)/uboot-env.bin
> +
> +ifdef PTXCONF_ENDIAN_BIG
> + U_BOOT_ENV_FLAGS += -b
> +endif
> +ifdef PTXCONF_U_BOOT_ENV_FLASH_REDUNDANT
> + U_BOOT_ENV_FLAGS += -r
> +endif
> +
>  U_BOOT_WRAPPER_BLACKLIST := \
>   TARGET_HARDEN_RELRO \
>   TARGET_HARDEN_BINDNOW \
> @@ -64,6 +74,23 @@ endif
>  
>  $(STATEDIR)/u-boot.prepare: $(U_BOOT_CONFIG)
>  
> +# 
> 
> +# Compile
> +# 
> 
> +
> +$(STATEDIR)/u-boot.compile:
> + @$(call targetinfo)
> + @+cd $(U_BOOT_DIR) && $(U_BOOT_PATH) \
> + $(MAKE) $(U_BOOT_MAKE_OPT)
I would prefer @$(call world/compile, U_BOOT) here.
> +ifdef PTXCONF_U_BOOT_ENV
> + @$(U_BOOT_DIR)/tools/mkenvimage \
> + $(U_BOOT_ENV_FLAGS) -s $(PTXCONF_U_BOOT_ENV_IMAGE_SIZE) \
> + -o $(U_BOOT_DIR)/uboot-env.bin \
> + $(U_BOOT_ENV_TXT)
> +endif
We had a similar case, but end up with an image of compiled in env, using 
get_default_envs script.
We didn´t had the time to clean it up.

--- a/rules/u-boot.make
+++ b/rules/u-boot.make
@@ -41,6 +41,19 @@ $(STATEDIR)/u-boot.prepare:
    $(MAKE) $(U_BOOT_MAKE_OPT) $(PTXCONF_U_BOOT_CONFIG)
    @$(call touch)
 
+# 
+# Compile
+# 
+
+$(STATEDIR)/u-boot.compile:
+   @$(call targetinfo)
+   @$(call world/compile, U_BOOT)
+   cd $(U_BOOT_DIR) && \
+   $(U_BOOT_MAKE_OPT) \
+   $(U_BOOT_DIR)/scripts/get_default_envs.sh \
+   | $(U_BOOT_DIR)/tools/mkenvimage -s 262144 -r -o u-boot_env.bin 
-
+   @$(call touch)
+
 # 
 # Install
 # 

> + @$(call touch)
> +
> +
>  # 
> 
>  # Install
>  # 
> 
> @@ -102,6 +129,10 @@ ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL
>   @install -v -D -m644 $(U_BOOT_DIR)/u-boot-with-spl-pbl.bin \
>   $(IMAGEDIR)/u-boot-with-spl-pbl.bin
>  endif
> +
> +ifdef PTXCONF_U_BOOT_ENV
> + @install -v -D -m644 $(U_BOOT_DIR)/uboot-env.bin $(U_BOOT_ENV_BIN)
> +endif
>   @$(call touch)
>  
>  # 
> 
> @@ -114,6 +145,7 @@ $(STATEDIR)/u-boot.clean:
>   @rm -vf $(IMAGEDIR)/u-boot.bin $(IMAGEDIR)/u-boot.srec
>   @rm -vf $(IMAGEDIR)/u-boot.elf $(IMAGEDIR)/u-boot.imx
>   @rm -vf $(IMAGEDIR)/u-boot-dtb.bin $(IMAGEDIR)/u-boot-with-spl-pbl.bin
> + @rm -vf $(U_BOOT_ENV_BIN)
>  
>  # 
> 
>  # oldconfig / menuconfig

Diehl Connectivity Solutions GmbH
Geschäftsführung: 

Re: [ptxdist] [PATCH v3 1/2] host-pyhton-scons: add new package

2019-01-17 Thread Denis OSTERLAND
Hi Michael,

Am Mittwoch, den 16.01.2019, 16:35 +0100 schrieb Michael Olbrich:
> On Tue, Jan 15, 2019 at 08:17:39AM +0000, Denis OSTERLAND wrote:
> > 
> > This patch adds support for scons build system.
> > https://scons.org/
> > 
> > Signed-off-by: Denis Osterland 
> The prefix is not correct here. It installs everything to .../local/
strange
on my system it is installed correct
platform-*/sysroot-host/bin/scons
I will try on buster.

I used rules/host-python-setuptools.make as template.
Does this one gets installed correct on your system?

Regards Denis

> 
> Michael


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v4 2/3] host-python-scons: add new package

2019-01-21 Thread Denis OSTERLAND
This patch adds support for scons build system.
https://scons.org/

Signed-off-by: Denis Osterland 
---
 rules/host-python-scons.in   |  6 ++
 rules/host-python-scons.make | 35 +++
 2 files changed, 41 insertions(+)
 create mode 100644 rules/host-python-scons.in
 create mode 100644 rules/host-python-scons.make

diff --git a/rules/host-python-scons.in b/rules/host-python-scons.in
new file mode 100644
index 0..0343fc8e1
--- /dev/null
+++ b/rules/host-python-scons.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PYTHON_SCONS
+   tristate
+   default y if ALLYES
+   select HOST_SYSTEM_PYTHON
diff --git a/rules/host-python-scons.make b/rules/host-python-scons.make
new file mode 100644
index 0..8fd42a41f
--- /dev/null
+++ b/rules/host-python-scons.make
@@ -0,0 +1,35 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Denis Osterland 
+#
+# 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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PYTHON_SCONS) += host-python-scons
+
+#
+# Paths and names
+#
+HOST_PYTHON_SCONS_VERSION  := 3.0.1
+HOST_PYTHON_SCONS_MD5  := b6a292e251b34b82c203b56cfa3968b3
+HOST_PYTHON_SCONS  := python-scons-$(HOST_PYTHON_SCONS_VERSION)
+HOST_PYTHON_SCONS_SUFFIX   := tar.gz
+HOST_PYTHON_SCONS_URL  := $(call ptx/mirror, SF, 
scons/scons-$(HOST_PYTHON_SCONS_VERSION).$(HOST_PYTHON_SCONS_SUFFIX))
+HOST_PYTHON_SCONS_SOURCE   := 
$(SRCDIR)/$(HOST_PYTHON_SCONS).$(HOST_PYTHON_SCONS_SUFFIX)
+HOST_PYTHON_SCONS_DIR  := $(HOST_BUILDDIR)/$(HOST_PYTHON_SCONS)
+HOST_PYTHON_SCONS_LICENSE  := MIT
+HOST_PYTHON_SCONS_LICENSE_FILES:= 
file://LICENSE.txt;md5=46ddf66004e5be5566367cb525a66fc6
+
+# 
+# Prepare
+# 
+
+HOST_PYTHON_SCONS_CONF_TOOL:= python
+
+# vim: syntax=make
-- 
2.20.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v4 3/3] gpsd: version bump 2.39 -> 3.18.1

2019-01-21 Thread Denis OSTERLAND
Use scons build system.
Add Kconfig switches for reconfigure, controlsend, group and ntpshmmon.
Remove PPS_ON_CTS.

Signed-off-by: Denis Osterland 
---
 ...ix-core-compiling-with-nmea-disabled.patch |  29 
 ...kage-if-some-drivers-are-not-enabled.patch |  48 ---
 .../0003-fix-a-simple-compile-error.patch |  28 
 patches/gpsd-2.39/0004-Fix-autotool-bug.patch |  53 
 ...-on-AM_PATH_PYTHON-to-work-propperly.patch | 104 ---
 .../gpsd-2.39/0006-fix-parallel-build.patch   |  38 --
 patches/gpsd-2.39/autogen.sh  |   4 -
 patches/gpsd-2.39/series  |   9 --
 ...t-crash-when-not-building-python-man.patch |  54 
 patches/gpsd-3.18.1/series|   4 +
 rules/gpsd.in |  34 -
 rules/gpsd.make   | 125 --
 12 files changed, 172 insertions(+), 358 deletions(-)
 delete mode 100644 
patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
 delete mode 100644 
patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
 delete mode 100644 patches/gpsd-2.39/0003-fix-a-simple-compile-error.patch
 delete mode 100644 patches/gpsd-2.39/0004-Fix-autotool-bug.patch
 delete mode 100644 
patches/gpsd-2.39/0005-just-rely-on-AM_PATH_PYTHON-to-work-propperly.patch
 delete mode 100644 patches/gpsd-2.39/0006-fix-parallel-build.patch
 delete mode 100755 patches/gpsd-2.39/autogen.sh
 delete mode 100644 patches/gpsd-2.39/series
 create mode 100644 
patches/gpsd-3.18.1/0001-SConstruct-Do-not-crash-when-not-building-python-man.patch
 create mode 100644 patches/gpsd-3.18.1/series

diff --git a/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch 
b/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
deleted file mode 100644
index e3e166be3..0
--- a/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Luotao Fu 
-Date: Sun, 30 Oct 2011 22:33:40 +0100
-Subject: [PATCH] fix core compiling with nmea disabled
-
-struct nmea is only defined in the driver union if NMEA_ENABLED is set.
-libpgsd_core however acquires if the ignore_trailing_edge in nmea is set
-or not carelessly if NMEA_ENABLED is set. Add an additional ifdef of
-NMEA_ENABLE to fix this.
-
-Signed-off-by: Luotao Fu 

-# 20110222 wsa: fixed in master meanwhile
-
- libgpsd_core.c |2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/libgpsd_core.c b/libgpsd_core.c
-index 28f787d..4109369 100644
 a/libgpsd_core.c
-+++ b/libgpsd_core.c
-@@ -206,7 +206,7 @@ static /*@null@*/void *gpsd_ppsmonitor(void *arg)
-   } else if (cycle > 999000 && cycle < 1001000 ) {
-   /* looks like PPS pulse or square wave */
-   if (duration > 499000 && duration < 501000
--#ifdef GPSCLOCK_ENABLE
-+#if defined(NMEA_ENABLE) && defined(GPSCLOCK_ENABLE)
- && session->driver.nmea.ignore_trailing_edge
- #endif /* GPSCLOCK_ENABLE */
- ) {
diff --git 
a/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
 
b/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
deleted file mode 100644
index b39161ec1..0
--- 
a/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From: Luotao Fu 
-Date: Thu, 23 Apr 2009 18:18:54 +0200
-Subject: [PATCH] fix link breakage if some drivers are not enabled
-
-rtcm*_unpack and rtcm*_dump functions are only declared if the rtcm drivers are
-enabled during configuration. The same for aivdm. If these drivers are not
-enabled, linking will fail due to unknow reference. Add some ifdefs to avoid
-this. This is ugly ifdef hell. It'd be way eleganter to change the structures 
in
-driver code and put some function pointer checking in here. Due to lack of time
-I only did this quick hack. Better ideas are highly welcome.
-
-Signed-off-by: Luotao Fu 

-# 20110222 wsa: fixed in master meanwhile. Like this.
-
- gpsdecode.c |6 ++
- 1 files changed, 6 insertions(+), 0 deletions(-)
-
-diff --git a/gpsdecode.c b/gpsdecode.c
-index ffe898b..e18c698 100644
 a/gpsdecode.c
-+++ b/gpsdecode.c
-@@ -57,19 +57,25 @@ static void decode(FILE *fpin, FILE *fpout)
-   else if (lexer.type == COMMENT_PACKET)
-   continue;
-   else if (lexer.type == RTCM2_PACKET) {
-+#if defined(RTCM104V2_ENABLE)
-   rtcm2_unpack(, (char *)lexer.isgps.buf);
-   rtcm2_dump(, buf, sizeof(buf));
-   (void)fputs(buf, fpout);
-+#endif
-   }
-   else if (lexer.type == RTCM3_PACKET) {
-+#if defined(RTCM104V3_ENABLE)
-   rtcm3_unpack(, (char *)lexer.outbuffer);
-   rtcm3_dump(, stdout);
-+#endif
-   }
-   else if (lexer.type == AIVDM_PACKET) {
-+#if defined(aivdm_dump)
-   /*@ -uniondef */
-

[ptxdist] [PATCH v4 1/3] rules: install to sysroot-host/bin with HOST_PYTHON and HOST_SYSTEM_PYTHON

2019-01-21 Thread Denis OSTERLAND
Using system python "install --prefix= --root=..." gets resolved to
"/local/bin" installation prefix.
With self compiled python to "/bin".
Without "--prefix=" system python uses "/usr/local/bin" and self
compiled "/bin".
With "--prefix=." system python uses "./bin" and self compiled, too.

Signed-off-by: Denis Osterland 
---
 rules/pre/Rules.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
index fbf5f1fad..88256060c 100644
--- a/rules/pre/Rules.make
+++ b/rules/pre/Rules.make
@@ -246,7 +246,7 @@ CROSS_QMAKE_OPT := \
$(if $(filter 0,$(PTXDIST_VERBOSE)),CONFIG+=silent)
 
 CROSS_PYTHON_INSTALL := install --prefix=/usr
-HOST_PYTHON_INSTALL := install --prefix=
+HOST_PYTHON_INSTALL := install --prefix=.
 
 CROSS_MESON_USR := \
--prefix /usr \
-- 
2.20.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v4 0/3] update gpsd and switch to scons build system

2019-01-21 Thread Denis OSTERLAND
v3 -> v4: fix install to /local/
v2 -> v3: add missing dependency of pps to ntpshmmon
v1 -> v2: correct dependency HOST_PYTHON -> HOST_SYSTEM_PYTHON

gpsd uses scons build system now.
The first patch adds scons as host tool.
The second patch updates gpsd and uses scons to build it.

Denis Osterland(3):
rules: install to sysroot-host/bin with HOST_PYTHON and HOST_SYSTEM_PYTHON
host-python-scons: add new package
gpsd: version bump 2.39 -> 3.18.1

 ...001-fix-core-compiling-with-nmea-disabled.patch |  29 -
 ...-breakage-if-some-drivers-are-not-enabled.patch |  48 
 .../0003-fix-a-simple-compile-error.patch  |  28 -
 patches/gpsd-2.39/0004-Fix-autotool-bug.patch  |  53 -
 ...-rely-on-AM_PATH_PYTHON-to-work-propperly.patch | 104 -
 patches/gpsd-2.39/0006-fix-parallel-build.patch|  38 ---
 patches/gpsd-2.39/autogen.sh   |   4 -
 patches/gpsd-2.39/series   |   9 --
 ...Do-not-crash-when-not-building-python-man.patch |  54 +
 patches/gpsd-3.18.1/series |   4 +
 rules/gpsd.in  |  34 +-
 rules/gpsd.make| 125 ++---
 rules/host-python-scons.in |   6 +
 rules/host-python-scons.make   |  35 ++
 rules/pre/Rules.make   |   2 +-
 15 files changed, 214 insertions(+), 359 deletions(-)




Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] Add rapidjson package

2019-01-16 Thread Denis OSTERLAND
Hi Bernhard,

Am Dienstag, den 15.01.2019, 21:50 +0100 schrieb Bernhard Walle:
> Signed-off-by: Bernhard Walle 
> ---
>  .../0001-Remove-march-native-from-c-xx-flags.patch | 22 
>  ...02-Remove-Wextra-and-Werror-from-cxxflags.patch | 25 +
>  .../0003-Add-a-void-case-in-memcpy.patch   | 35 ++
>  patches/rapidjson-1.1.0/series |  6 
>  rules/rapidjson.in | 10 ++
>  rules/rapidjson.make   | 41 
> ++
>  6 files changed, 139 insertions(+)
>  create mode 100644 
> patches/rapidjson-1.1.0/0001-Remove-march-native-from-c-xx-flags.patch
>  create mode 100644 
> patches/rapidjson-1.1.0/0002-Remove-Wextra-and-Werror-from-cxxflags.patch
>  create mode 100644 
> patches/rapidjson-1.1.0/0003-Add-a-void-case-in-memcpy.patch
>  create mode 100644 patches/rapidjson-1.1.0/series
>  create mode 100644 rules/rapidjson.in
>  create mode 100644 rules/rapidjson.make
> 
> diff --git 
> a/patches/rapidjson-1.1.0/0001-Remove-march-native-from-c-xx-flags.patch 
> b/patches/rapidjson-1.1.0/0001-Remove-march-native-from-c-xx-flags.patch
> new file mode 100644
> index 0..6b38eaacc
> --- /dev/null
> +++ b/patches/rapidjson-1.1.0/0001-Remove-march-native-from-c-xx-flags.patch
> @@ -0,0 +1,22 @@
> +From: Bernhard Walle 
> +Date: Sun, 6 Jan 2019 10:30:55 +0100
> +Subject: [PATCH] Remove -march=native from c(xx)flags
> +
> +Signed-off-by: Bernhard Walle 
> +---
> + CMakeLists.txt | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index ceda71b1b67c..66183d58ab73 100644
> +--- a/CMakeLists.txt
>  b/CMakeLists.txt
> +@@ -50,7 +50,7 @@ if(CCACHE_FOUND)
> + endif(CCACHE_FOUND)
> + 
> + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
> +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra 
> -Werror")
> ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
> + if (RAPIDJSON_BUILD_CXX11)
> + if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7.0")
> + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
> diff --git 
> a/patches/rapidjson-1.1.0/0002-Remove-Wextra-and-Werror-from-cxxflags.patch 
> b/patches/rapidjson-1.1.0/0002-Remove-Wextra-and-Werror-from-cxxflags.patch
> new file mode 100644
> index 0..e06aaa657
> --- /dev/null
> +++ 
> b/patches/rapidjson-1.1.0/0002-Remove-Wextra-and-Werror-from-cxxflags.patch
> @@ -0,0 +1,25 @@
> +From: Bernhard Walle 
> +Date: Sun, 6 Jan 2019 11:21:23 +0100
> +Subject: [PATCH] Remove -Wextra and -Werror from cxxflags
> +
> +The code doesn't compile with that warnings, for example because
> +-Wimplicit-fallthrough is enabled with -Wextra.
> +
> +Signed-off-by: Bernhard Walle 
> +---
> + CMakeLists.txt | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index 66183d58ab73..5e0e065f8d1b 100644
> +--- a/CMakeLists.txt
>  b/CMakeLists.txt
> +@@ -50,7 +50,7 @@ if(CCACHE_FOUND)
> + endif(CCACHE_FOUND)
> + 
> + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
> +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
> ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall 
> -Wno-implicit-fallthrough")
> + if (RAPIDJSON_BUILD_CXX11)
> + if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7.0")
> + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
> diff --git a/patches/rapidjson-1.1.0/0003-Add-a-void-case-in-memcpy.patch 
> b/patches/rapidjson-1.1.0/0003-Add-a-void-case-in-memcpy.patch
> new file mode 100644
> index 0..d1610e4df
> --- /dev/null
> +++ b/patches/rapidjson-1.1.0/0003-Add-a-void-case-in-memcpy.patch
> @@ -0,0 +1,35 @@
> +From: Bernhard Walle 
> +Date: Sun, 6 Jan 2019 11:23:52 +0100
> +Subject: [PATCH] Add a (void *) case in memcpy
> +
> +The code seems to be ok since that's the way they fixed it in the git
> +repo. However, the patch from master doesn't cleanly apply in the old
> +version.
> +
> +Signed-off-by: Bernhard Walle 
> +---
> + include/rapidjson/document.h | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
> +index e3e20dfbdc99..a99960426f34 100644
> +--- a/include/rapidjson/document.h
>  b/include/rapidjson/document.h
> +@@ -1936,7 +1936,7 @@ private:
> + if (count) {
> + GenericValue* e = 
> static_cast(allocator.Malloc(count * sizeof(GenericValue)));
> + SetElementsPointer(e);
> +-std::memcpy(e, values, count * sizeof(GenericValue));
> ++std::memcpy((void *)e, values, count * sizeof(GenericValue));
> + }
> + else
> + SetElementsPointer(0);
> +@@ -1949,7 +1949,7 @@ private:
> + if (count) {
> + Member* m = static_cast(allocator.Malloc(count * 
> sizeof(Member)));
> + SetMembersPointer(m);
> +- 

[ptxdist] [PATCH v3 2/2] gpsd: version bump 2.39 -> 3.18.1

2019-01-15 Thread Denis OSTERLAND
Use scons build system.
Add Kconfig switches for reconfigure, controlsend, group and ntpshmmon.
Remove PPS_ON_CTS.

Signed-off-by: Denis Osterland 
---
 ...ix-core-compiling-with-nmea-disabled.patch |  29 
 ...kage-if-some-drivers-are-not-enabled.patch |  48 ---
 .../0003-fix-a-simple-compile-error.patch |  28 
 patches/gpsd-2.39/0004-Fix-autotool-bug.patch |  53 
 ...-on-AM_PATH_PYTHON-to-work-propperly.patch | 104 ---
 .../gpsd-2.39/0006-fix-parallel-build.patch   |  38 --
 patches/gpsd-2.39/autogen.sh  |   4 -
 patches/gpsd-2.39/series  |   9 --
 ...t-crash-when-not-building-python-man.patch |  54 
 patches/gpsd-3.18.1/series|   4 +
 rules/gpsd.in |  34 -
 rules/gpsd.make   | 125 --
 12 files changed, 172 insertions(+), 358 deletions(-)
 delete mode 100644 
patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
 delete mode 100644 
patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
 delete mode 100644 patches/gpsd-2.39/0003-fix-a-simple-compile-error.patch
 delete mode 100644 patches/gpsd-2.39/0004-Fix-autotool-bug.patch
 delete mode 100644 
patches/gpsd-2.39/0005-just-rely-on-AM_PATH_PYTHON-to-work-propperly.patch
 delete mode 100644 patches/gpsd-2.39/0006-fix-parallel-build.patch
 delete mode 100755 patches/gpsd-2.39/autogen.sh
 delete mode 100644 patches/gpsd-2.39/series
 create mode 100644 
patches/gpsd-3.18.1/0001-SConstruct-Do-not-crash-when-not-building-python-man.patch
 create mode 100644 patches/gpsd-3.18.1/series

diff --git a/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch 
b/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
deleted file mode 100644
index e3e166be3..0
--- a/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Luotao Fu 
-Date: Sun, 30 Oct 2011 22:33:40 +0100
-Subject: [PATCH] fix core compiling with nmea disabled
-
-struct nmea is only defined in the driver union if NMEA_ENABLED is set.
-libpgsd_core however acquires if the ignore_trailing_edge in nmea is set
-or not carelessly if NMEA_ENABLED is set. Add an additional ifdef of
-NMEA_ENABLE to fix this.
-
-Signed-off-by: Luotao Fu 

-# 20110222 wsa: fixed in master meanwhile
-
- libgpsd_core.c |2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/libgpsd_core.c b/libgpsd_core.c
-index 28f787d..4109369 100644
 a/libgpsd_core.c
-+++ b/libgpsd_core.c
-@@ -206,7 +206,7 @@ static /*@null@*/void *gpsd_ppsmonitor(void *arg)
-   } else if (cycle > 999000 && cycle < 1001000 ) {
-   /* looks like PPS pulse or square wave */
-   if (duration > 499000 && duration < 501000
--#ifdef GPSCLOCK_ENABLE
-+#if defined(NMEA_ENABLE) && defined(GPSCLOCK_ENABLE)
- && session->driver.nmea.ignore_trailing_edge
- #endif /* GPSCLOCK_ENABLE */
- ) {
diff --git 
a/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
 
b/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
deleted file mode 100644
index b39161ec1..0
--- 
a/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From: Luotao Fu 
-Date: Thu, 23 Apr 2009 18:18:54 +0200
-Subject: [PATCH] fix link breakage if some drivers are not enabled
-
-rtcm*_unpack and rtcm*_dump functions are only declared if the rtcm drivers are
-enabled during configuration. The same for aivdm. If these drivers are not
-enabled, linking will fail due to unknow reference. Add some ifdefs to avoid
-this. This is ugly ifdef hell. It'd be way eleganter to change the structures 
in
-driver code and put some function pointer checking in here. Due to lack of time
-I only did this quick hack. Better ideas are highly welcome.
-
-Signed-off-by: Luotao Fu 

-# 20110222 wsa: fixed in master meanwhile. Like this.
-
- gpsdecode.c |6 ++
- 1 files changed, 6 insertions(+), 0 deletions(-)
-
-diff --git a/gpsdecode.c b/gpsdecode.c
-index ffe898b..e18c698 100644
 a/gpsdecode.c
-+++ b/gpsdecode.c
-@@ -57,19 +57,25 @@ static void decode(FILE *fpin, FILE *fpout)
-   else if (lexer.type == COMMENT_PACKET)
-   continue;
-   else if (lexer.type == RTCM2_PACKET) {
-+#if defined(RTCM104V2_ENABLE)
-   rtcm2_unpack(, (char *)lexer.isgps.buf);
-   rtcm2_dump(, buf, sizeof(buf));
-   (void)fputs(buf, fpout);
-+#endif
-   }
-   else if (lexer.type == RTCM3_PACKET) {
-+#if defined(RTCM104V3_ENABLE)
-   rtcm3_unpack(, (char *)lexer.outbuffer);
-   rtcm3_dump(, stdout);
-+#endif
-   }
-   else if (lexer.type == AIVDM_PACKET) {
-+#if defined(aivdm_dump)
-   /*@ -uniondef */
-

[ptxdist] [PATCH v3 1/2] host-pyhton-scons: add new package

2019-01-15 Thread Denis OSTERLAND
This patch adds support for scons build system.
https://scons.org/

Signed-off-by: Denis Osterland 
---
 rules/host-python-scons.in   |  6 ++
 rules/host-python-scons.make | 35 +++
 2 files changed, 41 insertions(+)
 create mode 100644 rules/host-python-scons.in
 create mode 100644 rules/host-python-scons.make

diff --git a/rules/host-python-scons.in b/rules/host-python-scons.in
new file mode 100644
index 0..0343fc8e1
--- /dev/null
+++ b/rules/host-python-scons.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PYTHON_SCONS
+   tristate
+   default y if ALLYES
+   select HOST_SYSTEM_PYTHON
diff --git a/rules/host-python-scons.make b/rules/host-python-scons.make
new file mode 100644
index 0..8fd42a41f
--- /dev/null
+++ b/rules/host-python-scons.make
@@ -0,0 +1,35 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Denis Osterland 
+#
+# 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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PYTHON_SCONS) += host-python-scons
+
+#
+# Paths and names
+#
+HOST_PYTHON_SCONS_VERSION  := 3.0.1
+HOST_PYTHON_SCONS_MD5  := b6a292e251b34b82c203b56cfa3968b3
+HOST_PYTHON_SCONS  := python-scons-$(HOST_PYTHON_SCONS_VERSION)
+HOST_PYTHON_SCONS_SUFFIX   := tar.gz
+HOST_PYTHON_SCONS_URL  := $(call ptx/mirror, SF, 
scons/scons-$(HOST_PYTHON_SCONS_VERSION).$(HOST_PYTHON_SCONS_SUFFIX))
+HOST_PYTHON_SCONS_SOURCE   := 
$(SRCDIR)/$(HOST_PYTHON_SCONS).$(HOST_PYTHON_SCONS_SUFFIX)
+HOST_PYTHON_SCONS_DIR  := $(HOST_BUILDDIR)/$(HOST_PYTHON_SCONS)
+HOST_PYTHON_SCONS_LICENSE  := MIT
+HOST_PYTHON_SCONS_LICENSE_FILES:= 
file://LICENSE.txt;md5=46ddf66004e5be5566367cb525a66fc6
+
+# 
+# Prepare
+# 
+
+HOST_PYTHON_SCONS_CONF_TOOL:= python
+
+# vim: syntax=make
-- 
2.20.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v3 0/2] update gpsd and switch to scons build system

2019-01-15 Thread Denis OSTERLAND
v2 -> v3: add missing dependency of pps to ntpshmmon
v1 -> v2: correct dependency HOST_PYTHON -> HOST_SYSTEM_PYTHON

gpsd uses scons build system now.
The first patch adds scons as host tool.
The second patch updates gpsd and uses scons to build it.

Denis Osterland(2):
host-pyhton-scons: add new package
gpsd: version bump 2.39 -> 3.18.1

 ...001-fix-core-compiling-with-nmea-disabled.patch |  29 -
 ...-breakage-if-some-drivers-are-not-enabled.patch |  48 
 .../0003-fix-a-simple-compile-error.patch  |  28 -
 patches/gpsd-2.39/0004-Fix-autotool-bug.patch  |  53 -
 ...-rely-on-AM_PATH_PYTHON-to-work-propperly.patch | 104 -
 patches/gpsd-2.39/0006-fix-parallel-build.patch|  38 ---
 patches/gpsd-2.39/autogen.sh   |   4 -
 patches/gpsd-2.39/series   |   9 --
 ...Do-not-crash-when-not-building-python-man.patch |  54 +
 patches/gpsd-3.18.1/series |   4 +
 rules/gpsd.in  |  34 +-
 rules/gpsd.make| 125 ++---
 rules/host-python-scons.in |   6 +
 rules/host-python-scons.make   |  35 ++
 14 files changed, 213 insertions(+), 358 deletions(-)





Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH v3 1/2] host-pyhton-scons: add new package

2019-01-18 Thread Denis OSTERLAND
Hi Michael,

I have tested it here with a minimal configuration and I fails to build...

-
target: host-python-scons.compile
-

ptxdist: executing: cd 
/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-Generic/platform-sabrelite/build-host/python-scons-3.0.1
 && PATH=\/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-Generic/platform-
sabrelite/sysroot-host/lib/wrapper:/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-Generic/platform-sabrelite/sysroot-host/bin:/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-Generic/platform-sabrelite/sysroot-
host/sbin:/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-Generic/selected_toolchain:/usr/lib/x86_64-linux-gnu/ptxdist-
2018.12.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
 PKGCONFIG_WHITELIST_HOST='' PKGCONFIG_WHITELIST_TARGET=''
PKGCONFIG_WHITELIST_SRC='host-python-scons' 
SYSROOT='/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-Generic/platform-sabrelite/sysroot-host'
 V=1 VERBOSE=1 KBUILD_BUILD_TIMESTAMP=2018-12-01T00:00:00+00:00
KBUILD_BUILD_USER=ptxdist KBUILD_BUILD_HOST=ptxdist 
enable_option_checking=fatal enable_maintainer_mode=no enable_static=no 
CC="gcc" CXX="g++" PYTHONPATH="/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-
Generic/platform-sabrelite/sysroot-host/lib/python2.7/site-packages" 
/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-Generic/platform-sabrelite/sysroot-host/bin/python2.7
 setup.py build

/bin/bash: line 2: 
/home/osterlad/BSPs/OSELAS.BSP-Pengutronix-Generic/platform-sabrelite/sysroot-host/bin/python2.7:
 No such file or directory


The rules/host-python-setuptools.in selects HOST_PYTHON instead of 
HOST_SYSTEM_PYTHON as well.

I find only "python" as "pkg_conf_tool" in 
scripts/lib/ptxd_make_world_common.sh.
Is there some "_CONF_TOOL := system-python"?

Regards Denis

Am Donnerstag, den 17.01.2019, 10:53 + schrieb Denis OSTERLAND:
> Hi Michael,
> 
> Am Mittwoch, den 16.01.2019, 16:35 +0100 schrieb Michael Olbrich:
> > 
> > On Tue, Jan 15, 2019 at 08:17:39AM +, Denis OSTERLAND wrote:
> > > 
> > > 
> > > This patch adds support for scons build system.
> > > https://scons.org/
> > > 
> > > Signed-off-by: Denis Osterland 
> > The prefix is not correct here. It installs everything to .../local/
> strange
> on my system it is installed correct
> platform-*/sysroot-host/bin/scons
> I will try on buster.
> 
> I used rules/host-python-setuptools.make as template.
> Does this one gets installed correct on your system?
> 
> Regards Denis
>   
> > 
> > 
> > Michael
> 
> Diehl Connectivity Solutions GmbH
> Geschäftsführung: Horst Leonberger
> Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> Nürnberg: HRB 32315
> ___
> 
> Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
> enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
> haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> und/oder Publikation dieser E-Mail ist strengstens untersagt.
> The contents of the above mentioned e-mail is not legally binding. This 
> e-mail contains confidential and/or legally protected information. Please 
> inform us if you have received this e-mail by
> mistake and delete it in such a case. Each unauthorized reproduction, 
> disclosure, alteration, distribution and/or publication of this e-mail is 
> strictly prohibited. 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] setlocalversion: only use tags actually on current branch

2018-12-12 Thread Denis OSTERLAND
Hi,

Am Mittwoch, den 12.12.2018, 14:51 +0100 schrieb Michael Olbrich:
> On Wed, Dec 12, 2018 at 09:14:52AM +0000, Denis OSTERLAND wrote:
> > 
> > Consider following situation:
> > 
> >    tag C
> >  v
> >  A---B---C topic
> > / \
> >    D---E---F---G---H master
> >    ^
> >  tag E
> > 
> > PTXDIST_BSP_AUTOVERSION at commit G will be E-2-g,
> > but at commit H it will be C-3-g.
> > With --first-parent it will be E-3-g.
> > This is more intuitive result,
> > especially when more than just one branch gets merged.
> Nack. This only works with explicit merges. If multiple people update the
> branch with git pull/push, then the first parent may not be the upstream
> commit and the correct tag may be missed.
I am not sure if I got the point here.

Is this your concern:
                           tag C
 v
 A---B---C origin/master
/ \
   D---E---F---G---H master

and now when pushing master to origin C becomes invisible.

> 
> In your example above consider 'C' the HEAD of the local master branch
> before a pull/push. Then the first parent of 'H' is 'C'. And a if 'F' is
> the tag, then it is ignored.
The branches are equal, so of course yes.

If I got you right:

              tag C
                v
        A---B---C---H topic
       /           /
  D---E---F---G master
          ^
        tag F

At G it is F-1-g.
At H it is C-3-g and C-1-g with --first-parent.

Seems to be correct behavior to me.

> 
> Maybe a patch that allows to overwrite setlocalversion in the BSP?
> 
> Michael

Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] setlocalversion: only use tags actually on current branch

2018-12-12 Thread Denis OSTERLAND
Hi,

Am Mittwoch, den 12.12.2018, 15:53 +0100 schrieb Michael Olbrich:
> Hi,
> 
> On Wed, Dec 12, 2018 at 02:35:45PM +0000, Denis OSTERLAND wrote:
> > 
> > Am Mittwoch, den 12.12.2018, 14:51 +0100 schrieb Michael Olbrich:
> > > 
> > > On Wed, Dec 12, 2018 at 09:14:52AM +, Denis OSTERLAND wrote:
> > > > 
> > > > 
> > > > Consider following situation:
> > > > 
> > > >    tag C
> > > >  v
> > > >  A---B---C topic
> > > > / \
> > > >    D---E---F---G---H master
> > > >    ^
> > > >  tag E
> > > > 
> > > > PTXDIST_BSP_AUTOVERSION at commit G will be E-2-g,
> > > > but at commit H it will be C-3-g.
> > > > With --first-parent it will be E-3-g.
> > > > This is more intuitive result,
> > > > especially when more than just one branch gets merged.
> > > Nack. This only works with explicit merges. If multiple people update the
> > > branch with git pull/push, then the first parent may not be the upstream
> > > commit and the correct tag may be missed.
> > I am not sure if I got the point here.
> > 
> > Is this your concern:
> >                            tag C
> >  v
> >  A---B---C origin/master
> > / \
> >    D---E---F---G---H master
> > 
> > and now when pushing master to origin C becomes invisible.
> Exactly, and that is not acceptable in general.
Okay.
We do "git rebase origin/master" before push, but in general you are right this 
is possible.

> 
> > 
> > > 
> > > In your example above consider 'C' the HEAD of the local master branch
> > > before a pull/push. Then the first parent of 'H' is 'C'. And a if 'F' is
> > > the tag, then it is ignored.
> > The branches are equal, so of course yes.
> > 
> > If I got you right:
> > 
> >               tag C
> >                 v
> >         A---B---C---H topic
> >        /           /
> >   D---E---F---G master
> >           ^
> >         tag F
> > 
> > At G it is F-1-g.
> > At H it is C-3-g and C-1-g with --first-parent.
> > 
> > Seems to be correct behavior to me.
> I'm not sure what your point is here.
I guess I got you wrong here. Your paragraph also applies to above example.

> 
> Michael
> 

I found a simple to do it in my BSP:

diff --git a/configs/ptxconfig b/configs/ptxconfig
index f59c6ea..15ce835 100644
--- a/configs/ptxconfig
+++ b/configs/ptxconfig
@@ -61,7 +61,7 @@ PTXCONF_WEBUI=y
 #
 PTXCONF_PROJECT_VENDOR="Diehl Connectivity Solutions GmbH"
 PTXCONF_PROJECT="Jelica"
-PTXCONF_PROJECT_VERSION="-${PTXDIST_BSP_AUTOVERSION}"
+PTXCONF_PROJECT_VERSION="-${BSP_AUTOVERSION}"
 
 #
 # 
diff --git a/rules/autoversion.make b/rules/autoversion.make
new file mode 100644
index 000..971f762
--- /dev/null
+++ b/rules/autoversion.make
@@ -0,0 +1,13 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Denis Osterland 
+#
+# 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.
+#
+
+BSP_AUTOVERSION=$(shell git describe --first-parent --dirty)
+
+# vim: syntax=make

Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] setlocalversion: only use tags actually on current branch

2018-12-13 Thread Denis OSTERLAND
Hi,

for interested listeners, my custom auto-version with '-' handling.
It defers in format, but thats okay to me.

$ git describe
OSELAS.BSP-Pengutronix-Generic-2014.07.0-6-g3266e67

$ ./p print PTXDIST_BSP_AUTOVERSION
2014.07.0-6-g3266e67f0b46

$ ./p print BSP_AUTOVERSION
2014.07.0-6-g3266e67

Regards Denis
---
 rules/pre/autoversion.make | 17 +
 1 file changed, 17 insertions(+)

diff --git a/rules/pre/autoversion.make b/rules/pre/autoversion.make
new file mode 100644
index 000..cceeb09
--- /dev/null
+++ b/rules/pre/autoversion.make
@@ -0,0 +1,17 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Denis Osterland 
+#
+# 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.
+#
+
+AUTOVERSION_GIT_LAST_TAG := $(shell git describe --first-parent --abbrev=0)
+AUTOVERSION_GIT_DESCRIBE := $(shell git describe --first-parent --dirty)
+BSP_AUTOVERSION := $(addprefix \
+   $(lastword $(subst -, ,$(AUTOVERSION_GIT_LAST_TAG))), \
+   $(AUTOVERSION_GIT_DESCRIBE:$(AUTOVERSION_GIT_LAST_TAG)%=%))
+
+# vim: syntax=make

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] setlocalversion: only use tags actually on current branch

2018-12-12 Thread Denis OSTERLAND
Hi

Am Donnerstag, den 13.12.2018, 08:29 +0100 schrieb Uwe Kleine-König:
> On Wed, Dec 12, 2018 at 09:14:52AM +0000, Denis OSTERLAND wrote:
> > 
> > Consider following situation:
> > 
> >    tag C
> >  v
> >  A---B---C topic
> > / \
> >    D---E---F---G---H master
> >    ^
> >  tag E
> > 
> > PTXDIST_BSP_AUTOVERSION at commit G will be E-2-g,
> > but at commit H it will be C-3-g.
> At H I'd expect C-1-g.
> 
> I think in general using --first-parent is wrong. It's only in some
> workflows (i.e. when there is a single person that does "mainline
> merges") where the first parent is special.
This is result of discussion with Michael Olbrich.

> 
> > 
> > With --first-parent it will be E-3-gXXXX.
> > This is more intuitive result,
> > especially when more than just one branch gets merged.
> > 
> > Signed-off-by: Denis Osterland 
> > ---
> >  scripts/kernel/setlocalversion | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/scripts/kernel/setlocalversion b/scripts/kernel/setlocalversion
> > index 3feb87dce..7eaaaf413 100755
> > --- a/scripts/kernel/setlocalversion
> > +++ b/scripts/kernel/setlocalversion
> > @@ -55,12 +55,12 @@ if head=`git ${git_abbrev} rev-parse --verify --short 
> > HEAD 2>/dev/null`; then
> >  
> >     # If we are at a tagged commit (like "ptxdist-2010.05.0"), we
> >     # print it here
> > -   if atag="`git describe --exact-match 2>/dev/null`"; then
> > +   if atag="`git describe --first-parent --exact-match 2>/dev/null`"; then
> With --exact-match --first-parent is a noop, isn't it?
You are right.

> 
> > 
> >     echo "$atag" | awk -F- '{printf("%s", $(NF))}'
> unrelated to this patch: if atag is "ELWMS-1.0-rc17" the result here is
> "rc17", isn't it?
You are right.
This behavior is untouched.
Tag "ELWMS-1.0_rc17" would give "1.0_rc17".

This is obviously missing in my posted custom rule and I have to add it to add 
it.
Thanks for the hint.

> 
> Best regards
> Uwe
> 

Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] kconfig: fix warnings on format

2018-12-12 Thread Denis OSTERLAND
Fixes warnings like:
conf.c:79:3: warning: format not a string literal and no format arguments 
[-Wformat-security]
   printf(_("aborted!\n\n"));
   ^

Signed-off-by: Denis Osterland 
---
 scripts/kconfig/lkc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index 91ca126ea..6be5da701 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -11,6 +11,8 @@
 #ifndef KBUILD_NO_NLS
 # include 
 #else
+# include 
+__attribute_format_arg__(1)
 static inline const char *gettext(const char *txt) { return txt; }
 static inline void textdomain(const char *domainname) {}
 static inline void bindtextdomain(const char *name, const char *dir) {}
-- 
2.19.2



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] kconfig: fix warnings on format

2018-12-18 Thread Denis OSTERLAND
Hi,

Am Mittwoch, den 12.12.2018, 14:06 + schrieb Denis OSTERLAND:
> Hi,
> 
> Am Mittwoch, den 12.12.2018, 14:29 +0100 schrieb Michael Olbrich:
> > 
> > On Wed, Dec 12, 2018 at 10:31:27AM +, Denis OSTERLAND wrote:
> > > 
> > > 
> > > Fixes warnings like:
> > > conf.c:79:3: warning: format not a string literal and no format arguments 
> > > [-Wformat-security]
> > >    printf(_("aborted!\n\n"));
> > >    ^
> > Can you elaborate what triggers this? I don't get this warning here.
> > Please add this to the commit message.
> Just call make clean all.
> Maybe it depends on GCC.
> I tested with:
>  - gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
>  - gcc (Ubuntu 8.1.0-5ubuntu1~16.04) 8.1.0
I have tested with Debian Buster and Ubuntu Bionic now.
On Ubuntu I get these warnings, but on Debian not.
Maybe Ubuntu configures GCC other than Debian on compile time.

Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH] setlocalversion: only use tags actually on current branch

2018-12-12 Thread Denis OSTERLAND
Consider following situation:

   tag C
 v
 A---B---C topic
/ \
   D---E---F---G---H master
   ^
 tag E

PTXDIST_BSP_AUTOVERSION at commit G will be E-2-g,
but at commit H it will be C-3-g.
With --first-parent it will be E-3-g.
This is more intuitive result,
especially when more than just one branch gets merged.

Signed-off-by: Denis Osterland 
---
 scripts/kernel/setlocalversion | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/kernel/setlocalversion b/scripts/kernel/setlocalversion
index 3feb87dce..7eaaaf413 100755
--- a/scripts/kernel/setlocalversion
+++ b/scripts/kernel/setlocalversion
@@ -55,12 +55,12 @@ if head=`git ${git_abbrev} rev-parse --verify --short HEAD 
2>/dev/null`; then
 
# If we are at a tagged commit (like "ptxdist-2010.05.0"), we
# print it here
-   if atag="`git describe --exact-match 2>/dev/null`"; then
+   if atag="`git describe --first-parent --exact-match 2>/dev/null`"; then
echo "$atag" | awk -F- '{printf("%s", $(NF))}'
 
# If we are past a tagged commit (like 
"ptxdist-2010.03.0-130-g3c60777"),
# we pretty print it.
-   elif atag="`git ${git_abbrev} describe 2>/dev/null`"; then
+   elif atag="`git ${git_abbrev} describe --first-parent 2>/dev/null`"; 
then
echo "$atag" | awk -F- '{printf("%s-%05d-%s", 
$(NF-2),$(NF-1),$(NF))}'
 
# If we don't have a tag at all we print .??.?-?-g{commitish}.
-- 
2.19.2



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH] kconfig: fix warnings on format

2018-12-12 Thread Denis OSTERLAND
Hi,

Am Mittwoch, den 12.12.2018, 14:29 +0100 schrieb Michael Olbrich:
> On Wed, Dec 12, 2018 at 10:31:27AM +0000, Denis OSTERLAND wrote:
> > 
> > Fixes warnings like:
> > conf.c:79:3: warning: format not a string literal and no format arguments 
> > [-Wformat-security]
> >    printf(_("aborted!\n\n"));
> >    ^
> Can you elaborate what triggers this? I don't get this warning here.
> Please add this to the commit message.
Just call make clean all.
Maybe it depends on GCC.
I tested with:
 - gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
 - gcc (Ubuntu 8.1.0-5ubuntu1~16.04) 8.1.0

> 
> In general, I'd prefer to follow upstream and drop the nls support
> completely, but that won't happen until I update this stuff to the new
> upstream version.
Obviously the better solution.

> 
> Michael

Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 1/2] host-pyhton-scons: add new package

2019-01-07 Thread Denis OSTERLAND
Am Montag, den 07.01.2019, 16:16 +0100 schrieb Michael Olbrich:
> On Fri, Jan 04, 2019 at 08:11:58AM +0000, Denis OSTERLAND wrote:
> > 
> > +
> > +config HOST_PYTHON_SCONS
> > +   tristate
> > +   default y if ALLYES
> > +   select HOST_PYTHON
> No. HOST_PYTHON is only there to build the target Python. Use
> HOST_SYSTEM_PYTHON instead.
> 
> Michael

Okay, will fix in v2

regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2 2/2] gpsd: version bump 2.39 -> 3.18.1

2019-01-07 Thread Denis OSTERLAND
Use scons build system.
Add Kconfig switches for reconfigure, controlsend, group and ntpshmmon.
Remove PPS_ON_CTS.

Signed-off-by: Denis Osterland 
---
 ...ix-core-compiling-with-nmea-disabled.patch |  29 
 ...kage-if-some-drivers-are-not-enabled.patch |  48 ---
 .../0003-fix-a-simple-compile-error.patch |  28 
 patches/gpsd-2.39/0004-Fix-autotool-bug.patch |  53 
 ...-on-AM_PATH_PYTHON-to-work-propperly.patch | 104 ---
 .../gpsd-2.39/0006-fix-parallel-build.patch   |  38 --
 patches/gpsd-2.39/autogen.sh  |   4 -
 patches/gpsd-2.39/series  |   9 --
 ...t-crash-when-not-building-python-man.patch |  54 
 patches/gpsd-3.18.1/series|   4 +
 rules/gpsd.in |  33 -
 rules/gpsd.make   | 125 --
 12 files changed, 171 insertions(+), 358 deletions(-)
 delete mode 100644 
patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
 delete mode 100644 
patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
 delete mode 100644 patches/gpsd-2.39/0003-fix-a-simple-compile-error.patch
 delete mode 100644 patches/gpsd-2.39/0004-Fix-autotool-bug.patch
 delete mode 100644 
patches/gpsd-2.39/0005-just-rely-on-AM_PATH_PYTHON-to-work-propperly.patch
 delete mode 100644 patches/gpsd-2.39/0006-fix-parallel-build.patch
 delete mode 100755 patches/gpsd-2.39/autogen.sh
 delete mode 100644 patches/gpsd-2.39/series
 create mode 100644 
patches/gpsd-3.18.1/0001-SConstruct-Do-not-crash-when-not-building-python-man.patch
 create mode 100644 patches/gpsd-3.18.1/series

diff --git a/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch 
b/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
deleted file mode 100644
index e3e166be3..0
--- a/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Luotao Fu 
-Date: Sun, 30 Oct 2011 22:33:40 +0100
-Subject: [PATCH] fix core compiling with nmea disabled
-
-struct nmea is only defined in the driver union if NMEA_ENABLED is set.
-libpgsd_core however acquires if the ignore_trailing_edge in nmea is set
-or not carelessly if NMEA_ENABLED is set. Add an additional ifdef of
-NMEA_ENABLE to fix this.
-
-Signed-off-by: Luotao Fu 

-# 20110222 wsa: fixed in master meanwhile
-
- libgpsd_core.c |2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/libgpsd_core.c b/libgpsd_core.c
-index 28f787d..4109369 100644
 a/libgpsd_core.c
-+++ b/libgpsd_core.c
-@@ -206,7 +206,7 @@ static /*@null@*/void *gpsd_ppsmonitor(void *arg)
-   } else if (cycle > 999000 && cycle < 1001000 ) {
-   /* looks like PPS pulse or square wave */
-   if (duration > 499000 && duration < 501000
--#ifdef GPSCLOCK_ENABLE
-+#if defined(NMEA_ENABLE) && defined(GPSCLOCK_ENABLE)
- && session->driver.nmea.ignore_trailing_edge
- #endif /* GPSCLOCK_ENABLE */
- ) {
diff --git 
a/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
 
b/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
deleted file mode 100644
index b39161ec1..0
--- 
a/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From: Luotao Fu 
-Date: Thu, 23 Apr 2009 18:18:54 +0200
-Subject: [PATCH] fix link breakage if some drivers are not enabled
-
-rtcm*_unpack and rtcm*_dump functions are only declared if the rtcm drivers are
-enabled during configuration. The same for aivdm. If these drivers are not
-enabled, linking will fail due to unknow reference. Add some ifdefs to avoid
-this. This is ugly ifdef hell. It'd be way eleganter to change the structures 
in
-driver code and put some function pointer checking in here. Due to lack of time
-I only did this quick hack. Better ideas are highly welcome.
-
-Signed-off-by: Luotao Fu 

-# 20110222 wsa: fixed in master meanwhile. Like this.
-
- gpsdecode.c |6 ++
- 1 files changed, 6 insertions(+), 0 deletions(-)
-
-diff --git a/gpsdecode.c b/gpsdecode.c
-index ffe898b..e18c698 100644
 a/gpsdecode.c
-+++ b/gpsdecode.c
-@@ -57,19 +57,25 @@ static void decode(FILE *fpin, FILE *fpout)
-   else if (lexer.type == COMMENT_PACKET)
-   continue;
-   else if (lexer.type == RTCM2_PACKET) {
-+#if defined(RTCM104V2_ENABLE)
-   rtcm2_unpack(, (char *)lexer.isgps.buf);
-   rtcm2_dump(, buf, sizeof(buf));
-   (void)fputs(buf, fpout);
-+#endif
-   }
-   else if (lexer.type == RTCM3_PACKET) {
-+#if defined(RTCM104V3_ENABLE)
-   rtcm3_unpack(, (char *)lexer.outbuffer);
-   rtcm3_dump(, stdout);
-+#endif
-   }
-   else if (lexer.type == AIVDM_PACKET) {
-+#if defined(aivdm_dump)
-   /*@ -uniondef */
-

[ptxdist] [PATCH v2 1/2] host-pyhton-scons: add new package

2019-01-07 Thread Denis OSTERLAND
This patch adds support for scons build system.
https://scons.org/

Signed-off-by: Denis Osterland 
---
 rules/host-python-scons.in   |  6 ++
 rules/host-python-scons.make | 35 +++
 2 files changed, 41 insertions(+)
 create mode 100644 rules/host-python-scons.in
 create mode 100644 rules/host-python-scons.make

diff --git a/rules/host-python-scons.in b/rules/host-python-scons.in
new file mode 100644
index 0..0343fc8e1
--- /dev/null
+++ b/rules/host-python-scons.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PYTHON_SCONS
+   tristate
+   default y if ALLYES
+   select HOST_SYSTEM_PYTHON
diff --git a/rules/host-python-scons.make b/rules/host-python-scons.make
new file mode 100644
index 0..8fd42a41f
--- /dev/null
+++ b/rules/host-python-scons.make
@@ -0,0 +1,35 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Denis Osterland 
+#
+# 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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PYTHON_SCONS) += host-python-scons
+
+#
+# Paths and names
+#
+HOST_PYTHON_SCONS_VERSION  := 3.0.1
+HOST_PYTHON_SCONS_MD5  := b6a292e251b34b82c203b56cfa3968b3
+HOST_PYTHON_SCONS  := python-scons-$(HOST_PYTHON_SCONS_VERSION)
+HOST_PYTHON_SCONS_SUFFIX   := tar.gz
+HOST_PYTHON_SCONS_URL  := $(call ptx/mirror, SF, 
scons/scons-$(HOST_PYTHON_SCONS_VERSION).$(HOST_PYTHON_SCONS_SUFFIX))
+HOST_PYTHON_SCONS_SOURCE   := 
$(SRCDIR)/$(HOST_PYTHON_SCONS).$(HOST_PYTHON_SCONS_SUFFIX)
+HOST_PYTHON_SCONS_DIR  := $(HOST_BUILDDIR)/$(HOST_PYTHON_SCONS)
+HOST_PYTHON_SCONS_LICENSE  := MIT
+HOST_PYTHON_SCONS_LICENSE_FILES:= 
file://LICENSE.txt;md5=46ddf66004e5be5566367cb525a66fc6
+
+# 
+# Prepare
+# 
+
+HOST_PYTHON_SCONS_CONF_TOOL:= python
+
+# vim: syntax=make
-- 
2.20.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH v2 0/2] update gpsd and switch to scons build system

2019-01-07 Thread Denis OSTERLAND
v1 -> v2: correct dependency HOST_PYTHON -> HOST_SYSTEM_PYTHON

gpsd uses scons build system now.
The first patch adds scons as host tool.
The second patch updates gpsd and uses scons to build it.

Denis Osterland(2):
host-pyhton-scons: add new package
gpsd: version bump 2.39 -> 3.18.1

 ...001-fix-core-compiling-with-nmea-disabled.patch |  29 -
 ...-breakage-if-some-drivers-are-not-enabled.patch |  48 
 .../0003-fix-a-simple-compile-error.patch  |  28 -
 patches/gpsd-2.39/0004-Fix-autotool-bug.patch  |  53 -
 ...-rely-on-AM_PATH_PYTHON-to-work-propperly.patch | 104 -
 patches/gpsd-2.39/0006-fix-parallel-build.patch|  38 ---
 patches/gpsd-2.39/autogen.sh   |   4 -
 patches/gpsd-2.39/series   |   9 --
 ...Do-not-crash-when-not-building-python-man.patch |  54 +
 patches/gpsd-3.18.1/series |   4 +
 rules/gpsd.in  |  33 +-
 rules/gpsd.make| 125 ++---
 rules/host-python-scons.in |   6 +
 rules/host-python-scons.make   |  35 ++
 14 files changed, 212 insertions(+), 358 deletions(-)




Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH 2/2] gpsd: version bump 2.39 -> 3.18.1

2019-01-04 Thread Denis OSTERLAND
Use scons build system.
Add Kconfig switches for reconfigure, controlsend, group and ntpshmmon.
Remove PPS_ON_CTS.

Signed-off-by: Denis Osterland 
---
 ...ix-core-compiling-with-nmea-disabled.patch |  29 
 ...kage-if-some-drivers-are-not-enabled.patch |  48 ---
 .../0003-fix-a-simple-compile-error.patch |  28 
 patches/gpsd-2.39/0004-Fix-autotool-bug.patch |  53 
 ...-on-AM_PATH_PYTHON-to-work-propperly.patch | 104 ---
 .../gpsd-2.39/0006-fix-parallel-build.patch   |  38 --
 patches/gpsd-2.39/autogen.sh  |   4 -
 patches/gpsd-2.39/series  |   9 --
 ...t-crash-when-not-building-python-man.patch |  54 
 patches/gpsd-3.18.1/series|   4 +
 rules/gpsd.in |  33 -
 rules/gpsd.make   | 125 --
 12 files changed, 171 insertions(+), 358 deletions(-)
 delete mode 100644 
patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
 delete mode 100644 
patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
 delete mode 100644 patches/gpsd-2.39/0003-fix-a-simple-compile-error.patch
 delete mode 100644 patches/gpsd-2.39/0004-Fix-autotool-bug.patch
 delete mode 100644 
patches/gpsd-2.39/0005-just-rely-on-AM_PATH_PYTHON-to-work-propperly.patch
 delete mode 100644 patches/gpsd-2.39/0006-fix-parallel-build.patch
 delete mode 100755 patches/gpsd-2.39/autogen.sh
 delete mode 100644 patches/gpsd-2.39/series
 create mode 100644 
patches/gpsd-3.18.1/0001-SConstruct-Do-not-crash-when-not-building-python-man.patch
 create mode 100644 patches/gpsd-3.18.1/series

diff --git a/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch 
b/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
deleted file mode 100644
index e3e166be3..0
--- a/patches/gpsd-2.39/0001-fix-core-compiling-with-nmea-disabled.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Luotao Fu 
-Date: Sun, 30 Oct 2011 22:33:40 +0100
-Subject: [PATCH] fix core compiling with nmea disabled
-
-struct nmea is only defined in the driver union if NMEA_ENABLED is set.
-libpgsd_core however acquires if the ignore_trailing_edge in nmea is set
-or not carelessly if NMEA_ENABLED is set. Add an additional ifdef of
-NMEA_ENABLE to fix this.
-
-Signed-off-by: Luotao Fu 

-# 20110222 wsa: fixed in master meanwhile
-
- libgpsd_core.c |2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/libgpsd_core.c b/libgpsd_core.c
-index 28f787d..4109369 100644
 a/libgpsd_core.c
-+++ b/libgpsd_core.c
-@@ -206,7 +206,7 @@ static /*@null@*/void *gpsd_ppsmonitor(void *arg)
-   } else if (cycle > 999000 && cycle < 1001000 ) {
-   /* looks like PPS pulse or square wave */
-   if (duration > 499000 && duration < 501000
--#ifdef GPSCLOCK_ENABLE
-+#if defined(NMEA_ENABLE) && defined(GPSCLOCK_ENABLE)
- && session->driver.nmea.ignore_trailing_edge
- #endif /* GPSCLOCK_ENABLE */
- ) {
diff --git 
a/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
 
b/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
deleted file mode 100644
index b39161ec1..0
--- 
a/patches/gpsd-2.39/0002-fix-link-breakage-if-some-drivers-are-not-enabled.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From: Luotao Fu 
-Date: Thu, 23 Apr 2009 18:18:54 +0200
-Subject: [PATCH] fix link breakage if some drivers are not enabled
-
-rtcm*_unpack and rtcm*_dump functions are only declared if the rtcm drivers are
-enabled during configuration. The same for aivdm. If these drivers are not
-enabled, linking will fail due to unknow reference. Add some ifdefs to avoid
-this. This is ugly ifdef hell. It'd be way eleganter to change the structures 
in
-driver code and put some function pointer checking in here. Due to lack of time
-I only did this quick hack. Better ideas are highly welcome.
-
-Signed-off-by: Luotao Fu 

-# 20110222 wsa: fixed in master meanwhile. Like this.
-
- gpsdecode.c |6 ++
- 1 files changed, 6 insertions(+), 0 deletions(-)
-
-diff --git a/gpsdecode.c b/gpsdecode.c
-index ffe898b..e18c698 100644
 a/gpsdecode.c
-+++ b/gpsdecode.c
-@@ -57,19 +57,25 @@ static void decode(FILE *fpin, FILE *fpout)
-   else if (lexer.type == COMMENT_PACKET)
-   continue;
-   else if (lexer.type == RTCM2_PACKET) {
-+#if defined(RTCM104V2_ENABLE)
-   rtcm2_unpack(, (char *)lexer.isgps.buf);
-   rtcm2_dump(, buf, sizeof(buf));
-   (void)fputs(buf, fpout);
-+#endif
-   }
-   else if (lexer.type == RTCM3_PACKET) {
-+#if defined(RTCM104V3_ENABLE)
-   rtcm3_unpack(, (char *)lexer.outbuffer);
-   rtcm3_dump(, stdout);
-+#endif
-   }
-   else if (lexer.type == AIVDM_PACKET) {
-+#if defined(aivdm_dump)
-   /*@ -uniondef */
-

[ptxdist] [PATCH 1/2] host-pyhton-scons: add new package

2019-01-04 Thread Denis OSTERLAND
This patch adds support for scons build system.
https://scons.org/

Signed-off-by: Denis Osterland 
---
 rules/host-python-scons.in   |  6 ++
 rules/host-python-scons.make | 35 +++
 2 files changed, 41 insertions(+)
 create mode 100644 rules/host-python-scons.in
 create mode 100644 rules/host-python-scons.make

diff --git a/rules/host-python-scons.in b/rules/host-python-scons.in
new file mode 100644
index 0..34bdddc0d
--- /dev/null
+++ b/rules/host-python-scons.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PYTHON_SCONS
+   tristate
+   default y if ALLYES
+   select HOST_PYTHON
diff --git a/rules/host-python-scons.make b/rules/host-python-scons.make
new file mode 100644
index 0..8fd42a41f
--- /dev/null
+++ b/rules/host-python-scons.make
@@ -0,0 +1,35 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Denis Osterland 
+#
+# 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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PYTHON_SCONS) += host-python-scons
+
+#
+# Paths and names
+#
+HOST_PYTHON_SCONS_VERSION  := 3.0.1
+HOST_PYTHON_SCONS_MD5  := b6a292e251b34b82c203b56cfa3968b3
+HOST_PYTHON_SCONS  := python-scons-$(HOST_PYTHON_SCONS_VERSION)
+HOST_PYTHON_SCONS_SUFFIX   := tar.gz
+HOST_PYTHON_SCONS_URL  := $(call ptx/mirror, SF, 
scons/scons-$(HOST_PYTHON_SCONS_VERSION).$(HOST_PYTHON_SCONS_SUFFIX))
+HOST_PYTHON_SCONS_SOURCE   := 
$(SRCDIR)/$(HOST_PYTHON_SCONS).$(HOST_PYTHON_SCONS_SUFFIX)
+HOST_PYTHON_SCONS_DIR  := $(HOST_BUILDDIR)/$(HOST_PYTHON_SCONS)
+HOST_PYTHON_SCONS_LICENSE  := MIT
+HOST_PYTHON_SCONS_LICENSE_FILES:= 
file://LICENSE.txt;md5=46ddf66004e5be5566367cb525a66fc6
+
+# 
+# Prepare
+# 
+
+HOST_PYTHON_SCONS_CONF_TOOL:= python
+
+# vim: syntax=make
-- 
2.20.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [PATCH 0/2] update gpsd and switch to scons build system

2019-01-04 Thread Denis OSTERLAND
gpsd uses scons build system now.
The first patch adds scons as host tool.
The second patch updates gpsd and uses scons to build it.

Denis Osterland(2):
host-pyhton-scons: add new package
gpsd: version bump 2.39 -> 3.18.1

 ...001-fix-core-compiling-with-nmea-disabled.patch |  29 -
 ...-breakage-if-some-drivers-are-not-enabled.patch |  48 
 .../0003-fix-a-simple-compile-error.patch  |  28 -
 patches/gpsd-2.39/0004-Fix-autotool-bug.patch  |  53 -
 ...-rely-on-AM_PATH_PYTHON-to-work-propperly.patch | 104 -
 patches/gpsd-2.39/0006-fix-parallel-build.patch|  38 ---
 patches/gpsd-2.39/autogen.sh   |   4 -
 patches/gpsd-2.39/series   |   9 --
 ...Do-not-crash-when-not-building-python-man.patch |  54 +
 patches/gpsd-3.18.1/series |   4 +
 rules/gpsd.in  |  33 +-
 rules/gpsd.make| 125 ++---
 rules/host-python-scons.in |   6 +
 rules/host-python-scons.make   |  35 ++
 14 files changed, 212 insertions(+), 358 deletions(-)




Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH v2 2/2] wget: add TLS support

2019-01-13 Thread Denis OSTERLAND
Hi,

Am Samstag, den 12.01.2019, 10:03 +0100 schrieb Ladislav Michl:
> +
> +config WGET_SSL
> + string
> + default "openssl"   if WGET_SSL_OPENSSL
> + default "gnutls"if WGET_SSL_GNUTLS
> + default "no"if WGET_SSL_NONE
> +
> +config WGET_ZLIB
> + bool "zlib support"
> + help
> +   Build wget with zlib support
> +
> +endif
> +
>  comment "BusyBox's wget is selected!"
>   depends on BUSYBOX_WGET
> diff --git a/rules/wget.make b/rules/wget.make
> index 9e17d410e..4d8c3ddea 100644
> --- a/rules/wget.make
> +++ b/rules/wget.make
> @@ -37,7 +37,8 @@ WGET_ENV := \
>  #
>  # autoconf
>  #
> -WGET_AUTOCONF := \
> +WGET_CONF_TOOL := autoconf
> +WGET_CONF_OPT := \
>   $(CROSS_AUTOCONF_USR) \
>   --enable-opie \
>   --enable-digest \
> @@ -54,11 +55,11 @@ WGET_AUTOCONF := \
>   --disable-pcre \
>   --disable-xattr \
>   --without-libpsl \
> - --without-ssl \
> - --without-zlib \
> + --with-ssl=$(PTXCONF_WGET_SSL) \
> + --$(call ptx/wwo,PTXCONF_WGET_ZLIB)-zlib \
>   --with-metalink \
>   --without-cares \
> - --without-openssl \
> + --$(call ptx/wwo,PTXCONF_WGET_OPENSSL)-openssl \
I wonder if '--$(call ptx/wwo,PTXCONF_WGET_GNUTLS)-gnutls' would be required,
or '--with-ssl=$(PTXCONF_WGET_SSL)' does everything and none of them are 
required.

>   --with-included-libunistring \
>   --without-included-regex \
>   --with-libidn=/usr \

Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2018.12.0 released

2019-01-14 Thread Denis OSTERLAND
Hi Michael,

I have tried to run busybox on STM32F469-disco board, but failed with OSELAS 
2018.12.0.
With OSELAS 2018.02.0 it works.
The kernel complains about a reference to a shared library in the FLAT file.
I had a look at busybox_unstripped.map to figure out why, but I cant find the
address modulo page size.
So I compiled a minimal program (int main() { return 0; }) and used it as
/sbin/init. Same picture, kernel complains about a reference to a shared 
library.
Is it possible that there is a bug in uclinux-ng-1.0.31?

Has someone a hint, how to track down this issue?

Regards Denis

Am Donnerstag, den 13.12.2018, 15:49 +0100 schrieb Michael Olbrich:
> Hi,
> 
> I'm happy to announce that I've just released OSELAS.Toolchain-2018.12.0.
> 
> This is a major release with significant changes. All components of the
> primary toolchains have been updated to the latest versions. The highlights
> are:
>  - gcc 8.2
>  - glibc 2.28
>  - binutils 2.31.1
>  - kernel headers 4.19
>  - gdb 8.2
> 
> There are two new toolchains this time. A RISC-V 64-bit and a MIPS 32-bit
> big-endian toolchain. All other toolchains are the same as before.
> 
> Download the release here:
> https://public.pengutronix.de/oselas/toolchain/
> 
> Enjoy,
> Michael Olbrich
> 
> 
> 
> 
> 
> 
>    The message was neither encrypted nor digitally signed 
>  Z1 SecureMail Gateway Info - www.zertificon.com 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> +--+
> > 
> > Z1 SecureMail Gateway Info - http://www.zertificon.com   |
> +--+
> > 
> > - The message was neither encrypted nor digitally signed |
> +--+

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCHv1] openssl: version bump to 1.1.1a

2019-01-09 Thread Denis OSTERLAND
Hi Oliver,

AFAIK OpenSSL 1.0 -> 1.1 is a bigger step.
On which architectures have you tried it?
Do you compiled ALL_YES?

Am Dienstag, den 08.01.2019, 14:45 +0100 schrieb Oliver Graute:
> this patch bump openssl to LTS version 1.1.1a
> 
> Signed-off-by: Oliver Graute 
> ---
> 
> first try to get LTS openssl into ptxdist
> 
> - added debian-armel to Configurations/10-main.conf for compiling on arm
I would use the patches from 
http://deb.debian.org/debian/pool/main/o/openssl/openssl_1.1.1a-1.debian.tar.xz
to replace the patches imported from openssl1.0_1.0.2o-1.debian.tar.xz.

The patches 0100 and 0101 can be dropped, if it builds in parallel, I guess.

> - dropped the other patches, are these still necessary?
You should delete this patches.
Actually your patches does not delete them.

> 
>  .../openssl-1.1.1a/0001-added-debian-armel.patch   | 41 
> ++
>  patches/openssl-1.1.1a/series  |  1 +
>  rules/openssl.make | 10 +++---
>  3 files changed, 47 insertions(+), 5 deletions(-)
>  create mode 100644 patches/openssl-1.1.1a/0001-added-debian-armel.patch
>  create mode 100644 patches/openssl-1.1.1a/series
> 
> diff --git a/patches/openssl-1.1.1a/0001-added-debian-armel.patch 
> b/patches/openssl-1.1.1a/0001-added-debian-armel.patch
> new file mode 100644
> index 000..567a405
> --- /dev/null
> +++ b/patches/openssl-1.1.1a/0001-added-debian-armel.patch
> @@ -0,0 +1,41 @@
> +From 3144929533150f6c5cb1d3e4e915fd3e9556af5d Mon Sep 17 00:00:00 2001
> +From: Oliver Graute 
> +Date: Tue, 8 Jan 2019 13:17:55 +0100
> +Subject: [PATCH] openssl: added debian-armel to Configuration
> +
> +added target debian-armel to 10-main.conf
> +
> +---
> + Configurations/10-main.conf | 16 
> + 1 file changed, 16 insertions(+)
> +
> +diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
> +index 5cf345d..5f1bdfe 100644
> +--- a/Configurations/10-main.conf
>  b/Configurations/10-main.conf
> +@@ -627,6 +627,22 @@ my %targets = (
> + shared_extension => ".so",
> + },
> + 
> ++"debian-armel" => {
> ++inherit_from => [ "linux-generic32", asm("armv4_asm") ],
> ++CC   => "gcc",
> ++CFLAGS   => "",
> ++cflags   => "-g -O2 -Wformat -Werror=format-security " . 
> "-Wa,--noexecstack -Wall",
> ++cppflags => threads("-D_REENTRANT"),
> ++lib_cppflags => "-DL_ENDIAN",
> ++ex_libs  => add("-ldl"),
> ++bn_ops   => "BN_LLONG RC4_CHAR
> ++RC4_CHUNK DES_INT DES_UNROLL BF_PTR",
> ++dso_scheme   => "dlfcn",
> ++shared_target=> "linux-shared",
> ++shared_cflag => "-fPIC",
> ++shared_extension => ".so",
> ++},
> ++
> + 
> +  Variety of LINUX:-)
> + 
> +-- 
> +1.9.1
> +
> diff --git a/patches/openssl-1.1.1a/series b/patches/openssl-1.1.1a/series
> new file mode 100644
> index 000..d11a458
> --- /dev/null
> +++ b/patches/openssl-1.1.1a/series
> @@ -0,0 +1 @@
> +0001-added-debian-armel.patch
> diff --git a/rules/openssl.make b/rules/openssl.make
> index d514077..0ace6c3 100644
> --- a/rules/openssl.make
> +++ b/rules/openssl.make
> @@ -18,10 +18,10 @@ PACKAGES-$(PTXCONF_OPENSSL) += openssl
>  #
>  # Paths and names
>  #
> -OPENSSL_BASE := 1.0.2
> -OPENSSL_BUGFIX   := q
> +OPENSSL_BASE := 1.1.1
> +OPENSSL_BUGFIX   := a
>  OPENSSL_VERSION  := $(OPENSSL_BASE)$(OPENSSL_BUGFIX)
> -OPENSSL_MD5  := 7563e1ce046cb21948eeb6ba1a0eb71c
> +OPENSSL_MD5  := 963deb2272d6be7d4c2458afd2517b73
>  OPENSSL  := openssl-$(OPENSSL_VERSION)
>  OPENSSL_SUFFIX   := tar.gz
>  OPENSSL_URL  := \
> @@ -74,7 +74,7 @@ endif
>  OPENSSL_CONF_OPT := \
>   --prefix=/usr \
>   --openssldir=/usr/lib/ssl \
> - --install_prefix=$(OPENSSL_PKGDIR) \
> + DESTDIR=$(OPENSSL_PKGDIR) \
>   shared
>  
>  OPENSSL_INSTALL_OPT := \
> @@ -106,7 +106,7 @@ ifdef PTXCONF_OPENSSL_BIN
>  endif
>  
>   @$(call install_alternative, openssl, 0, 0, 0644, \
> - /usr/lib/ssl/openssl.cnf)
> + /apps/openssl.cnf)
>  
>   @$(call install_lib, openssl, 0, 0, 0644, libssl)
>   @$(call install_lib, openssl, 0, 0, 0644, libcrypto)

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail 

Re: [ptxdist] [PATCH v4 3/3] gpsd: version bump 2.39 -> 3.18.1

2019-02-05 Thread Denis OSTERLAND
Hi Michael,

thanks for your input.

Am Dienstag, den 05.02.2019, 10:07 +0100 schrieb Michael Olbrich:
> On Mon, Jan 21, 2019 at 12:01:21PM +0000, Denis OSTERLAND wrote:
> > 
> > +
> >  GPSD_ENV = \
> >     $(CROSS_ENV) \
> >     PYTHON=$(CROSS_PYTHON)
> You need to add PATH=$(CROSS_PATH) to the env. Otherwise pkg-config does
> not work correctly.
okay. I was pretty sure that the defines for pkg-config were part of CROSS_ENV.

> 
> Also, the python here is not picked up correctly. You need to set
> target_python and python_libdir below to properly install the python files.
I will try it.

> 
> And targetinstall fails because /usr/bin/gpsflash is not found. I think
> this war removed upstream.
So let´s remove it, too. ;-)

> 
> Michael

Regards Denis


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [RFC PATCH] host-meson: add dependency to python setuptools

2019-04-11 Thread Denis OSTERLAND
Fixes:
Traceback (most recent call last):
  File "setup.py", line 25, in 
from setuptools import setup
ImportError: No module named 'setuptools'

Signed-off-by: Denis Osterland 
---
 rules/host-meson.in   | 2 +-
 rules/host-meson.make | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


Hi Michael,

I tried to stick with system-python3, as we did with host-python-scons
and system-python, but failed in configure.
I have python-3.5.1 installed on my system.
Is 3.7 mandatory?
'install host-system-python3' runs without bailout.
Or is python module installation to "system" only supported for python2?

Regards Denis


diff --git a/rules/host-meson.in b/rules/host-meson.in
index 580533cc8..d0c1a5c55 100644
--- a/rules/host-meson.in
+++ b/rules/host-meson.in
@@ -2,6 +2,6 @@
 
 config HOST_MESON
tristate
-   select HOST_SYSTEM_PYTHON3
+   select HOST_PYTHON3_SETUPTOOLS
select HOST_NINJA
default y if ALLYES
diff --git a/rules/host-meson.make b/rules/host-meson.make
index 6f1cc6dc3..7123c5ed8 100644
--- a/rules/host-meson.make
+++ b/rules/host-meson.make
@@ -36,7 +36,7 @@ HOST_MESON_CONF_TOOL  := NO
 
 $(STATEDIR)/host-meson.compile:
@$(call targetinfo)
-   @$(call world/execute, HOST_MESON, $(SYSTEMPYTHON3) setup.py build)
+   @$(call world/execute, HOST_MESON, python3.7 setup.py build)
@$(call touch)
 
 # 
@@ -54,7 +54,7 @@ HOST_MESON_INSTALL_OPT:= \
 $(STATEDIR)/host-meson.install:
@$(call targetinfo)
@$(call world/execute, HOST_MESON, \
-   $(SYSTEMPYTHON3) setup.py $(HOST_MESON_INSTALL_OPT))
+   python3.7 setup.py $(HOST_MESON_INSTALL_OPT))
@mkdir -vp $(HOST_MESON_PKGDIR)/bin
@ln -svf ../lib/meson/meson $(HOST_MESON_PKGDIR)/bin/meson
@$(call touch)
-- 
2.21.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH 2/2] u-boot: Allow generation of boot script

2019-04-11 Thread Denis OSTERLAND
Hi Alexander,

we have one use-case were we generate the environment binary from
compiled in environment.
We have never polished it for pxtdist upstream.
https://www.mail-archive.com/ptxdist@pengutronix.de/msg13604.html
We have polished it for buildroot, but that never got merged.
http://lists.busybox.net/pipermail/buildroot/2019-January/240632.html

Am Donnerstag, den 11.04.2019, 13:09 +0200 schrieb Alexander Dahl:
> From: Ahmad Fatoum 
> 
> U-Boot can be configured via the environment to look for a boot script
> in the rootfs. The boot script can then be used to customize the booting
> process further.
> 
> Cc: Denis OSTERLAND 
> Co-authored-by: Alexander Dahl 
> Signed-off-by: Ahmad Fatoum 
> Signed-off-by: Alexander Dahl 
> ---
> 
> Notes:
> Changes from the original patch by Ahmad:
> 
> * Added compile stage from patch adding precompiled U-Boot env, but
>   changed compile command to '@$(call world/compile, )' as
>   suggested by Denis OSTERLAND. (That patch was not merged upstream.)
> * Changed default script filename to 'boot.scr.uimg', because this is
>   one of the defaults in 'config_distro_bootcmd.h' in U-Boot. (Took me
>   only half a day to find why the script was not found here.)
> 
>  platforms/u-boot.in | 18 ++
>  rules/u-boot.make   | 32 
>  2 files changed, 50 insertions(+)
> 
> diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> index 5d04a3cbd..8af0c8271 100644
> --- a/platforms/u-boot.in
> +++ b/platforms/u-boot.in
> @@ -71,6 +71,24 @@ config U_BOOT_CONFIG
>  
>  endif
>  
> +config U_BOOT_BOOT_SCRIPT
> + prompt "Compile U-Boot boot script"
> + bool
> + help
> +   Use U-Boot's mkimage to compile a U-Boot boot script and install it
> +   into the rootfs
> +
> +if U_BOOT_BOOT_SCRIPT
> +
> +config U_BOOT_BOOT_SCRIPT_ROOTFS_PATH
> + string
> + default "/boot/boot.scr.uimg"
> + prompt "Installation path"
> + help
> +   Target rootfs path where the U-Boot script should be located
> +
> +endif
> +
>  comment "target install"
>  
>  config U_BOOT_INSTALL_SREC
> diff --git a/rules/u-boot.make b/rules/u-boot.make
> index 55d18b97d..277216af9 100644
> --- a/rules/u-boot.make
> +++ b/rules/u-boot.make
> @@ -2,6 +2,7 @@
>  #
>  # Copyright (C) 2007 by Sascha Hauer
>  #   2009, 2010 by Marc Kleine-Budde 
> +#   2018 by Ahmad Fatoum 
>  #
>  # See CREDITS for details about who has contributed to this project.
>  #
> @@ -34,6 +35,10 @@ endif
>  # Prepare
>  # 
> 
>  
> +U_BOOT_BOOT_SCRIPT_TXT := $(call ptx/in-platformconfigdir, uboot.scr)
I think it is a little bit confusing, that text file has scr file ending,
as well as resulting binary file.

Regards Denis
> +U_BOOT_BOOT_SCRIPT_BIN := $(call remove_quotes, \
> + $(PTXCONF_U_BOOT_BOOT_SCRIPT_ROOTFS_PATH))
> +
>  U_BOOT_WRAPPER_BLACKLIST := \
>   TARGET_HARDEN_STACKCLASH \
>   TARGET_HARDEN_RELRO \
> @@ -82,6 +87,20 @@ $(STATEDIR)/u-boot.prepare:
>  endif
>  
>  # 
> 
> +# Compile
> +# 
> 
> +
> +$(STATEDIR)/u-boot.compile:
> + @$(call targetinfo)
> + @$(call world/compile, U_BOOT)
> +ifdef PTXCONF_U_BOOT_BOOT_SCRIPT
> + @$(U_BOOT_DIR)/tools/mkimage -T script -C none \
> + -d $(U_BOOT_BOOT_SCRIPT_TXT) \
> + $(U_BOOT_DIR)/uboot.scr
> +endif
> + @$(call touch)
> +
> +# 
> 
>  # Install
>  # 
> 
>  
> @@ -122,6 +141,19 @@ ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL
>   @install -v -D -m644 $(U_BOOT_DIR)/u-boot-with-spl-pbl.bin \
>   $(IMAGEDIR)/u-boot-with-spl-pbl.bin
>  endif
> +
> +ifdef PTXCONF_U_BOOT_BOOT_SCRIPT
> + @$(call install_init, u-boot)
> + @$(call install_fixup, u-boot, PRIORITY, optional)
> + @$(call install_fixup, u-boot, SECTION, base)
> + @$(call install_fixup, u-boot, AUTHOR, "Ahmad Fatoum 
> ")
> + @$(call install_fixup, u-boot, DESCRIPTION, "U-Boot boot script")
> +
> + @$(call install_copy, u-boot, 0, 0, 0644, \
> + $(U_BOOT_DIR)/uboot.scr, $(U_BOOT_BOOT_SCRIPT_BIN))
> +
> + @$(call install_finish, u-boot)
> +endif
>   @$(call touch)
>  
>  # 
> ---

Re: [ptxdist] Question to BUILDTIME

2019-06-28 Thread Denis OSTERLAND
Hi,

Am Freitag, den 28.06.2019, 09:12 +0200 schrieb Michael Olbrich:
> Hi,
> 
> On Thu, Jun 27, 2019 at 01:25:50PM +0000, Denis OSTERLAND wrote:
> > 
> > select  if BUILDTIME
> > 
> > works only if  has no prompt, correct?
> No, 'if BUILDTIME' can be used with any package. It just means, that The
> packages will be ordered accordingly at build-time but no dependency will
> be added to the resulting .ipk File.
This was how I understand it two.
The last time I used this feature is to long ago, to be sure ;-)
With recent release (ptxdist-2019.06.0) the package gets installed until I 
remove prompt line.

I try to pin my problem down.
Where is the post processing which removes the dependencies with BUILDTIME?
I mean, in 'scripts/lib/ptxd_lib_dgen.sh' there is 'PTXDIST_DEP_TARGET="run" 
ptxd_kconfig_dep_all "${config[@]}"',
but the automatically selected package will stick if it has a prompt.

Regards Denis

> 
> 
> Michael
> 

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v4 3/3] gpsd: version bump 2.39 -> 3.18.1

2019-04-17 Thread Denis OSTERLAND
Hi Alex,

the state is that we do not use python bindings and I failed to do it in my 
spare time.
The version bump of gpsd was part of a research in a case were we had problems 
with GPS,
but it turns out that the problem was some where else and we decided to stick 
with the old version.
If you use python on the target, I guess you will see the problems Michael 
reported
and without python it should work.

Now to your problem.
HOST_PYTHON_SCONS selects HOST_SYSTEM_PYTHON to build.
It is selected by ALLYES, so it seems to build on pengus all yes build.

It seems that something changed here.
On my disk with the version from January, there is no link unter 
sysroot-host/bin, too.
Please ensure that
https://git.pengutronix.de/cgit/ptxdist/commit/?id=d7d7ca50cdc0e786bc84929231c2ff0ddde1e5fa
is applied, which allows to build python packages with system-python.

Regards Denis

Am Mittwoch, den 17.04.2019, 12:38 +0200 schrieb Alexander Dahl:
> Hello Denis,
> 
> could you please give an update on the state of this patch? We are currently 
> experimenting with gpsd and could help you testing.
> 
> One thing I noticed, when just adding 'select HOST_PYTHON_SCONS' to an 
> otherwise clean package, it seems some dependency to host python is not set:
> 
> This is from a ptxdist 2018.09.0 based BSP, where I just copied rules/host-
> python-scons.{in,make} to:
> 
> -
> target: host-python-scons.compile
> -
> 
> environment: line 2: /home/adahl/Work/bsp/***/platform-v7a/sysroot-host/bin/
> python2.7: No such file or directory
> /usr/local/lib/ptxdist-2018.09.0/rules/post/ptxd_make_world_compile.make:21: 
> recipe for target '/home/adahl/Work/bsp/***/platform-v7a/state/host-python-
> scons.compile' failed
> 
> Greets
> Alex
> 
> Am Dienstag, 5. Februar 2019, 09:46:37 CEST schrieb Denis OSTERLAND:
> > 
> > Hi Michael,
> > 
> > thanks for your input.
> > 
> > Am Dienstag, den 05.02.2019, 10:07 +0100 schrieb Michael Olbrich:
> > 
> > > 
> > > On Mon, Jan 21, 2019 at 12:01:21PM +, Denis OSTERLAND wrote:
> > > 
> > > > 
> > > > 
> > > > 
> > > > +
> > > >  GPSD_ENV = \
> > > >     $(CROSS_ENV) \
> > > >     PYTHON=$(CROSS_PYTHON)
> > > You need to add PATH=$(CROSS_PATH) to the env. Otherwise pkg-config does
> > > not work correctly.
> > okay. I was pretty sure that the defines for pkg-config were part of
> > CROSS_ENV.
>  
> > 
> > 
> > > 
> > > 
> > > Also, the python here is not picked up correctly. You need to set
> > > target_python and python_libdir below to properly install the python
> > > files.
> > I will try it.
> > 
> > 
> > > 
> > > 
> > > And targetinstall fails because /usr/bin/gpsflash is not found. I think
> > > this war removed upstream.
> > So let´s remove it, too. ;-)
> > 
> > 
> > > 
> > > 
> > > Michael
> > 
> > Regards Denis
> > 
> > 
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> > 
> > ___
>  
> > 
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail
> > enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede
> > unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung
> > und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents
> > of the above mentioned e-mail is not legally binding. This e-mail contains
> > confidential and/or legally protected information. Please inform us if you
> > have received this e-mail by mistake and delete it in such a case. Each
> > unauthorized reproduction, disclosure, alteration, distribution and/or
> > publication of this e-mail is strictly prohibited.
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und

[ptxdist] Question to BUILDTIME

2019-06-27 Thread Denis OSTERLAND
Hi,

select  if BUILDTIME

works only if  has no prompt, correct?

Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH 1/2] host-python-scons: Fix host-python-scons package installation

2019-08-15 Thread Denis OSTERLAND
Hi,

is 
https://git.pengutronix.de/cgit/ptxdist/commit/?id=e59457c6d8ff080aca07352e7adb3ff73d976ae6
not working anymore?

Regards Denis

Am Donnerstag, den 15.08.2019, 14:56 +0200 schrieb Sascha Hauer:
> From: Andreas Schickedanz 
> 
> Without overwriting the paths the files will be installed in
> sysroot-host/local/bin,lib,man
> 
> Signed-off-by: Sascha Hauer 
> ---
>  rules/host-python-scons.make | 5 +
>  1 file changed, 5 insertions(+)
> 
> diff --git a/rules/host-python-scons.make b/rules/host-python-scons.make
> index efca45148..9c78e53fc 100644
> --- a/rules/host-python-scons.make
> +++ b/rules/host-python-scons.make
> @@ -29,5 +29,10 @@ HOST_PYTHON_SCONS_LICENSE_FILES:= 
> file://LICENSE.txt;md5=46ddf66004e5be5566367c
>  # 
> 
>  
>  HOST_PYTHON_SCONS_CONF_TOOL  := python
> +HOST_PYTHON_SCONS_INSTALL_OPT  := install \
> + --install-scripts=/bin \
> + --install-lib=/lib/scons-$(HOST_PYTHON_SCONS_VERSION) \
> + --install-platlib=/lib/scons-$(HOST_PYTHON_SCONS_VERSION) \
> + --install-purelib=/lib/scons-$(HOST_PYTHON_SCONS_VERSION)
>  
>  # vim: syntax=make


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH 2/2] gpsd: Version bump to 3.17

2019-08-16 Thread Denis OSTERLAND
Hi,


Am Donnerstag, den 15.08.2019, 14:56 +0200 schrieb Sascha Hauer:
> From: Fabian Godehardt 
> 
> This updates gpsd from 2.39 to 3.17. The build system has changed from
> autotools to scons in the meantime, so there are quite some changes
> necessary.
> 
> Signed-off-by: Fabian Godehardt 
> Signed-off-by: Sascha Hauer 
> ---
>  rules/gpsd.in   |  30 
>  rules/gpsd.make | 120 
please remove old patches

>  2 files changed, 90 insertions(+), 60 deletions(-)
> 
> diff --git a/rules/gpsd.in b/rules/gpsd.in
> index ff270cff5..7a86967c4 100644
> --- a/rules/gpsd.in
> +++ b/rules/gpsd.in
> @@ -1,13 +1,14 @@
>  ## SECTION=system_libraries
>  menuconfig GPSD
>   tristate
> + select HOST_PYTHON_SCONS
>   select LIBC_M
>   select LIBC_NSL
>   select LIBC_PTHREAD
>   select GCCLIBS_CXX
>   select GCCLIBS_GCC_S
> - select NCURSES  if GPSD_CGPS
> - select NCURSES  if GPSD_GPSMON
> + select NCURSES  if GPSD_NCURSES
> + select LIBUSB   if GPSD_USB
>   select DBUS_GLIBif GPSD_DBUS
>   select PYTHON   if GPSD_PYTHON
>   prompt "gpsd  "
> @@ -21,6 +22,19 @@ menuconfig GPSD
>  
>  if GPSD
>  
> +config GPSD_NCURSES
> + bool
> + prompt "Enable tools using ncurses"
> + help
> +   Some tools use ncurses as interface. Enable this to get
> +   able to build them.
> +
> +config GPSD_USB
> + bool
> + prompt "Enable USB support"
> + help
> +   Enable this to ineract with devices using USB interface.
> +
>  config GPSD_PYTHON
>   bool
>   prompt "python bindings"
> @@ -68,6 +82,10 @@ config GPSD_MAX_DEVICES
>  
>  menu "drivers"
>  
> + config GPSD_DRIVER_BLUEZ
> + bool
> + prompt "bluez"
> +
>   config GPSD_DRIVER_NMEA
>   bool
>   prompt "nmea"
> @@ -208,14 +226,6 @@ menu "install options"
> received sentences to stdout. This makes the program
> useful as a pipe from gpsd to another program or file.
>  
> - config GPSD_GPSFLASH
> - bool
> - prompt "gpsflash"
> - help
> -   This program is a firmware loader for GPS receivers
> -   connected via serial or USB port. Presently it supports
> -   only SiRF GPSes.
> -
>   config GPSD_GPXLOGGER
>   bool
>   prompt "gpxlogger"
> diff --git a/rules/gpsd.make b/rules/gpsd.make
> index cec308af9..bd664c4dd 100644
> --- a/rules/gpsd.make
> +++ b/rules/gpsd.make
> @@ -2,6 +2,9 @@
>  #
>  # Copyright (C) 2008 by J.Kilb
>  #   2009 by Marc Kleine-Budde 
> +#   2019 by Fabian Godehardt 
> +#
> +# 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.
> @@ -15,11 +18,11 @@ PACKAGES-$(PTXCONF_GPSD) += gpsd
>  #
>  # Paths and names
>  #
> -GPSD_VERSION := 2.39
> -GPSD_MD5 := 3db437196a6840c252fca99b6c19d4d0
> +GPSD_VERSION := 3.17
> +GPSD_MD5 := e0cfadcf4a65dfbdd2afb11c58f4e4a1
>  GPSD := gpsd-$(GPSD_VERSION)
>  GPSD_SUFFIX  := tar.gz
> -GPSD_URL := $(call ptx/mirror, SF, gpsd.berlios/$(GPSD).$(GPSD_SUFFIX))
> +GPSD_URL := 
> http://download-mirror.savannah.gnu.org/releases/gpsd/$(GPSD).$(GPSD_SUFFIX)
>  GPSD_SOURCE  := $(SRCDIR)/$(GPSD).$(GPSD_SUFFIX)
>  GPSD_DIR := $(BUILDDIR)/$(GPSD)
>  
> @@ -27,58 +30,78 @@ GPSD_DIR  := $(BUILDDIR)/$(GPSD)
>  # Prepare
>  # 
> 
>  
> -GPSD_ENV = \
> - $(CROSS_ENV) \
> - PYTHON=$(CROSS_PYTHON)
> +GPSD_CONF_TOOL   := NO
>  
> -#
> -# autoconf
> -#
> -GPSD_AUTOCONF := \
> - $(CROSS_AUTOCONF_USR) \
> - --without-x \
> - --$(call ptx/endis, PTXCONF_GPSD_PYTHON)-python \
> - --$(call ptx/endis, PTXCONF_GPSD_PROFILING)-profiling \
> - --$(call ptx/endis, PTXCONF_GPSD_NTPSHM)-ntpshm \
> - --$(call ptx/endis, PTXCONF_GPSD_PPS)-pps \
> - --$(call ptx/endis, PTXCONF_GPSD_PPS_ON_CTS)-pps-on-cts \
> - --$(call ptx/endis, PTXCONF_GPSD_DBUS)-dbus \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_NMEA)-nmea \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_SIRF)-sirf \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_TSIP)-tsip \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_FV18)-fv18 \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_TRIPMATE)-tripmate \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_EARTHMATE)-earthmate \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_ITRAX)-itrax \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_ASHTECH)-ashtech \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_NAVCOM)-navcom \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_GARMIN)-garmin \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_GARMINTXT)-garmintxt \
> - --$(call 

  1   2   >