mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Christian Melki <christian.melki@t2data.com>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [WIP: PATCH] pps-tools: Version bump. 1.0.2 -> 1.0.3
Date: Fri, 28 Jan 2022 11:36:11 +0100	[thread overview]
Message-ID: <20220128103611.GX11273@pengutronix.de> (raw)
In-Reply-To: <e6d2de69-4f6d-aace-5ce5-0e6422535cc1@t2data.com>

Hi

On Fri, Jan 28, 2022 at 10:39:25AM +0100, Christian Melki wrote:
> The question revolves around the authors use of the SYSROOT variable.
> Ptxdist declares it and this is taken up as a --sysroot variable to the
> toolchain, offsetting all headers etc to the ptxdist sysroot.
> Which means standard headers etc are lost.
> 
> So the question is really. Is SYSROOT a reserved variable?
> I can't really make that out. Or is the authors assumption that SYSROOT
> means what it means wrong?

I don't think SYSROOT has a defined meaning. Some packages use it to look
for stuff relative to this directory. But even that is inconsistent.

And in PTXdist the whole thing is more complex: There is the sysroot in the
toolchain. The toolchain headers and libraries are found there. And there
is the sysroot in the BSP.

So if an upstream Makefile uses SYSROOT in some way, then we just need to
deal with it.

Michael

> On 1/28/22 10:26 AM, Michael Olbrich wrote:
> > 
> > What's WIP here.
> > 
> > On Thu, Jan 27, 2022 at 03:35:29PM +0100, Christian Melki wrote:
> > > Update pps-tools. Very minor bugfix release.
> > > Remove old patch as that one got fixed upstream.
> > > Add a patch to remove inclusion of SYSROOT.
> > > 
> > > Signed-off-by: Christian Melki <christian.melki@t2data.com>
> > > ---
> > >   ...le-fix-installation-to-empty-DESTDIR.patch | 40 -------------------
> > >   patches/pps-tools-1.0.2/series                |  4 --
> > >   .../0001-Makefile-fix-remove-SYSROOT.patch    | 14 +++++++
> > >   patches/pps-tools-1.0.3/series                |  1 +
> > >   rules/pps-tools.make                          |  4 +-
> > >   5 files changed, 17 insertions(+), 46 deletions(-)
> > >   delete mode 100644 patches/pps-tools-1.0.2/0001-Makefile-fix-installation-to-empty-DESTDIR.patch
> > >   delete mode 100644 patches/pps-tools-1.0.2/series
> > >   create mode 100644 patches/pps-tools-1.0.3/0001-Makefile-fix-remove-SYSROOT.patch
> > >   create mode 100644 patches/pps-tools-1.0.3/series
> > > 
> > > diff --git a/patches/pps-tools-1.0.2/0001-Makefile-fix-installation-to-empty-DESTDIR.patch b/patches/pps-tools-1.0.2/0001-Makefile-fix-installation-to-empty-DESTDIR.patch
> > > deleted file mode 100644
> > > index 97498dc22..000000000
> > > --- a/patches/pps-tools-1.0.2/0001-Makefile-fix-installation-to-empty-DESTDIR.patch
> > > +++ /dev/null
> > > @@ -1,40 +0,0 @@
> > > -From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> > > -Date: Mon, 3 Dec 2018 13:55:02 +0100
> > > -Subject: [PATCH] Makefile: fix installation to empty DESTDIR
> > > -
> > > -When DESTDIR is empty, or at least does not contain usr/bin or
> > > -usr/include, the installation fails, because install does not create
> > > -those intermediate directories:
> > > -
> > > -$ make DESTDIR=/tmp/koin install
> > > -install -m 755 -t /tmp/koin/usr/bin ppsfind ppstest ppsctl ppswatch ppsldisc
> > > -install: failed to access '/tmp/koin/usr/bin': No such file or directory
> > > -
> > > -Using the -D option of install fixes this:
> > > -
> > > -$ make DESTDIR=/tmp/koin install
> > > -install -D -m 755 -t /tmp/koin/usr/bin ppsfind ppstest ppsctl ppswatch ppsldisc
> > > -install -D -m 644 -t /tmp/koin/usr/include/sys timepps.h
> > > -
> > > -Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> > > -Origin: upstream; https://github.com/redlab-i/pps-tools/commit/b3eae485a8c759d1ce1727076b2c287deb5f24e1
> > > -Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> > > ----
> > > - Makefile | 4 ++--
> > > - 1 file changed, 2 insertions(+), 2 deletions(-)
> > > -
> > > -diff --git a/Makefile b/Makefile
> > > -index 939466885e9f..30672f79585c 100644
> > > ---- a/Makefile
> > > -+++ b/Makefile
> > > -@@ -19,8 +19,8 @@ include .depend
> > > - endif
> > > -
> > > - install : all
> > > --	install -m 755 -t $(DESTDIR)/usr/bin ppsfind $(TARGETS)
> > > --	install -m 644 -t $(DESTDIR)/usr/include/sys timepps.h
> > > -+	install -D -m 755 -t $(DESTDIR)/usr/bin ppsfind $(TARGETS)
> > > -+	install -D -m 644 -t $(DESTDIR)/usr/include/sys timepps.h
> > > -
> > > - uninstall :
> > > - 	for f in $(TARGETS); do rm $(DESTDIR)/usr/bin/$$f; done
> > > diff --git a/patches/pps-tools-1.0.2/series b/patches/pps-tools-1.0.2/series
> > > deleted file mode 100644
> > > index 7b3c77623..000000000
> > > --- a/patches/pps-tools-1.0.2/series
> > > +++ /dev/null
> > > @@ -1,4 +0,0 @@
> > > -# generated by git-ptx-patches
> > > -#tag:base --start-number 1
> > > -0001-Makefile-fix-installation-to-empty-DESTDIR.patch
> > > -# eb24c32ce10c0f011f2d37488c8de58c  - git-ptx-patches magic
> > > diff --git a/patches/pps-tools-1.0.3/0001-Makefile-fix-remove-SYSROOT.patch b/patches/pps-tools-1.0.3/0001-Makefile-fix-remove-SYSROOT.patch
> > 
> > Path header if you keep the patch.
> > 
> > > new file mode 100644
> > > index 000000000..7b160ef9a
> > > --- /dev/null
> > > +++ b/patches/pps-tools-1.0.3/0001-Makefile-fix-remove-SYSROOT.patch
> > > @@ -0,0 +1,14 @@
> > > +diff -urN pps-tools-1.0.3.orig/Makefile pps-tools-1.0.3/Makefile
> > > +--- pps-tools-1.0.3.orig/Makefile	2022-01-27 11:20:18.590907158 +0100
> > > ++++ pps-tools-1.0.3/Makefile	2022-01-27 11:20:35.771295930 +0100
> > > +@@ -3,10 +3,6 @@
> > > + CFLAGS += -Wall -O2 -D_GNU_SOURCE
> > > + CFLAGS += -ggdb
> > > + CFLAGS += -fPIC
> > > +-ifdef SYSROOT
> > > +-CFLAGS += --sysroot $(SYSROOT)
> > > +-endif
> > > +-
> > 
> > I think adding 'SYSROOT=' to PPS_TOOLS_MAKE_ENV should work instead of
> > this.
> > 
> > Michael
> > 
> > > + LDLIBS += -lm
> > > +
> > > + # -- Actions section --
> > > diff --git a/patches/pps-tools-1.0.3/series b/patches/pps-tools-1.0.3/series
> > > new file mode 100644
> > > index 000000000..23495d2ef
> > > --- /dev/null
> > > +++ b/patches/pps-tools-1.0.3/series
> > > @@ -0,0 +1 @@
> > > +0001-Makefile-fix-remove-SYSROOT.patch
> > > diff --git a/rules/pps-tools.make b/rules/pps-tools.make
> > > index 65a06c7d1..789659154 100644
> > > --- a/rules/pps-tools.make
> > > +++ b/rules/pps-tools.make
> > > @@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_PPS_TOOLS) += pps-tools
> > >   #
> > >   # Paths and names
> > >   #
> > > -PPS_TOOLS_VERSION	:= 1.0.2
> > > -PPS_TOOLS_MD5		:= 6eddfeb151cffe8751f4766e428b8eb7
> > > +PPS_TOOLS_VERSION	:= 1.0.3
> > > +PPS_TOOLS_MD5		:= 9b18c55efe020d02c26cd8c759ac258d
> > >   PPS_TOOLS		:= pps-tools-$(PPS_TOOLS_VERSION)
> > >   PPS_TOOLS_SUFFIX	:= tar.gz
> > >   PPS_TOOLS_URL		:= https://github.com/redlab-i/pps-tools/archive/v$(PPS_TOOLS_VERSION).$(PPS_TOOLS_SUFFIX)
> > > -- 
> > > 2.30.2
> > > 
> > > 
> > > _______________________________________________
> > > ptxdist mailing list
> > > ptxdist@pengutronix.de
> > > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> > > 
> > 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


  reply	other threads:[~2022-01-28 10:36 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27 14:35 [ptxdist] [PATCH] wpa_supplicant: Version bump 2.9 -> 2.10 Christian Melki
2022-01-27 14:35 ` [ptxdist] [PATCH] efivar: Version bump 37 -> 38 Christian Melki
2022-01-28 10:17   ` Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] sysklogd: Version bump. 2.2.3 -> 2.3.0 Christian Melki
2022-01-30 15:49   ` [ptxdist] [APPLIED] " Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] dump1090fa: Version bump 6.1 -> 7.1 Christian Melki
2022-01-27 15:56   ` Bruno Thomsen
2022-01-27 16:31     ` Christian Melki
2022-01-28  9:37       ` Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] chrony: Version bump. 4.1 -> 4.2 Christian Melki
2022-01-30 15:49   ` [ptxdist] [APPLIED] " Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] strace: Version bump. 5.15 -> 5.16 Christian Melki
2022-01-28  9:19   ` Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] alsa-lib: Version bump 1.2.5.1 -> 1.2.6.1 Christian Melki
2022-01-30 15:49   ` [ptxdist] [APPLIED] " Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] alsa-utils: Version bump 1.2.5.1 -> 1.2.6 Christian Melki
2022-01-30 15:49   ` [ptxdist] [APPLIED] " Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] libsndfile: Version bump 1.0.25 -> 1.0.31 Christian Melki
2022-01-28 12:46   ` Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [WIP: PATCH] pps-tools: Version bump. 1.0.2 -> 1.0.3 Christian Melki
2022-01-28  9:26   ` Michael Olbrich
2022-01-28  9:39     ` Christian Melki
2022-01-28 10:36       ` Michael Olbrich [this message]
2022-01-27 14:35 ` [ptxdist] [PATCH] tpm2-tss: Version bump. 2.3.1 -> 3.1.0 Christian Melki
2022-01-28 16:16   ` Michael Olbrich
2022-01-28 17:22     ` Christian Melki
2022-01-28 18:32       ` Michael Olbrich
2022-01-29  8:29         ` Christian Melki
2022-01-29 15:36           ` Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] tpm2-tools: Version bump. 4.1 -> 5.2 Christian Melki
2022-01-27 15:54   ` Bruno Thomsen
2022-01-28  9:31     ` Michael Olbrich
2022-01-28 13:33       ` Christian Melki
2022-01-28 14:56         ` Michael Olbrich
2022-01-27 14:35 ` [ptxdist] [PATCH] ncurses: Version bump. 6.2 -> 6.3 Christian Melki
2022-01-30 15:49   ` [ptxdist] [APPLIED] " Michael Olbrich
2022-01-30 15:49 ` [ptxdist] [APPLIED] wpa_supplicant: Version bump 2.9 -> 2.10 Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220128103611.GX11273@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=christian.melki@t2data.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox