Item10735: Foswiki 1.1.3: several clashes with other debian packages

pencil
Priority: Urgent
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: DebianPackage
Branches:
Reported By: PhilippLeufke
Waiting For: SvenDowideit
Last Change By: SvenDowideit
Several clashes with other packages keep me from upgrading to 1.1.3.

The snippets from my history should tell enough:

foswiki template parse error: Template parse error near `.', in stanza #4 of /tmp/foswiki.template.33270

[...]

dpkg: error processing /var/cache/apt/archives/foswiki_1.1.3-1_all.deb (--unpack):
 trying to overwrite '/var/lib/foswiki/templates/icons.tmpl', which is also in package foswiki-famfamfamcontrib 110417-215
# dpkg --purge foswiki-famfamfamcontrib
# apt-get install foswiki-jscalendarcontrib
dpkg: error processing /var/cache/apt/archives/foswiki-jscalendarcontrib_110417-215_all.deb (--unpack):
 trying to overwrite '/var/lib/foswiki/lib/Foswiki/Contrib/JSCalendarContrib/Config.spec', which is also in package foswiki 1.0.10-0
# dpkg --purge foswiki-jscalendarcontrib
dpkg: error processing /var/cache/apt/archives/foswiki_1.1.3-1_all.deb (--unpack):
 trying to overwrite '/var/lib/foswiki/templates/oopshistory.tmpl', which is also in package foswiki-historyplugin 110417-215
# dpkg --purge foswiki-historyplugin
dpkg: error processing /var/cache/apt/archives/foswiki_1.1.3-1_all.deb (--unpack):
 trying to overwrite '/var/lib/foswiki/templates/compareinterweave.tmpl', which is also in package foswiki-comparerevisionsaddon 110417-215
dpkg: error processing /var/cache/apt/archives/foswiki_1.1.3-1_all.deb (--unpack):
 trying to overwrite '/var/lib/foswiki/lib/Foswiki/Plugins/JQueryPlugin.pm', which is also in package foswiki-jqueryplugin 110417-215
# dpkg --purge foswiki-jqueryplugin foswiki-formplugin foswiki-jeditablecontrib foswiki-editrowplugin foswiki-actiontrackerplugin 
# rm -r /var/lib/foswiki/pub/System/JQuerySlimbox
# dpkg --purge foswiki-jqueryplugin
dpkg: error processing /var/cache/apt/archives/foswiki_1.1.3-1_all.deb (--unpack):
 trying to overwrite '/var/lib/foswiki/lib/Foswiki/Plugins/AutoViewTemplatePlugin/Config.spec', which is also in package foswiki-autoviewtemplateplugin 110417-215
# dpkg --purge foswiki-autoviewtemplateplugin
dpkg: error processing /var/cache/apt/archives/foswiki_1.1.3-1_all.deb (--unpack):
 trying to overwrite '/var/lib/foswiki/lib/Foswiki/Configure/Checkers/MergeHeadAndScriptZones.pm', which is also in package foswiki-zoneplugin 101006-215
# dpkg --purge foswiki-zoneplugin foswiki-imageplugin foswiki-jhotdrawplugin
dpkg: error processing /var/cache/apt/archives/foswiki_1.1.3-1_all.deb (--unpack):
 trying to overwrite '/var/lib/foswiki/lib/Foswiki/Form/Rating.pm', which is also in package foswiki-ratingcontrib 090611-215
# dpkg --purge foswiki-ratingcontrib foswiki-voteplugin
Template parse error near `.', in stanza #4 of /var/lib/dpkg/info/foswiki.templates
dpkg: error processing foswiki (--configure):
 subprocess installed post-installation script returned error exit status 9
# dpkg --purge foswiki-varcacheplugin
Template parse error near `.', in stanza #4 of /var/lib/dpkg/info/foswiki.templates
dpkg: error processing foswiki (--configure):
 subprocess installed post-installation script returned error exit status 9

To make a long story short:
I had to remove half of my installed plugins to make the foswiki 1.1.3 debian package install up to the point where it asks whether to keep or overwrite LocalSite.cfg, but still it won't succeed to install properly.

Questions:
  • Why are so many packages colliding?
  • Any workaround for making upgrading easier?

Using debian packages should not imply so much extra work for the administrator.

-- PhilippLeufke - 11 May 2011

the packages are colliding because the foswiki release added several previsouly seperate modules - and because i tested upgrading, and some bits worked for me :/

clearly i have to go back and do more work on upgrading frown, sad smile sorry

-- SvenDowideit - 11 May 2011

I can confirm the exact same problem, but with different conflicts. In my case, I had to remove the following: foswiki-jqueryplugin foswiki-editrowplugin foswiki-jeditablecontrib foswiki-zoneplugin to get to the point where it asks whether to keep or overwrite LocalSite.cfg. But at that point, I then get the same error that the OP mentions.

-- BryanWalton - 12 May 2011

Looks to me like there's a bug in the templates file in the section

Template: foswiki/apacheUserCreationNote

There are description lines (the last three) that should to be indented

-- DavidAustin - 13 May 2011

After correcting the description lines i got foswiki 1.1.3 to complete installation. This problems are to solve:
  • JQueryPlugin: Error: The configured jQuery version does not exist
  • TinyMCE doesn't work, giving "Unable to install TinyMCE; <META name='TINYMCEPLUGIN_INIT' is missing"

-- BernhardVornefeld - 13 May 2011

Bernhard - you must run the foswiki configure script and save after installation - too many things in foswiki are now depandant on it for me to fake

-- SvenDowideit - 14 May 2011

ok, I'm uploading a 1.1.3-2 pkg that should at least tell you that the other packages conflict, are replaced by and provided by the 1.1 core pkg - if i figure out an even better solution I'll work on that too.

the biggest thing I could do with help with, is re-coding configure to be able to run from commandline - cos I've not had time to work on that in ages.

-- SvenDowideit - 14 May 2011

Things are getting better now, as the foswiki package gets configured correctly.

The only conflicts I still encounter are with packages: foswiki-jscalendarcontrib, foswiki-voteplugin and foswiki-ratingcontrib, foswiki-zoneplugin and foswiki-jqueryplugin

-- PhilippLeufke - 16 May 2011

i would hope you get conflicts with those - they are either in the 1.1.3 package, so cannot be installed at the same time, and in the case of foswiki-voteplugin and foswiki-ratingcontrib, one of those tries to replace a file that is in the 1.1.3 package - something that you're not allowed to do, as it makes bug tracking very hard.

For the ratingcontrib one, I'd suggest raising a bug against that package, as its doing something that it shouldn't.

-- SvenDowideit - 17 May 2011

Problems solved:

Updating to 1.1.3-2 solved the jQuery-Problem

I worked out a solution to the "TINYMCEPLUGIN_INIT"-Problem

Problem unsolved:
  • SearchEngineKinoSearchPlugin release 1.20 (current debian package) is not compatible with Kinosearch 0.33. Available release In the Extensions Web: 1.30 (Version: 11696 (2011-05-16)) .

-- BernhardVornefeld - 18 May 2011

Hi guys, I got some problems like these. And I noticed something strange in foswiki package, where are files under data and pub dir?

$ dpkg -l foswiki
ii  foswiki                           1.1.3-2                           A Web Based Collaboration Platform

$ dpkg -L foswiki | grep pub
/usr/share/foswiki/foswiki-pub.tar.gz

$ dpkg -L foswiki | grep data
/usr/share/foswiki/foswiki-data.tar.gz

The package didn't install any file under /var/lib/foswiki/data or /var/lib/foswiki/pub. But created 2 tarballs under /usr/share/foswiki.

-- JoenioCosta - 24 May 2011

How to update the debian package to the latest JQueryPlugin? For now I did an old fashioned manual install cause the foswiki-jqueryplugin package didn't want to do the job. wink

Previousely I had to update my debian to Lenny in order to get a newer Perl and had some struggle to get a proper CGI version (because Lenny comes with 3.43 per default I used some Ubuntu package instead) --> the debian package needs some TLC wink

-- FranzJosefGigler - 14 Jun 2011

ok, I was tasked to build a yum repo, and it is written to separate out the foswiki-core package and to use dependencies. This work needs to be xfered to the debian build system - I'm hoping to 1.1.5, but possibly not til 1.2.0 - depends mostly on my testing time.

-- SvenDowideit - 14 Mar 2012
 

ItemTemplate edit

Summary Foswiki 1.1.3: several clashes with other debian packages
ReportedBy PhilippLeufke
Codebase 1.1.3
SVN Range
AppliesTo Extension
Component DebianPackage
Priority Urgent
CurrentState Confirmed
WaitingFor SvenDowideit
Checkins distro:9076f0acfc94
TargetRelease n/a
ReleasedIn n/a
Topic revision: r17 - 14 Mar 2012, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy