* [PR PATCH] avr-gdb: update to 10.1, fix target & prefix
@ 2020-12-03 7:11 Logarithmus
2020-12-03 10:23 ` [PR REVIEW] " Piraty
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Logarithmus @ 2020-12-03 7:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 337 bytes --]
There is a new pull request by Logarithmus against master on the void-packages repository
https://github.com/Logarithmus/void-packages avr-gdb
https://github.com/void-linux/void-packages/pull/26909
avr-gdb: update to 10.1, fix target & prefix
A patch file from https://github.com/void-linux/void-packages/pull/26909.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-avr-gdb-26909.patch --]
[-- Type: text/x-diff, Size: 4032 bytes --]
From 8d3c8622af11bbba57bc144f7a3db63ef9fb02df Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Thu, 3 Dec 2020 08:39:13 +0300
Subject: [PATCH] avr-gdb: update to 10.1, fix target & prefix
---
srcpkgs/avr-gdb/template | 12 +++---
srcpkgs/avr-gdb/templatef | 79 +++++++++++++++++++++++++++++++++++++++
2 files changed, 85 insertions(+), 6 deletions(-)
create mode 100644 srcpkgs/avr-gdb/templatef
diff --git a/srcpkgs/avr-gdb/template b/srcpkgs/avr-gdb/template
index f011ba62125..2635f382fce 100644
--- a/srcpkgs/avr-gdb/template
+++ b/srcpkgs/avr-gdb/template
@@ -1,13 +1,13 @@
# Template file for 'avr-gdb'
pkgname=avr-gdb
-version=9.2
+version=10.1
revision=1
-wrksrc=${pkgname#avr-}-${version}
+wrksrc=gdb-${version}
build_style=gnu-configure
pycompile_dirs="/usr/share/gdb/python"
configure_args="\
- --target=${_triplet} \
- --program-prefix=${_triplet}- \
+ --target=avr \
+ --program-prefix=avr- \
--disable-werror \
--disable-nls \
--with-system-readline \
@@ -23,8 +23,8 @@ short_desc="GNU Debugger for AVR"
maintainer="Artur Sinila <opensource@logarithmus.dev>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/gdb/"
-distfiles="${GNU_SITE}/${pkgname#avr-}/${pkgname#avr-}-${version}.tar.xz"
-checksum=360cd7ae79b776988e89d8f9a01c985d0b1fa21c767a4295e5f88cb49175c555
+distfiles="${GNU_SITE}/gdb/gdb-${version}.tar.xz"
+checksum=f82f1eceeec14a3afa2de8d9b0d3c91d5a3820e23e0a01bbb70ef9f0276b62c0
python_version=3
replaces="cross-avr-gdb>=0"
diff --git a/srcpkgs/avr-gdb/templatef b/srcpkgs/avr-gdb/templatef
new file mode 100644
index 00000000000..6e5258f6751
--- /dev/null
+++ b/srcpkgs/avr-gdb/templatef
@@ -0,0 +1,79 @@
+# Template file for 'avr-gdb'
+pkgname=avr-gdb
+version=10.1
+revision=1
+wrksrc=gdb-${version}
+build_style=gnu-configure
+pycompile_dirs="/usr/share/gdb/python"
+configure_args="\
+ --target=avr \
+ --program-prefix=avr \
+ --disable-werror \
+ --disable-nls \
+ --with-system-readline \
+ --with-system-gdbinit=/etc/gdb/gdbinit \
+ --with-system-zlib $(vopt_enable gdbserver) \
+ $(vopt_if static 'CFLAGS=-static CXXFLAGS=-static LDFLAGS=-static') \
+ $(vopt_if python --with-python=/usr/bin/python3)"
+hostmakedepends="texinfo perl $(vopt_if python python3-devel)"
+makedepends="ncurses-devel zlib-devel readline-devel expat-devel
+ $(vopt_if python 'python3-devel gettext-libs')"
+depends=gdb
+short_desc="GNU Debugger for AVR"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://www.gnu.org/software/gdb/"
+distfiles="${GNU_SITE}/gdb/gdb-${version}.tar.xz"
+checksum=
+python_version=3
+replaces="cross-avr-gdb>=0"
+
+if [ "${CROSS_BUILD}" ]; then
+ # Make python3.x detection work in cross builds
+ CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
+ CXXFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
+fi
+CFLAGS+=" -fcommon"
+CXXFLAGS+=" -fcommon"
+# Package build options
+build_options="gdbserver static python"
+desc_option_gdbserver="Enable support for building GDB server"
+# By default, don't enable any of build options
+#build_options_default="gdbserver"
+# Both options cannot be enabled at the same time
+vopt_conflict gdbserver static
+
+post_extract() {
+ vsed -i 's,sgidefs.h,asm/sgidefs.h,' gdb/mips-linux-nat.c
+ mkdir -p build
+}
+
+do_configure() {
+ cd build
+ ../configure ${configure_args/with-sysroot/with-build-sysroot} \
+ CFLAGS_FOR_BUILD="${CFLAGS_FOR_BUILD} -fcommon"
+ export gl_cv_func_gettimeofday_clobber=no
+ export gl_cv_func_working_strerror=yes
+ export gl_cv_func_strerror_0_works=yes
+}
+
+do_build() {
+ cd build
+ make ${makejobs} all
+}
+
+do_install() {
+ cd build
+ make DESTDIR=${DESTDIR} ${makejobs} install
+ # resolve conflicts with binutils
+ rm -rf ${DESTDIR}/usr/include ${DESTDIR}/usr/lib
+ rm -rf ${DESTDIR}/usr/lib64
+ for f in bfd configure standards; do
+ rm -f ${DESTDIR}/usr/share/info/${f}.info*
+ done
+}
+
+post_install() {
+ # resolve conflicts with binutils and native gdb
+ rm -fr usr/{share/{locale,gdb,info},include}
+}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR REVIEW] avr-gdb: update to 10.1, fix target & prefix
2020-12-03 7:11 [PR PATCH] avr-gdb: update to 10.1, fix target & prefix Logarithmus
@ 2020-12-03 10:23 ` Piraty
2020-12-03 10:25 ` [PR PATCH] [Updated] " Logarithmus
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Piraty @ 2020-12-03 10:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 172 bytes --]
New review comment by Piraty on void-packages repository
https://github.com/void-linux/void-packages/pull/26909#discussion_r535062888
Comment:
that file doesn't belong ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] avr-gdb: update to 10.1, fix target & prefix
2020-12-03 7:11 [PR PATCH] avr-gdb: update to 10.1, fix target & prefix Logarithmus
2020-12-03 10:23 ` [PR REVIEW] " Piraty
@ 2020-12-03 10:25 ` Logarithmus
2020-12-03 10:26 ` [PR REVIEW] " Logarithmus
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Logarithmus @ 2020-12-03 10:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 342 bytes --]
There is an updated pull request by Logarithmus against master on the void-packages repository
https://github.com/Logarithmus/void-packages avr-gdb
https://github.com/void-linux/void-packages/pull/26909
avr-gdb: update to 10.1, fix target & prefix
A patch file from https://github.com/void-linux/void-packages/pull/26909.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-avr-gdb-26909.patch --]
[-- Type: text/x-diff, Size: 1406 bytes --]
From 99f3c9cb18f4c5cf92bd9c197386e83f5f49e7e6 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Thu, 3 Dec 2020 08:39:13 +0300
Subject: [PATCH] avr-gdb: update to 10.1, fix target & prefix
---
srcpkgs/avr-gdb/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/avr-gdb/template b/srcpkgs/avr-gdb/template
index f011ba62125..2635f382fce 100644
--- a/srcpkgs/avr-gdb/template
+++ b/srcpkgs/avr-gdb/template
@@ -1,13 +1,13 @@
# Template file for 'avr-gdb'
pkgname=avr-gdb
-version=9.2
+version=10.1
revision=1
-wrksrc=${pkgname#avr-}-${version}
+wrksrc=gdb-${version}
build_style=gnu-configure
pycompile_dirs="/usr/share/gdb/python"
configure_args="\
- --target=${_triplet} \
- --program-prefix=${_triplet}- \
+ --target=avr \
+ --program-prefix=avr- \
--disable-werror \
--disable-nls \
--with-system-readline \
@@ -23,8 +23,8 @@ short_desc="GNU Debugger for AVR"
maintainer="Artur Sinila <opensource@logarithmus.dev>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/gdb/"
-distfiles="${GNU_SITE}/${pkgname#avr-}/${pkgname#avr-}-${version}.tar.xz"
-checksum=360cd7ae79b776988e89d8f9a01c985d0b1fa21c767a4295e5f88cb49175c555
+distfiles="${GNU_SITE}/gdb/gdb-${version}.tar.xz"
+checksum=f82f1eceeec14a3afa2de8d9b0d3c91d5a3820e23e0a01bbb70ef9f0276b62c0
python_version=3
replaces="cross-avr-gdb>=0"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR REVIEW] avr-gdb: update to 10.1, fix target & prefix
2020-12-03 7:11 [PR PATCH] avr-gdb: update to 10.1, fix target & prefix Logarithmus
2020-12-03 10:23 ` [PR REVIEW] " Piraty
2020-12-03 10:25 ` [PR PATCH] [Updated] " Logarithmus
@ 2020-12-03 10:26 ` Logarithmus
2020-12-03 10:26 ` Logarithmus
2020-12-05 20:15 ` [PR PATCH] [Merged]: " ericonr
4 siblings, 0 replies; 6+ messages in thread
From: Logarithmus @ 2020-12-03 10:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 156 bytes --]
New review comment by Logarithmus on void-packages repository
https://github.com/void-linux/void-packages/pull/26909#discussion_r535066269
Comment:
Fixed
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR REVIEW] avr-gdb: update to 10.1, fix target & prefix
2020-12-03 7:11 [PR PATCH] avr-gdb: update to 10.1, fix target & prefix Logarithmus
` (2 preceding siblings ...)
2020-12-03 10:26 ` [PR REVIEW] " Logarithmus
@ 2020-12-03 10:26 ` Logarithmus
2020-12-05 20:15 ` [PR PATCH] [Merged]: " ericonr
4 siblings, 0 replies; 6+ messages in thread
From: Logarithmus @ 2020-12-03 10:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 164 bytes --]
New review comment by Logarithmus on void-packages repository
https://github.com/void-linux/void-packages/pull/26909#discussion_r535066269
Comment:
@Piraty fixed
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Merged]: avr-gdb: update to 10.1, fix target & prefix
2020-12-03 7:11 [PR PATCH] avr-gdb: update to 10.1, fix target & prefix Logarithmus
` (3 preceding siblings ...)
2020-12-03 10:26 ` Logarithmus
@ 2020-12-05 20:15 ` ericonr
4 siblings, 0 replies; 6+ messages in thread
From: ericonr @ 2020-12-05 20:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
There's a merged pull request on the void-packages repository
avr-gdb: update to 10.1, fix target & prefix
https://github.com/void-linux/void-packages/pull/26909
Description:
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-12-05 20:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 7:11 [PR PATCH] avr-gdb: update to 10.1, fix target & prefix Logarithmus
2020-12-03 10:23 ` [PR REVIEW] " Piraty
2020-12-03 10:25 ` [PR PATCH] [Updated] " Logarithmus
2020-12-03 10:26 ` [PR REVIEW] " Logarithmus
2020-12-03 10:26 ` Logarithmus
2020-12-05 20:15 ` [PR PATCH] [Merged]: " ericonr
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).