From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 85286138334 for ; Thu, 21 Mar 2019 23:51:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A47FAE07D3; Thu, 21 Mar 2019 23:51:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6E421E0875 for ; Thu, 21 Mar 2019 23:51:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 13085335C31 for ; Thu, 21 Mar 2019 23:51:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 98A21571 for ; Thu, 21 Mar 2019 23:51:17 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1553201446.d29d35d22c47eed852d95cd7ea5b313d1c51929d.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: patches/dmraid/1.0.0.rc16-3/, /, patches/dmraid/ X-VCS-Repository: proj/genkernel X-VCS-Files: gen_compile.sh patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0.rc16-3-staticlink.patch patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-parallel-make.patch patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-return-all-sets.patch patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-static-build-fixes.patch patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-undo-p-rename.patch patches/dmraid/dmraid-1.0.0.rc16-3-staticlink.patch patches/dmraid/dmraid-1.0.0_rc16-as-needed2.patch patches/dmraid/dmraid-1.0.0_rc16-return-all-sets.patch patches/dmraid/dmraid-1.0.0_rc16-static-build-fixes.patch patches/dmraid/dmraid-1.0.0_rc16-undo-p-rename.patch X-VCS-Directories: patches/dmraid/1.0.0.rc16-3/ patches/dmraid/ / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: d29d35d22c47eed852d95cd7ea5b313d1c51929d X-VCS-Branch: master Date: Thu, 21 Mar 2019 23:51:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b3e38f07-cb3c-4aa3-bf0c-2fd6b7595d9f X-Archives-Hash: 3d6d3f7ea64f615b92a82139a77681bd commit: d29d35d22c47eed852d95cd7ea5b313d1c51929d Author: Thomas Deutschmann gentoo org> AuthorDate: Thu Mar 21 20:50:46 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Thu Mar 21 20:50:46 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=d29d35d2 Fix compilation of dmraid Fixes: https://bugs.gentoo.org/642988 Fixes: https://bugs.gentoo.org/644094 Signed-off-by: Thomas Deutschmann gentoo.org> gen_compile.sh | 23 +++++++++++----------- .../dmraid-1.0.0.rc16-3-staticlink.patch | 0 .../dmraid-1.0.0_rc16-parallel-make.patch | 11 +++++++++++ .../dmraid-1.0.0_rc16-return-all-sets.patch | 0 .../dmraid-1.0.0_rc16-static-build-fixes.patch | 0 .../dmraid-1.0.0_rc16-undo-p-rename.patch | 0 patches/dmraid/dmraid-1.0.0_rc16-as-needed2.patch | 11 ----------- 7 files changed, 23 insertions(+), 22 deletions(-) diff --git a/gen_compile.sh b/gen_compile.sh index c4a6665..7c38859 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -653,8 +653,11 @@ compile_mdadm() { compile_dmraid() { compile_device_mapper - if [ ! -f "${DMRAID_BINCACHE}" ] + + if [[ -f "${DMRAID_BINCACHE}" && "${DMRAID_BINCACHE}" -nt "${LVM_BINCACHE}" ]] then + print_info 1 "$(getIndent 3)dmraid: >> Using cache" + else [ -f "${DMRAID_SRCTAR}" ] || gen_die "Could not find DMRAID source tarball: ${DMRAID_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!" cd "${TEMP}" @@ -663,21 +666,19 @@ compile_dmraid() { gen_die 'Could not extract DMRAID source tarball!' [ -d "${DMRAID_DIR}" ] || gen_die "DMRAID directory ${DMRAID_DIR} is invalid!" + rm -rf "${TEMP}/lvm" > /dev/null mkdir -p "${TEMP}/lvm" /bin/tar -xpf "${LVM_BINCACHE}" -C "${TEMP}/lvm" || gen_die "Could not extract LVM2 binary cache!"; - cd "${DMRAID_DIR}" + print_info 1 "$(getIndent 3)dmraid: >> Patching ..." + cd "${DMRAID_DIR}" || gen_die "cannot chdir into '${DMRAID_DIR}'" apply_patches dmraid ${DMRAID_VER} - print_info 1 "$(getIndent 3)dmraid: >> Configuring..." - LDFLAGS="-L${TEMP}/lvm/lib" \ - CFLAGS="-I${TEMP}/lvm/include" \ + print_info 1 "$(getIndent 3)dmraid: >> Configuring..." DEVMAPPEREVENT_CFLAGS="-I${TEMP}/lvm/include" \ - CPPFLAGS="-I${TEMP}/lvm/include" \ - LIBS="-ldevmapper -lm -lrt -lpthread" \ - LDFLAGS='-Wl,--no-as-needed' \ + LIBS="-lm -lrt -lpthread" \ ./configure --enable-static_link \ --with-devmapper-prefix="${TEMP}/lvm" \ --prefix=${TEMP}/dmraid >> ${LOGFILE} 2>&1 || @@ -689,13 +690,13 @@ compile_dmraid() { ###echo "DMRAIDLIBS += -lselinux -lsepol" >> tools/Makefile mkdir -p "${TEMP}/dmraid" print_info 1 "$(getIndent 3)dmraid: >> Compiling..." - # Force dmraid to be built with -j1 for bug #188273 - MAKEOPTS="${MAKEOPTS} -j1" compile_generic '' utils + compile_generic '' utils #compile_generic 'install' utils mkdir ${TEMP}/dmraid/sbin install -m 0755 -s tools/dmraid "${TEMP}/dmraid/sbin/dmraid" + print_info 1 "$(getIndent 3)dmraid: >> Copying to bincache..." - cd "${TEMP}/dmraid" + cd "${TEMP}/dmraid" || gen_die "cannot chdir into '${TEMP}/dmraid'" /bin/tar -cjf "${DMRAID_BINCACHE}" sbin/dmraid || gen_die 'Could not create binary cache' diff --git a/patches/dmraid/dmraid-1.0.0.rc16-3-staticlink.patch b/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0.rc16-3-staticlink.patch similarity index 100% rename from patches/dmraid/dmraid-1.0.0.rc16-3-staticlink.patch rename to patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0.rc16-3-staticlink.patch diff --git a/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-parallel-make.patch b/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-parallel-make.patch new file mode 100644 index 0000000..8c89374 --- /dev/null +++ b/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-parallel-make.patch @@ -0,0 +1,11 @@ +--- dmraid/1.0.0.rc16-3/dmraid/lib/Makefile.in.orig 2016-09-20 12:54:09.416628404 +0200 ++++ dmraid/1.0.0.rc16-3/dmraid/lib/Makefile.in 2016-09-20 12:55:06.343698229 +0200 +@@ -79,7 +79,7 @@ + -Wl,-soname,$(notdir $@).$(DMRAID_LIB_MAJOR) \ + $(DEVMAPPEREVENT_LIBS) $(DEVMAPPER_LIBS) $(DL_LIBS) $(LIBS) + +-$(LIB_EVENTS_SHARED): $(OBJECTS2) ++$(LIB_EVENTS_SHARED): $(OBJECTS2) $(LIB_SHARED) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJECTS2) \ + -shared -Wl,--discard-all -Wl,--no-undefined -Wl,-soname,$(notdir $@) \ + $(LIB_SHARED) $(DEVMAPPEREVENT_LIBS) $(DEVMAPPER_LIBS) $(PTHREAD_LIBS) $(LIBS) diff --git a/patches/dmraid/dmraid-1.0.0_rc16-return-all-sets.patch b/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-return-all-sets.patch similarity index 100% rename from patches/dmraid/dmraid-1.0.0_rc16-return-all-sets.patch rename to patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-return-all-sets.patch diff --git a/patches/dmraid/dmraid-1.0.0_rc16-static-build-fixes.patch b/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-static-build-fixes.patch similarity index 100% rename from patches/dmraid/dmraid-1.0.0_rc16-static-build-fixes.patch rename to patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-static-build-fixes.patch diff --git a/patches/dmraid/dmraid-1.0.0_rc16-undo-p-rename.patch b/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-undo-p-rename.patch similarity index 100% rename from patches/dmraid/dmraid-1.0.0_rc16-undo-p-rename.patch rename to patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-undo-p-rename.patch diff --git a/patches/dmraid/dmraid-1.0.0_rc16-as-needed2.patch b/patches/dmraid/dmraid-1.0.0_rc16-as-needed2.patch deleted file mode 100644 index cf30188..0000000 --- a/patches/dmraid/dmraid-1.0.0_rc16-as-needed2.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 1.0.0.rc16/make.tmpl.in 2010-08-16 10:22:32.000000000 -0400 -+++ 1.0.0.rc16/make.tmpl.in 2010-08-16 10:42:49.000000000 -0400 -@@ -136,7 +136,7 @@ - - %.so: $(OBJECTS) - $(CC) -shared -Wl,-soname,$(notdir $@).$(DMRAID_LIB_VERSION) \ -- -Wl,--version-script,.export.sym $(OBJECTS) -o $@ -ldevmapper-event -+ $(LDFLAGS) -Wl,--version-script,.export.sym $(OBJECTS) -o $@ -ldevmapper-event -ldl - - $(LIB_STATIC): $(OBJECTS) - $(RM) $@