Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trisquel
package-helpers
Commits
644e6345
Commit
644e6345
authored
3 years ago
by
Luis Guzmán
Browse files
Options
Downloads
Patches
Plain Diff
libreoffice T9.0 > T10.0 fix
parent
ac75c7ac
No related branches found
No related tags found
No related merge requests found
Pipeline
#391
passed
3 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
helpers/DATA/libreoffice/fix_upgrade_buster-bullseye_985297.patch
+97
-0
97 additions, 0 deletions
...DATA/libreoffice/fix_upgrade_buster-bullseye_985297.patch
helpers/make-libreoffice
+5
-2
5 additions, 2 deletions
helpers/make-libreoffice
with
102 additions
and
2 deletions
helpers/DATA/libreoffice/fix_upgrade_buster-bullseye_985297.patch
0 → 100644
+
97
−
0
View file @
644e6345
diff -Nru debian/changelog debian/changelog
--- debian/changelog 2021-11-04 09:22:24.000000000 -0600
+++ debian/changelog 2021-12-31 21:58:35.247237140 -0600
@@ -51,6 +51,19 @@
-- Rico Tzschichholz <ricotz@ubuntu.com> Fri, 07 May 2021 17:03:32 +0200
+ * debian/control.in, debian/libreoffice-common.{maintscript,postinst.in}:
+ apply patch from Adreas Beckmann to fix upgrade buster->bullseye
+ - libreoffice-core: Copy some Conflicts from libreoffice-common for smoother
+ upgrades from buster. Dpkg will otherwise ignore Conflicts that are
+ encountered later against a package that is already deconfigured.
+ - libreoffice-common: Do not use dir_to_symlink for
+ /usr/lib/libreoffice/share/registry, the Breaks/Conflicts cascade does not
+ work reliable here to ensure all packages previously shipping files there
+ are either removed or upgraded first, but not just deconfigured. Fix up
+ the symlink in postinst instead. (Closes: #985297)
+
+ -- Rene Engelhard <rene@debian.org> Sat, 01 May 2021 13:14:17 +0200
+
libreoffice (1:7.1.2~rc2-0ubuntu2) hirsute; urgency=medium
[ Heather Ellsworth ]
diff -Nru debian/control debian/control
--- debian/control 2021-11-04 09:22:24.000000000 -0600
+++ debian/control 2021-12-31 22:00:27.264676545 -0600
@@ -425,6 +425,15 @@
libreoffice-core-nogui,
libreoffice-filter-binfilter,
libreoffice-mysql-connector (<< 1:6.2.0~)
+# for bullseye, copied from libreoffice-common, see #985297
+ ,
+ libreoffice-base (<< 1:7.0.0~alpha~),
+ libreoffice-calc (<< 1:7.0.0~alpha~),
+ libreoffice-draw (<< 1:7.0.0~alpha~),
+ libreoffice-impress (<< 1:7.0.0~alpha~),
+ libreoffice-math (<< 1:7.0.0~alpha~),
+ libreoffice-report-builder (<< 1:7.0.0~alpha~),
+ libreoffice-writer (<< 1:7.0.0~alpha~),
Replaces: libreoffice-avmedia-backend-gstreamer,
libreoffice-common (<< 1:6.3.0~rc1~),
libreoffice-core-nogui,
diff -Nru debian/control.in debian/control.in
--- debian/control.in 2021-11-04 09:22:24.000000000 -0600
+++ debian/control.in 2021-12-31 22:01:21.745375084 -0600
@@ -238,6 +238,15 @@
libreoffice-avmedia-backend-gstreamer (<< ${binary:Version})
Suggests: ${gstreamer-plugins-suggests}
Conflicts: libreoffice-filter-binfilter, libreoffice-avmedia-backend-vlc, libreoffice-mysql-connector (<< 1:6.2.0~), libreoffice-core-nogui
+# for bullseye, copied from libreoffice-common, see #985297
+ ,
+ libreoffice-base (<< 1:7.0.0~alpha~),
+ libreoffice-calc (<< 1:7.0.0~alpha~),
+ libreoffice-draw (<< 1:7.0.0~alpha~),
+ libreoffice-impress (<< 1:7.0.0~alpha~),
+ libreoffice-math (<< 1:7.0.0~alpha~),
+ libreoffice-report-builder (<< 1:7.0.0~alpha~),
+ libreoffice-writer (<< 1:7.0.0~alpha~),
Replaces: libreoffice-pdfimport (<< 1:5.4~), libreoffice-common (<< 1:6.3.0~rc1~), libreoffice-avmedia-backend-gstreamer, libreoffice-core-nogui
Description: office productivity suite -- arch-dependent files
LibreOffice is a full-featured office productivity suite that provides
diff -Nru debian/libreoffice-common.maintscript debian/libreoffice-common.maintscript
--- debian/libreoffice-common.maintscript 2021-11-04 09:22:24.000000000 -0600
+++ debian/libreoffice-common.maintscript 2021-12-31 22:03:27.590985432 -0600
@@ -2,4 +2,10 @@
mv_conffile /etc/apparmor.d/usr.lib.libreofficeprogram.senddoc /etc/apparmor.d/usr.lib.libreoffice.program.senddoc 1:5.4.4-0ubuntu1
mv_conffile /etc/apparmor.d/usr.lib.libreofficeprogram.soffice.bin /etc/apparmor.d/usr.lib.libreoffice.program.soffice.bin 1:5.4.4-0ubuntu1
mv_conffile /etc/apparmor.d/usr.lib.libreofficeprogram.xpdfimport /etc/apparmor.d/usr.lib.libreoffice.program.xpdfimport 1:5.4.4-0ubuntu1
-dir_to_symlink /usr/lib/libreoffice/share/registry /etc/libreoffice/registry 1:7.0.2-0ubuntu1
+
+# do this manually since dpkg-maintscript-helper dir_to_symlink
+# does not work reliably in this case because we cannot ensure that all
+# conflicting packages previously shipping files in
+# /usr/lib/libreoffice/share/registry are either upgraded or removed
+# but not just deconfigured, see #985297
+#dir_to_symlink /usr/lib/libreoffice/share/registry /etc/libreoffice/registry 1:7.0.2~rc1-1
diff -Nru debian/libreoffice-common.postinst.in debian/libreoffice-common.postinst.in
--- debian/libreoffice-common.postinst.in 2021-11-04 09:22:24.000000000 -0600
+++ debian/libreoffice-common.postinst.in 2021-12-31 22:04:25.639726958 -0600
@@ -27,3 +27,17 @@
#DEBHELPER#
+# do this manually since dpkg-maintscript-helper dir_to_symlink
+# does not work reliably in this case because we cannot ensure that all
+# conflicting packages previously shipping files in
+# /usr/lib/libreoffice/share/registry are either upgraded or removed
+# but not just deconfigured, see #985297
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "1:7.0.4-4~" ; then
+ if [ ! -L /usr/lib/libreoffice/share/registry ]; then
+ if [ -d /usr/lib/libreoffice/share/registry ]; then
+ # this will fail if the directory is not yet empty
+ rmdir -v /usr/lib/libreoffice/share/registry
+ fi
+ ln -sfvT /etc/libreoffice/registry /usr/lib/libreoffice/share/registry
+ fi
+fi
This diff is collapsed.
Click to expand it.
helpers/make-libreoffice
+
5
−
2
View file @
644e6345
...
...
@@ -17,8 +17,8 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION
=
3
EXTERNAL
=
'deb-src http://
ppa.launchpad.net/libreoffice/libreoffice-still/ubuntu $UPSTREAM main
'
VERSION
=
4
EXTERNAL
=
'deb-src http://
archive.ubuntu.com/ubuntu $UPSTREAM-backports main universe
'
REPOKEY
=
"83FBA1751378B444"
.
./config
...
...
@@ -26,6 +26,9 @@ REPOKEY="83FBA1751378B444"
# Make sure that Trisquel gets compiled same as Ubuntu
patch
-p0
<
$DATA
/debian-rules.patch
#Fix upgrade conflict etiona/nabia libreoffice.
patch
-p0
<
$DATA
/fix_upgrade_buster-bullseye_985297.patch
changelog
"Backported to get latest version into Trisquel"
compile
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment