LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-12-2020, 07:17 PM   #1
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
glib2-2.66.0 overwrites linuxdoc-tools' gtk-doc


glib2 has been updated in current to glib2-2.66.0. The glib2-2.66.0 slackware package installs its own version of gtk-doc, overwriting gtk-doc as supplied by linuxdoc-tools (gtk-doc-1.32). It clones the gtk-doc git repository and installs the latest version of gtk-doc in git in order to satisfy its dependencies - evidently the version supplied by linuxdoc-tools is not new enough.

If this is to be done, should not linuxdoc-tools be updated instead? More relevantly, are the two versions of gtk-doc compatible - the git version seems intended to support gtk4?
 
Old 09-15-2020, 03:22 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,552

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by chrisVV View Post
glib2 has been updated in current to glib2-2.66.0. The glib2-2.66.0 slackware package installs its own version of gtk-doc, overwriting gtk-doc as supplied by linuxdoc-tools (gtk-doc-1.32). It clones the gtk-doc git repository and installs the latest version of gtk-doc in git in order to satisfy its dependencies - evidently the version supplied by linuxdoc-tools is not new enough.

If this is to be done, should not linuxdoc-tools be updated instead? More relevantly, are the two versions of gtk-doc compatible - the git version seems intended to support gtk4?
Thanks for the report. We'll look into it.
 
Old 09-15-2020, 05:56 AM   #3
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Original Poster
Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
One thing that can be done is for the slackbuild to remove all the gtk-doc stuff in the glib2 slackware package, except the glib2 documentation in /usr/share/gtk-doc/html. The installation of the updated gtk-doc version by the glib2 tarball seems completely unnecessary - it is only needed in order to build the documentation, not to view it.
 
Old 09-15-2020, 06:00 AM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,552

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by chrisVV View Post
One thing that can be done is for the slackbuild to remove all the gtk-doc stuff in the glib2 slackware package, except the glib2 documentation in /usr/share/gtk-doc/html. The installation of the updated gtk-doc version by the glib2 tarball seems completely unnecessary - it is only needed in order to build the documentation, not to view it.
The version of gtk-doc bundled with linuxdoc-tools is also the most recent release, and I've built glib2 without the bundled GTK on ARM: it works fine and seems to have built its documentation without any issues.
 
Old 09-15-2020, 06:23 AM   #5
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Original Poster
Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by drmozes View Post
The version of gtk-doc bundled with linuxdoc-tools is also the most recent release, and I've built glib2 without the bundled GTK on ARM: it works fine and seems to have built its documentation without any issues.
Well whatever, you don't want slackware's gtk-doc installation to be provided by both the linuxdoc-tools and glib2 packages.

The proximate cause of that occuring with slackware's glib-2.66.0 as built for x86 (I cannot speak for ARM) is that glib-2.66.0 does not recognize the gtk-doc version supplied by linuxdoc-tools as the version it requires (you will see that the meson build is looking for gtk-doc version 1.32.1). So if you are right that the gtk-doc version supplied by linuxdoc-tools is sufficiently recent, one solution is to amend its gtk-doc.pc by hand to claim that it is at version 1.32.1. Another option is not to build the glib documentation in the first place (pass -Dgtk_doc=false to meson when building glib-2.66.0). But I should have thought the best solution is to exclude the gtk-doc implementation from slackware's glib2-2.66.0 package by amending the Slackbuild to only include the built html.

I am surprised that building glib-2.66.0 for ARM with linuxdoc-tools builds the documentation without installing a duplicated gtk-doc implementation, whereas the glib-2.66.0 slackware packages for x86/64 do duplicate it. That seems odd. Perhaps your ARM Slackbuild is different from the x86/64 one in the slackware distribution? Or maybe your ARM build is still at glib-2.64.5?

Last edited by chrisVV; 09-15-2020 at 06:30 AM.
 
Old 09-15-2020, 07:50 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,552

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by chrisVV View Post
Another option is not to build the glib documentation in the first place (pass -Dgtk_doc=false to meson when building glib-2.66.0). But I should have thought the best solution is to exclude the gtk-doc implementation from slackware's glib2-2.66.0 package by amending the Slackbuild to only include the built html.
That's what I've done.

Quote:
I am surprised that building glib-2.66.0 for ARM with linuxdoc-tools builds the documentation without installing a duplicated gtk-doc implementation,
I meant that the gtk-doc stuff is now absent from the glib2 package, and that the documentation within the glib2 package seems sufficient.
The bundled gtk-doc in the latest glib2 doesn't build on ARM anyway, and as you say, it shouldn't be within the glib2 package anyway; so I'm calling it good for ARM.
I've raised it with Patrick to see how he wants to fix it for x86/64.
I should have a look at whether the linuxdoc-tools package needs an update soon as well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
colord-1.4.3 requires glib2-2.5.6 or greater but slackware 14.2 only ships with glib2-2.46.2 nimbusdin Slackware 8 08-19-2018 03:43 PM
is sftp supports overwrites files. i need to overwrites the files if already present Rajiv13s Linux - Newbie 3 07-04-2018 05:42 AM
linuxdoc-tools problem when validating docbook 4.5 documents ninikos Slackware 3 02-17-2018 03:40 AM
linuxdoc-tools in -current - .la files removed? Lenard Spencer Slackware 3 07-03-2017 01:55 PM
Slackware64-Current, GnuCash and Linuxdoc-tools kd5zex Slackware 1 02-25-2010 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration