Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] gcc6: remove python 2 scripts, move to bootstrap
Date: Sat, 14 Oct 2023 07:42:00 +0200	[thread overview]
Message-ID: <20231014054200.pTX19LqM4iYxGd9iXtHZiVTA_-EbJeJBfY0r14VWb18@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46484@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages gcc6
https://github.com/void-linux/void-packages/pull/46484

gcc6: remove python 2 scripts, move to bootstrap
#### Testing the changes
- I tested the changes in this PR: **YES** (built revdeps)

this will require removing `*gcc6*` from the main repos after merge

A patch file from https://github.com/void-linux/void-packages/pull/46484.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc6-46484.patch --]
[-- Type: text/x-diff, Size: 2978 bytes --]

From 49c4e864ff36b15106b9e7932f74dea788c61dc1 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Fri, 6 Oct 2023 10:31:59 -0400
Subject: [PATCH 1/2] gcc6: remove python2 scripts, move to bootstrap

---
 srcpkgs/gcc6/template | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc6/template b/srcpkgs/gcc6/template
index d8134b25b21ed..5811f522e5d94 100644
--- a/srcpkgs/gcc6/template
+++ b/srcpkgs/gcc6/template
@@ -3,7 +3,7 @@
 _isl_version=0.16
 pkgname=gcc6
 version=6.5.0
-revision=1
+revision=2
 _majorver="${version%%.*}"
 _minorver="${version%.*}"
 create_wrksrc=yes
@@ -26,7 +26,7 @@ skip_extraction="ecj-4.9.jar"
 nopie=yes
 lib32disabled=yes
 nocross=yes
-python_version=2 #unverified
+repository=bootstrap
 
 subpackages="gcc6-gcj gcc6-gcj-ecj libgcj-devel libgcj gcc6-gcj-jdk-compat"
 
@@ -206,6 +206,9 @@ do_install() {
 
 	# Remove python stuff
 	rm -rf ${DESTDIR}/usr/share/gcc-${version}/python
+	rm -f ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}/*.py
+	rm -f ${DESTDIR}/usr/bin/aot-compile-6
+	rm -f ${DESTDIR}/usr/share/man/man1/aot-compile-6.1
 
 	# Avoid conflict with gcc
 	mv ${DESTDIR}/usr/lib/libcc1* ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}
@@ -251,13 +254,13 @@ gcc6-gcj_package() {
 		for f in gcj jv-convert gjarsigner gjar grmic jcf-dump \
 			gtnameserv gcjh gnative2ascii gserialver gkeytool \
 			gij grmiregistry grmid gorbd gcj-dbtool gjavah \
-			gc-analyze gappletviewer rebuild-gcj-db aot-compile; do
+			gc-analyze gappletviewer rebuild-gcj-db; do
 			vmove usr/bin/${f}-${_majorver}
 		done
 		for f in gcj jv-convert gjarsigner gjar grmic jcf-dump gjdoc \
 			gtnameserv gcjh gnative2ascii gserialver gkeytool \
 			gij grmiregistry grmid gorbd gcj-dbtool gjavah \
-			gc-analyze gappletviewer rebuild-gcj-db aot-compile; do
+			gc-analyze gappletviewer rebuild-gcj-db; do
 			if [ -f ${DESTDIR}/usr/share/man/man1/${f}-${_majorver}.1 ]; then
 				vmove usr/share/man/man1/${f}-${_majorver}.1
 			fi

From 71db8b105da6062ac33bb90a52876a8f9ef26c4a Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Fri, 6 Oct 2023 10:40:11 -0400
Subject: [PATCH 2/2] pdftk: fix build

---
 srcpkgs/pdftk/template | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/pdftk/template b/srcpkgs/pdftk/template
index f86efeae10e09..56af9ba6965f5 100644
--- a/srcpkgs/pdftk/template
+++ b/srcpkgs/pdftk/template
@@ -14,9 +14,11 @@ checksum=118f6a25fd3acaafb58824dce6f97cdc07e56050e666b90e4c4ef426ea37b8c1
 nocross=yes
 
 do_build() {
+	_cxxflags="${CXXFLAGS//-fstack-clash-protection}"
+	_cxxflags="${_cxxflags//-ffile-prefix-map=\/builddir\/${pkgname}-${version}\/${build_wrksrc}=.}"
 	sed -e "s;@CXX@;g++-6;" \
 		-e "s;@AR@;$AR;" \
-		-e "s;@CXXFLAGS@;${CXXFLAGS//-fstack-clash-protection};" \
+		-e "s;@CXXFLAGS@;${_cxxflags};" \
 		-e "s;@LDFLAGS@;$LDFLAGS;" \
 		${FILESDIR}/Makefile > Makefile
 	make ${makejobs} || make ${makjobs}

  parent reply	other threads:[~2023-10-14  5:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-06 14:48 [PR PATCH] gcc6: remove python 2 scripts classabbyamp
2023-10-09 23:34 ` [PR PATCH] [Updated] gcc6: remove python 2 scripts, move to bootstrap classabbyamp
2023-10-14  5:42 ` classabbyamp [this message]
2023-10-14  6:05 ` [PR PATCH] [Merged]: " classabbyamp

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=20231014054200.pTX19LqM4iYxGd9iXtHZiVTA_-EbJeJBfY0r14VWb18@z \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).