All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] dpkg: Remove workaround patches for no longer supported host distributions
Date: Thu, 30 May 2019 15:22:24 +0300	[thread overview]
Message-ID: <20190530122224.GA30644@localhost> (raw)
In-Reply-To: <20190522105847.6512-2-bunk@stusta.de>

ping

Thanks
Adrian

On Wed, May 22, 2019 at 01:58:46PM +0300, Adrian Bunk wrote:
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> ---
>  .../0005-dpkg-compiler.m4-remove-Wvla.patch   |  40 -------
>  .../dpkg/dpkg/glibc2.5-sync_file_range.patch  | 100 ------------------
>  meta/recipes-devtools/dpkg/dpkg_1.19.4.bb     |   3 +-
>  3 files changed, 1 insertion(+), 142 deletions(-)
>  delete mode 100644 meta/recipes-devtools/dpkg/dpkg/0005-dpkg-compiler.m4-remove-Wvla.patch
>  delete mode 100644 meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch
> 
> diff --git a/meta/recipes-devtools/dpkg/dpkg/0005-dpkg-compiler.m4-remove-Wvla.patch b/meta/recipes-devtools/dpkg/dpkg/0005-dpkg-compiler.m4-remove-Wvla.patch
> deleted file mode 100644
> index b368508862..0000000000
> --- a/meta/recipes-devtools/dpkg/dpkg/0005-dpkg-compiler.m4-remove-Wvla.patch
> +++ /dev/null
> @@ -1,40 +0,0 @@
> -From 0ad7bba80d5b9035089ff2b2f77a774b5b201915 Mon Sep 17 00:00:00 2001
> -From: Alexander Kanavin <alex.kanavin@gmail.com>
> -Date: Wed, 26 Aug 2015 16:28:59 +0300
> -Subject: [PATCH 5/5] dpkg-compiler.m4: remove -Wvla
> -MIME-Version: 1.0
> -Content-Type: text/plain; charset=UTF-8
> -Content-Transfer-Encoding: 8bit
> -
> -Remove the -Wvla flag from the set of compiler warning flags, since gcc
> -on old host systems such as CentOS 5.8 doesn't support it, and it
> -causes a build error for dpkg-native.
> -
> -Upstream-Status: Pending
> -
> -Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
> -Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> -Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
> -
> -Update patch context for dpkg 1.19.4.
> -
> -Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ----
> - m4/dpkg-compiler.m4 | 1 -
> - 1 file changed, 1 deletion(-)
> -
> -diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4
> -index a6192f6..4c7bf2e 100644
> ---- a/m4/dpkg-compiler.m4
> -+++ b/m4/dpkg-compiler.m4
> -@@ -67,7 +67,6 @@ AC_DEFUN([DPKG_CHECK_COMPILER_WARNINGS], [
> -   DPKG_CHECK_COMPILER_FLAG([-Wshift-negative-value])
> -   DPKG_CHECK_COMPILER_FLAG([-Wsizeof-array-argument])
> -   DPKG_CHECK_COMPILER_FLAG([-Wswitch-bool])
> --  DPKG_CHECK_COMPILER_FLAG([-Wvla])
> -   DPKG_CHECK_COMPILER_FLAG([-Wwrite-strings])
> - 
> -   AC_LANG_CASE(
> --- 
> -2.1.4
> -
> diff --git a/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch b/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch
> deleted file mode 100644
> index 5debcc5209..0000000000
> --- a/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch
> +++ /dev/null
> @@ -1,100 +0,0 @@
> -From 9d260d408f9e17abd1d1dccd685bd7e80a3655a9 Mon Sep 17 00:00:00 2001
> -From: Donn Seeley <donn.seeley@windriver.com>
> -Date: Tue, 25 Feb 2014 17:44:04 +0800
> -Subject: [PATCH] dpkg: fix a link problem for dpkg-native on CentOS 5.8
> -
> -CentOS 5.8 kernels and headers support the sync_file_range() system call,
> -but glibc 2.5 doesn't provide the syscall stub.  It appears that this
> -problem is known but will never be fixed:
> -
> -  https://bugzilla.redhat.com/show_bug.cgi?id=518581
> -
> -  Bug 518581 - [RHEL5] glibc misses sync_file_range syscall interface
> -
> -  Status:       CLOSED CANTFIX
> -  Last Closed:  2009-11-22 22:19:55
> -
> -  Kirby Zhou 2009-08-20 23:37:55 EDT
> -
> -  Description of problem:
> -
> -  glibc misses sync_file_range syscall interface.  The header file and
> -  man page both say 'sync_file_range' should exist.  From man page,
> -  sync_file_range should exist sinc kernel-2.6.17
> -
> -  Andreas Schwab 2009-08-21 03:24:24 EDT
> -
> -  It has only been added to glibc 2.6, and cannot be backported due to
> -  ABI breakage.  You can always fall back to syscall(3).
> -
> -  Ulrich Drepper 2009-11-22 22:19:55 EST
> -
> -  As comment #1 says, no chance to backport this.
> -
> -  See the syscall man page for instructions.
> -
> -  Jon E 2010-03-19 10:32:37 EDT
> -
> -  then why document it if it's broken and you're not going to fix it?
> -  .. might want to FTFM over at sync_file_range(2) - in the meantime -
> -  borrowing from glibc 2.6 .. any thoughts on this implementation for a
> -  hacky workaround for those still on your "ancient releases" .. (eg:
> -  RHEL5.3)?:
> -
> -  #ifdef ULI_WONT_FIX_THIS_IN_GLIBC2.5
> -  #define NR_sync_file_range 277
> -  int sync_file_range (int fd, __off64_t from, __off64_t to, unsigned int flags)
> -  {
> -    return syscall (NR_sync_file_range, fd,
> -                           __LONG_LONG_PAIR ((long) (from >> 32), (long) from),
> -                           __LONG_LONG_PAIR ((long) (to >> 32), (long) to),
> -                           flags);
> -  }
> -  #endif
> -
> -  assuming of course that you're on an x86_64 and include/asm-
> -  x86_64/unistd.h has the correct entry
> -
> -  (fwiw - fio is starting to use this now)
> -
> -Rather than attempting to provide an implementation using syscall(),
> -we take the more conservative route and ignore header support for
> -sync_file_range() flags when the glibc version is <= 2.5.
> -
> -Upstream-Status: Inappropriate [everyone else builds on newer hosts :-)]
> -
> -Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
> -Signed-off-by: Lei Liu <lei.liu2@windriver.com>
> -
> -Update patch context for dpkg 1.19.4.
> -
> -Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ----
> - src/archives.c | 4 ++--
> - 1 file changed, 2 insertions(+), 2 deletions(-)
> -
> -diff --git a/src/archives.c b/src/archives.c
> -index 8476a5c..b05a63f 100644
> ---- a/src/archives.c
> -+++ b/src/archives.c
> -@@ -68,7 +68,7 @@ fd_writeback_init(int fd)
> -   /* Ignore the return code as it should be considered equivalent to an
> -    * asynchronous hint for the kernel, we are doing an fsync() later on
> -    * anyway. */
> --#if defined(SYNC_FILE_RANGE_WRITE)
> -+#if defined(SYNC_FILE_RANGE_WRITE) && __GLIBC_PREREQ(2, 6)
> -   sync_file_range(fd, 0, 0, SYNC_FILE_RANGE_WRITE);
> - #elif defined(HAVE_POSIX_FADVISE)
> -   posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED);
> -@@ -1093,7 +1093,7 @@ tarobject(struct tar_archive *tar, struct tar_entry *ti)
> -   return 0;
> - }
> - 
> --#if defined(SYNC_FILE_RANGE_WAIT_BEFORE)
> -+#if defined(SYNC_FILE_RANGE_WAIT_BEFORE) && __GLIBC_PREREQ(2, 6)
> - static void
> - tar_writeback_barrier(struct fsys_namenode_list *files, struct pkginfo *pkg)
> - {
> --- 
> -2.16.2
> -
> diff --git a/meta/recipes-devtools/dpkg/dpkg_1.19.4.bb b/meta/recipes-devtools/dpkg/dpkg_1.19.4.bb
> index c3dbda77a4..77fbfb5c91 100644
> --- a/meta/recipes-devtools/dpkg/dpkg_1.19.4.bb
> +++ b/meta/recipes-devtools/dpkg/dpkg_1.19.4.bb
> @@ -9,12 +9,11 @@ SRC_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/${BPN}_${PV}.tar.xz \
>             file://0002-Adapt-to-linux-wrs-kernel-version-which-has-characte.patch \
>             file://0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch \
>             file://0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch \
> -           file://0005-dpkg-compiler.m4-remove-Wvla.patch \
>             file://0006-add-musleabi-to-known-target-tripets.patch \
>             file://0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch \
>             file://0001-dpkg-Support-muslx32-build.patch \
>             "
> -SRC_URI_append_class-native = " file://glibc2.5-sync_file_range.patch \
> +SRC_URI_append_class-native = " \
>                                  file://tweak-options-require-tar-1.27.patch \
>  "
>  
> -- 
> 2.17.1
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



      reply	other threads:[~2019-05-30 12:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22 10:58 [PATCH] dpkg: Remove workaround patches for no longer supported host distributions Adrian Bunk
2019-05-30 12:22 ` Adrian Bunk [this message]

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=20190530122224.GA30644@localhost \
    --to=bunk@stusta.de \
    --cc=openembedded-core@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.