diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-07 01:33:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-07 01:33:16 +0100 |
commit | c8fd0d84af0bfd1949542adc2cbb735b1d28f9ed (patch) | |
tree | 3ee550255947da075650f1a551dcc278f9a1b7f8 /dev-haskell/language-c | |
parent | a978c074e4272bb901fbe4a10de0a7b2af574f17 (diff) |
gentoo resync : 07.05.2021
Diffstat (limited to 'dev-haskell/language-c')
-rw-r--r-- | dev-haskell/language-c/Manifest | 2 | ||||
-rw-r--r-- | dev-haskell/language-c/files/language-c-0.8.3-gcc-11.patch | 41 | ||||
-rw-r--r-- | dev-haskell/language-c/language-c-0.8.3-r1.ebuild | 41 |
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-haskell/language-c/Manifest b/dev-haskell/language-c/Manifest index b50a8e788541..0335cb3559af 100644 --- a/dev-haskell/language-c/Manifest +++ b/dev-haskell/language-c/Manifest @@ -1,7 +1,9 @@ +AUX language-c-0.8.3-gcc-11.patch 1458 BLAKE2B 7d9adf32532e7fabb65bc7f71389f2d85b1ed053d1934ed8d1af023fd295ab06fbc62731b820dd72dce50e744d64134ea14e5d11959ce0aae3af45ce6afdf7ae SHA512 8c83c4ee53c168fb3147ea30855579c4f59a20eca6845dd44194d127df02880810480d1d7cfb8e9cd8cdb9ee33de42c67dd6915ba0ad3c45c3a73e9073669466 DIST language-c-0.4.7.tar.gz 112569 BLAKE2B e7a1333315f10ac3e8490b8dc3b5aa04e40b1a7e1f9c68615f549c82f7d02bf7de5b687dd9d4f04f82202b89e468b22833816346f53bb1cd075ed6386ee1142a SHA512 fb2602606b8c2e678e170d928c3dd023acccc079381a37b64624af658788c0dee982c2d53c2d3ba66b576aa75de350d12e35a94f867e1d714e89c27d26f2af6b DIST language-c-0.7.1.tar.gz 181648 BLAKE2B 6c5219698fbbe995d759a0bd6e629b9dbb29137c3dfa879cbdf139721f4acd341245172ccfb3f7d3cec58a831f72f03d092f29960f6dfcf190480df02a30e66a SHA512 c62dee86b70ead9c0795cabc6b1e0487ab3d4e1e4df693cec94c255aa96d21589d9161150073a5ec1d2ae168924dd8a11ae6ee0cd46730a25ccda009f7a45f58 DIST language-c-0.8.3.tar.gz 194870 BLAKE2B 6b35d741f73543d929bac18e3567911f7d2fa56734463cbc15f2db4ecdc127eaaa1ec2afbe6962f39feb860669c33b50d6c7c941cdd7f6b3c97b42f911b21309 SHA512 a2e653c3d6fe4573c0a7f34115d5a5d3db925c174cd574755bb174de834165bce236b354f04e1158309eda654d12104ea03e88f94cdc8b3e11cffba7260282de EBUILD language-c-0.4.7.ebuild 775 BLAKE2B f7e191f462ff6c1757f10669310c439a0b03a56fe9ed5927551d65b93e64bfb5ee5526c9ce004a0716ef9c392a9b3c40858b784ad5a999fbad3d66bcb1f71860 SHA512 ef7bf4a3d66ab6f0a136f7a9b5366763b0c7841d25991d731e69ce2e46e936faa946f4292f013463b087fa25e35f3cb0d34158ba91d61bdd21bb27363ed4cb2b EBUILD language-c-0.7.1.ebuild 755 BLAKE2B 7f003b4d9cd81e358f13441b0cd5b7b30e0ab1183dfef8e3236bb8316e6b48b86b1543dfc5ce61a0c2bf2319243185f0c44eb8b39b03deb940c9a42d656be8c8 SHA512 e54d69d98c3db00a002c9e07768231ad76b334344c2e8f5e73be2b55229b45b91be3a785426812ef37171574055902c25e5f8e6c1f12e3b131a5309a97bb7397 +EBUILD language-c-0.8.3-r1.ebuild 921 BLAKE2B 10dc3c8b25c32a5728e988758e7a6273bd174dbf9561faca9278379cbc1f09dbaadcc032c38e455212db8cd986382577ff8024b0eb64d4c556f65a5cc7a295a8 SHA512 bc34c71bf52eb795082742d232ea642ae43f2588fd0294afa28731d21383c5fbd1ceb96aea36ef8fd4650f21b823cdefd0c0731e4041717abeab19ae1d59951d EBUILD language-c-0.8.3.ebuild 868 BLAKE2B fb1d114064d06c436cd149ad60bc9f14c0a680ed87a70dd73e31e3c67901c979ec866330a0fa1172e87ea6a860807ef05a4f47781723d05606a20b3cd9a4cfbd SHA512 db22e8e5eaff028367301d0686ed70258a714c4891d5377924487d8e5c35a8736e95b30c2cc3b6203a2e645be9efb5a9eeb0a3e446fc7798d0d5583922e98175 MISC metadata.xml 217 BLAKE2B 41b11b7399431ee96c40a11373f20b12940ed7bb1fc77b1619212b2a57a3b34b11b77838d4ac51c1ddb80caab1030224e28567836e5d0a17b4ea6bd1afa2523c SHA512 63f267082f4ba17f6a1226d1c5a14d85d17e0f7a84857605933418d875d09cfffe2a0ca304b8a171dcae59169330fcc3cfca9d6f4c9ce24d135f1125a6d06c70 diff --git a/dev-haskell/language-c/files/language-c-0.8.3-gcc-11.patch b/dev-haskell/language-c/files/language-c-0.8.3-gcc-11.patch new file mode 100644 index 000000000000..5b2e8e4e899c --- /dev/null +++ b/dev-haskell/language-c/files/language-c-0.8.3-gcc-11.patch @@ -0,0 +1,41 @@ +From 8133e1526750ab74ca4d5180fb140a7e172d473f Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Sat, 8 Aug 2020 23:43:12 +0100 +Subject: [PATCH] Lexer: allow zeros as line numbers in preprocessed directives + +Starting from `gcc-11` initial line numbers not related to +actual files are marked as zeros. See the "preprocessor: +Better line info for <builtin> & <command-line>" +https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=6bf2ff0d52a9 + +language-c's grammar did not allow it (by accident) + +``` +Prelude> Language.C.parseC (Data.ByteString.Char8.pack "# 0 \"/dev/null\"\n") Language.C.nopos +Left <no file>:: [ERROR] >>> Syntax Error ! + Lexical error ! + The character '#' does not fit here. +``` + +The change allows '0' in line numbers as well. + +Closes: https://github.com/visq/language-c/issues/74 +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + src/Language/C/Parser/Lexer.x | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/src/Language/C/Parser/Lexer.x ++++ b/src/Language/C/Parser/Lexer.x +@@ -147,7 +147,7 @@ $white+ ; + -- + -- * see https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html + -- +-\#$space*@int$space*(\"($infname|@charesc)*\"$space*)?(@int$space*)*\r?$eol ++\#$space*@digits$space*(\"($infname|@charesc)*\"$space*)?(@int$space*)*\r?$eol + { \pos len str -> setPos (adjustLineDirective len (takeChars len str) pos) >> lexToken' False } + + -- #pragma directive (K&R A12.8) +-- +2.28.0 + diff --git a/dev-haskell/language-c/language-c-0.8.3-r1.ebuild b/dev-haskell/language-c/language-c-0.8.3-r1.ebuild new file mode 100644 index 000000000000..795d688b3cde --- /dev/null +++ b/dev-haskell/language-c/language-c-0.8.3-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.9999 +#hackport: flags: -allwarnings,+separatesyb,+usebytestrings,+splitbase,+iecfpextension + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Analysis and generation of C code" +HOMEPAGE="http://visq.github.io/language-c/" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-haskell/syb:=[profile?] + >=dev-lang/ghc-7.10.1:= +" +DEPEND="${RDEPEND} + dev-haskell/alex + >=dev-haskell/cabal-1.22.2.0 + dev-haskell/happy +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.8.3-gcc-11.patch +) + +src_configure() { + haskell-cabal_src_configure \ + --flag=-allwarnings \ + --flag=iecfpextension \ + --flag=separatesyb \ + --flag=splitbase \ + --flag=usebytestrings +} |