Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#8427 closed defect (fixed)

VTE-0.46.0 needs PCRE2-10.22

Reported by: Tim Tassonis Owned by: Douglas R. Reno
Priority: low Milestone: 8.0
Component: BOOK Version: SVN
Severity: trivial Keywords:
Cc:

Description

When building vte-0.46.0, I learnt that it needs pcre2, which is not listed as a dependency. As pcre2 is not included in lfs and is also not a dependency of the required gtk3 or libxml2, the build will fail.

Attachments (2)

glib_pcre2.patch (599 bytes ) - added by Samuel 8 years ago.
Patch for depenency
vte_pcre2_dependency.patch (531 bytes ) - added by Samuel 8 years ago.

Download all attachments as: .zip

Change History (20)

comment:1 by Douglas R. Reno, 8 years ago

Owner: changed from blfs-book@… to Douglas R. Reno
Status: newassigned

Sorry about that. I'll fix it.

Although - Guys, should we add PCRE2 as a dependency to Glib? That would knock it out early on and remove the hassle of having it mentioned in multiple pages.

I'm sure other packages (including those non-GNOME related) will start using it soon, or are already capable of it.

comment:2 by bdubbs@…, 8 years ago

Well we don't have PCRE2 mentioned at all as a part of glib.

Checking configure, PCRE2 is not mentioned. (Also --with-pcre=[internal/system] [default=system] so we can remove that).

PCRE_REQUIRED_VERSION=8.13

So no, PCRE2 is not a dependency to Glib.

comment:3 by Douglas R. Reno, 8 years ago

Samuel, would you like to make a patch for this one? It would be a very trivial task, and a nice start.

comment:4 by Samuel, 8 years ago

Ok, I'll try tonight, but I won't be able to test it. I have a lot of schoolwork.

comment:5 by Samuel, 8 years ago

Should I create instructions for PCRE2?

comment:6 by Douglas R. Reno, 8 years ago

We've got them already. All you have to do is add an xref to "pcre2"

comment:7 by Samuel, 8 years ago

Ok.

comment:8 by Samuel, 8 years ago

Is it a required, recommended or optional, or an optional if building vte?

comment:9 by Samuel, 8 years ago

Ok, I have nearly finished, I am just checking the html looks good.

by Samuel, 8 years ago

Attachment: glib_pcre2.patch added

Patch for depenency

comment:10 by Samuel, 8 years ago

I have added the patch as an attachment and will post the patch on blfs-dev.

comment:11 by Samuel, 8 years ago

Once someone approves this patch, I'll close this ticket.

comment:12 by Pierre Labastie, 8 years ago

As far as I understand this thread, the patch should be for vte and not for glib... At least, pcre2 is not a required dependency of glib (i.e. the glib package can be built and run without it). It may be recommended, though, but then, all the packages dependent on glib should be checked to see whether they can use pcre2. If not, then pcre has to be added as a dependency of that package.

I'd suggest that for now on, we keep pcre as recommended for glib, and that packages needing really pcre2 be patched to have it as a dependency. Then, when a vast majority of packages can use pcre2, change our mind and recommend it for glib. Note that since there is a bundled version of pcre in glib, pcre is never a required dep, only recommended.

comment:13 by Tim Tassonis, 8 years ago

I can confirm this is wrong. I built glib without pcre2 without problems and according to Bruce (comment 2), glib doesn't even compile/link against pcre2, but only against pcre. vte however unconditionally needs pcre2.

comment:14 by Samuel, 8 years ago

Sorry. I'll patch vte with a required depencency on pcre2, and if you want I'll patch glib with a recommended dependency on pcre2.

comment:15 by Samuel, 8 years ago

I will post the new patch on blfs-dev and attach it here. I can't figure out how to delete the old patch, so can someone do that for me. I created the patch using svn diff and tested applying the patch with patch -p0 -i ../vte_pcre2_dependency.patch.

by Samuel, 8 years ago

Attachment: vte_pcre2_dependency.patch added

comment:16 by Samuel, 8 years ago

Thanks to Pierre for pointing out that I had not used the template.xml guidelines. I now have and will post the new patch on blfs-dev.

comment:17 by Douglas R. Reno, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed by pierre (applying Samuel's patch) at r17893.

comment:18 by bdubbs@…, 7 years ago

Milestone: 7.118.0

Milestone renamed

Note: See TracTickets for help on using tickets.