summaryrefslogtreecommitdiff
path: root/dev-embedded/sdcc/files
diff options
context:
space:
mode:
authorEsteve Varela Colominas <esteve.varela@gmail.com>2022-12-01 19:49:37 +0100
committerViorel Munteanu <ceamac@gentoo.org>2023-03-05 12:14:21 +0200
commitec9f33c18f0621452246ff37762a42485ad050ca (patch)
treeaba9e15b69c067d738d827840edc48f93d342d18 /dev-embedded/sdcc/files
parent863177f86911eb2f217e4ddf793bcb7630f550f3 (diff)
downloadgentoo-ec9f33c18f0621452246ff37762a42485ad050ca.tar.gz
gentoo-ec9f33c18f0621452246ff37762a42485ad050ca.tar.bz2
gentoo-ec9f33c18f0621452246ff37762a42485ad050ca.zip
dev-embedded/sdcc: Bump to 4.2.0
This update also fixes a long-standing bug with regards to the pic14 and pic16 ports. Be sure to build with USE="pic14 pic16 non-free device-lib" (all linked bugs are a copy of this, can be closed when this package goes stable) Bug: https://bugs.gentoo.org/682086 Bug: https://bugs.gentoo.org/730484 Bug: https://bugs.gentoo.org/731848 Closes: https://bugs.gentoo.org/844925 Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/28496 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'dev-embedded/sdcc/files')
-rw-r--r--dev-embedded/sdcc/files/sdcc-4.2.0-link-tinfo.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-embedded/sdcc/files/sdcc-4.2.0-link-tinfo.patch b/dev-embedded/sdcc/files/sdcc-4.2.0-link-tinfo.patch
new file mode 100644
index 000000000000..a8f4ae7565bc
--- /dev/null
+++ b/dev-embedded/sdcc/files/sdcc-4.2.0-link-tinfo.patch
@@ -0,0 +1,24 @@
+Link -ltinfo for ucsim
+
+/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-embedded/sdcc-4.2.0/temp/cc3R2ckl.ltrans0.ltrans.o: undefined reference to symbol 'nodelay'
+/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
+
+--- sdcc-4.2.0.orig/sim/ucsim/configure.ac
++++ sdcc-4.2.0/sim/ucsim/configure.ac
+@@ -405,14 +405,14 @@
+ if test $curses_ok != yes; then
+ AC_CHECK_LIB(curses,nl,
+ curses_ok="yes"
+- CURSES_LIBS="${CURSES_LIBS} -lcurses",
++ CURSES_LIBS="${CURSES_LIBS} -lcurses -ltinfo",
+ curses_ok="no")
+ fi
+
+ if test $curses_ok != yes; then
+ AC_CHECK_LIB(ncurses,nl,
+ curses_ok="yes"
+- CURSES_LIBS="${CURSES_LIBS} -lncurses",
++ CURSES_LIBS="${CURSES_LIBS} -lncurses -ltinfo",
+ curses_ok="no")
+ fi
+ fi