[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#628161: kdelibs5-data and kate-syntax-go: error when trying to install together



reassign 628161 kdelibs5-data
thank you

Hi,

I don't think that Go is a stable language yet and the syntax will
probably change between releases, so it's better to keep the syntax
file closer to the golang releases than to kdelibs releases.

Please remove go.xml from kdelibs5-data for now. The decision could be
reverted once the Go stabilizes enough, but right now I don't think
you want to update kde4libs package every time there is a new golang
release for updated syntax.

Attached is a diff between kdelibs5-data version and golang version,
as you can see, the kdelibs5-data is missing some stuff.

O.

2011/5/27 Ralf Treinen <treinen@free.fr>:
> Package: kate-syntax-go,kdelibs5-data
> Version: kate-syntax-go/1:57.1-2
> Version: kdelibs5-data/4:4.6.3-1
> Severity: serious
> User: treinen@debian.org
> Usertags: edos-file-overwrite
>
> Date: 2011-05-27
> Architecture: amd64
> Distribution: sid
>
> Hi,
>
> automatic installation tests of packages that share a file and at the
> same time do not conflict by their package dependency relationships has
> detected the following problem:
>
>
> [...]
> Selecting previously deselected package kdebase-runtime.
> Unpacking kdebase-runtime (from .../kdebase-runtime_4%3a4.6.3-1_amd64.deb) ...
> Selecting previously deselected package libknewstuff2-4.
> Unpacking libknewstuff2-4 (from .../libknewstuff2-4_4%3a4.6.3-1_amd64.deb) ...
> Selecting previously deselected package kate.
> Unpacking kate (from .../kate_4%3a4.6.3-1_amd64.deb) ...
> Selecting previously deselected package kate-syntax-go.
> Unpacking kate-syntax-go (from .../kate-syntax-go_1%3a57.1-2_all.deb) ...
> dpkg: error processing /var/cache/apt/archives/kate-syntax-go_1%3a57.1-2_all.deb (--unpack):
>  trying to overwrite '/usr/share/kde4/apps/katepart/syntax/go.xml', which is also in package kdelibs5-data 4:4.6.3-1
> configured to not write apport reports
> Processing triggers for man-db ...
> Errors were encountered while processing:
>  /var/cache/apt/archives/kate-syntax-go_1%3a57.1-2_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> cow-shell unlink .ilist: No such file or directory
>
>
> This is a serious bug as it makes installation fail, and violates
> sections 7.6.1 and 10.1 of the policy. An optimal solution would
> consist in only one of the packages installing that file, and renaming
> or removing the file in the other package. Depending on the
> circumstances you might also consider Replace relations or file
> diversions. If the conflicting situation cannot be resolved then, as a
> last resort, the two packages have to declare a mutual
> Conflict. Please take into account that Replaces, Conflicts and
> diversions should only be used when packages provide different
> implementations for the same functionality.
>
> Here is a list of files that are known to be shared by both packages
> (according to the Contents file for sid/amd64, which may be
> slightly out of sync):
>
>  /usr/share/kde4/apps/katepart/syntax/go.xml
>
> This bug is assigned to both packages. If you, the maintainers of
> the two packages in question, have agreed on which of the packages will
> resolve the problem please reassign the bug to that package. You may
> also register in the BTS that the other package is affected by the bug.
>
> -Ralf.
>
> PS: for more information about the detection of file overwrite errors
> of this kind see http://edos.debian.net/file-overwrites/.
>
>
>



-- 
Ondřej Surý <ondrej@sury.org>
--- kdelibs5-data-go.xml	2011-05-28 08:37:43.315304281 +0000
+++ golang-go.xml	2011-05-28 08:38:57.239230959 +0000
@@ -1,35 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE language SYSTEM "language.dtd">
-
-<!--
-This file is part of KDE's Kate project
-
-GO.XML supports syntax highlighting for the Go programming language
-under Kate. Go is a compiled, garbage-collected, concurrent programming
-language developed by Google Inc.
-
-Copyright (C) 2010, Miquel Sabaté <mikisabate@gmail.com>
-
-This program, including associated files, is free software.  You may
-distribute it and/or modify it under the terms of the GNU General Public
-License as published by the Free Software Foundation; either Version 2 of
-the license, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
--->
-
-
-<language name="Go" version="1.00" kateversion="2.4" section="Sources" indenter="cstyle" extensions="*.go" author="Miquel Sabaté (mikisabate@gmail.com)" license="GPL">
+<language name="Go" section="Sources"
+          version="1.00" kateversion="2.4"
+          indenter="cstyle"
+          extensions="*.go"
+          mimetype=""
+          priority="5"
+          author="The Go Authors"
+          license="BSD">
     <highlighting>
     <list name="keywords">
-<!-- Keywords have been taken from The Go Programming Language Specification -> Keywords section -->
       <item>break</item>
       <item>case</item>
       <item>chan</item>
@@ -47,7 +27,7 @@ with this program; if not, write to the
       <item>import</item>
       <item>interface</item>
       <item>map</item>
-<!--       <item>package</item> -->
+      <item> package </item>
       <item>range</item>
       <item>return</item>
       <item>select</item>
@@ -56,12 +36,17 @@ with this program; if not, write to the
       <item>type</item>
       <item>var</item>
     </list>
+    <list name="predeclared">
+      <item> false </item>
+      <item> iota </item>
+      <item> nil </item>
+      <item> true </item>
+    </list>
     <list name="types">
       <item>bool</item>
       <item>byte</item>
       <item>complex64</item>
       <item>complex128</item>
-      <item>float</item>
       <item>float32</item>
       <item>float64</item>
       <item>int</item>
@@ -71,80 +56,92 @@ with this program; if not, write to the
       <item>int64</item>
       <item>string</item>
       <item>uint</item>
+      <item> uintptr </item>
       <item>uint8</item>
       <item>uint16</item>
       <item>uint32</item>
       <item>uint64</item>
     </list>
-    <list name="builtin">
+    <list name="functions">
+      <item> append </item>
       <item>cap</item>
+      <item> close </item>
+      <item> complex </item>
+      <item> copy </item>
+      <item> imag </item>
       <item>len</item>
       <item>make</item>
       <item>new</item>
       <item>panic</item>
+      <item> print </item>
+      <item> println </item>
+      <item> real </item>
       <item>recover</item>
     </list>
-    <list name="special">
-      <item>false</item>
-      <item>nil</item>
-      <item>true</item>
-    </list>
     <contexts>
-      <context name="normal" attribute="Normal Text" lineEndContext="#stay">
+      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
+        <DetectSpaces />
       <keyword attribute="Keyword" context="#stay" String="keywords" />
-      <keyword attribute="Special" context="#stay" String="special"  />
-      <keyword attribute="Type" context="#stay" String="types"       />
-      <keyword attribute="Builtin" context="#stay" String="builtin"  />
-      <StringDetect attribute="Package" context="Package" String="package" />
+        <keyword attribute="Predeclared Identifier" context="#stay"
+          String="predeclared"/>
+        <keyword attribute="Data Type" context="#stay" String="types"/>
+        <keyword attribute="Builtin Function" context="#stay" String="functions"/>
+        <DetectIdentifier />
       <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
       <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"   />
-      <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"   />
-      <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*"   />
+        <HlCOct attribute="Octal" context="#stay"/>
+        <HlCHex attribute="Hex" context="#stay"/>
       <HlCChar attribute="Char" context="#stay" />
       <DetectChar attribute="String" context="String" char="&quot;" />
+        <DetectChar attribute="Multiline String" context="Multiline String" char="`"/>
+        <Detect2Chars attribute="Comment" context="Comment 1" char="/" char1="/"/>
+        <Detect2Chars attribute="Comment" context="Comment 2" char="/" char1="*" beginRegion="Comment"/>
+        <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
       </context>
 
-      <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
-        <LineContinue attribute="Comment" context="#stay"/>
-        <DetectSpaces />
-        <IncludeRules context="##Alerts" />
-        <DetectIdentifier />
+      <context attribute="String" lineEndContext="#pop" name="String">
+        <LineContinue attribute="String" context="#stay"/>
+        <HlCStringChar attribute="String Char" context="#stay"/>
+        <DetectChar attribute="String" context="#pop" char="&quot;"/>
       </context>
 
-      <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
-        <DetectSpaces />
-        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
-        <IncludeRules context="##Alerts" />
-        <DetectIdentifier />
+      <context attribute="String" lineEndContext="#stay" name="Multiline String">
+        <LineContinue attribute="String" context="#stay"/>
+        <HlCStringChar attribute="String Char" context="#stay"/>
+        <DetectChar attribute="String" context="#pop" char="`"/>
       </context>
 
-      <context attribute="Package" lineEndContext="#pop" name="Package" />
+      <context attribute="Comment" lineEndContext="#pop" name="Comment 1">
+        <LineContinue attribute="Comment" context="#stay"/>
+      </context>
 
-      <context attribute="String" lineEndContext="#pop" name="String">
-        <LineContinue  attribute="String" context="#stay" />
-        <HlCStringChar attribute="String Char" context="#stay" />
-        <DetectChar    attribute="String" context="#pop" char="&quot;" />
+      <context attribute="Comment" lineEndContext="#stay" name="Comment 2">
+        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
       </context>
     </contexts>
     <itemDatas>
       <itemData name="Normal Text"  defStyleNum="dsNormal"   spellChecking="false"/>
       <itemData name="Keyword"      defStyleNum="dsKeyword"  spellChecking="false"/>
-      <itemData name="Special"      defStyleNum="dsOthers"   spellChecking="false"/>
-      <itemData name="Type"         defStyleNum="dsDataType" spellChecking="false"/>
-      <itemData name="Builtin"      defStyleNum="dsOthers"   color="#000e52" selColor="#ffffff" spellChecking="false" />
-      <itemData name="String Char"  defStyleNum="dsChar"    />
+      <itemData name="Predeclared Identifier" defStyleNum="dsOthers" spellChecking="false"/>
+      <itemData name="Builtin Function" defStyleNum="dsFunction" spellChecking="false"/>
+      <itemData name="Data Type"    defStyleNum="dsDataType" spellChecking="false"/>
+      <itemData name="Decimal"      defStyleNum="dsDecVal" spellChecking="false"/>
+      <itemData name="Octal"        defStyleNum="dsBaseN" spellChecking="false"/>
+      <itemData name="Hex"          defStyleNum="dsBaseN" spellChecking="false"/>
+      <itemData name="Float"        defStyleNum="dsFloat" spellChecking="false"/>
+      <itemData name="Char"         defStyleNum="dsChar" spellChecking="false"/>
       <itemData name="String"       defStyleNum="dsString"  />
+      <itemData name="String Char"  defStyleNum="dsChar"/>
       <itemData name="Comment"      defStyleNum="dsComment" />
-      <itemData name="Char"         defStyleNum="dsChar"   spellChecking="false"/>
-      <itemData name="Package"      defStyleNum="dsNormal" color="#000080" selColor="#ffffff" spellChecking="false" />
       <itemData name="Symbol"       defStyleNum="dsNormal" spellChecking="false"/>
+      <itemData name="Error"        defStyleNum="dsError" spellChecking="false"/>
     </itemDatas>
     </highlighting>
   <general>
     <comments>
       <comment name="singleLine" start="//" />
-      <comment name="multiLine" start="/*" end="*/" region="Comment"/>
+      <comment name="multiLine" start="/*" end="*/" />
     </comments>
-    <keywords casesensitive="1"/>
+    <keywords casesensitive="1" additionalDeliminator="'&quot;" />
   </general>
 </language>

Reply to: