WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: icu67-dev and icu70-dev reverse dependencies  (Read 2695 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
icu67-dev and icu70-dev reverse dependencies
« on: November 26, 2023, 04:50:59 PM »
I noticed that  icu67-dev.tcz  and  icu70-dev.tcz  were recently removed from the TCL14 x86_64 repository. However, some  .dep  files still contain these extensions, which is causing breakage:
Code: [Select]
$ depends-on.sh icu67-dev
boost-1.74-dev.tcz
js52-dev.tcz
js78-dev.tcz
raptor-dev.tcz
$ depends-on.sh icu70-dev
boost-1.78-dev.tcz
harfbuzz-icu-dev.tcz
libical3-dev.tcz
tracker3-dev.tcz
What would be the most appropriate fix? To replace every occurrence of  icu67-dev.tcz  and  icu70-dev.tcz  in  .dep  files with  icu74-dev.tcz?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #1 on: November 26, 2023, 05:20:06 PM »
Hi GNUser
While  icu67.tcz  and  icu70.tcz  are still present, I suspect the
dev extensions were removed so the older versions are not
used when building extensions.

It's likely the entries in those  .dep  files should be changed
to  icu74-dev.tcz.

Repo update will be complete in a few minutes.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #2 on: November 26, 2023, 05:39:12 PM »
Hi GNUser
This may be more involved than i thought.
The following still depend on  icu67.tcz
because the non-dev versions depend on it:
Code: [Select]
js52-dev.tcz
js78-dev.tcz
raptor-dev.tcz

The following still depend on  icu70.tcz
because the non-dev versions depend on it:
Code: [Select]
boost-1.78-dev.tcz
harfbuzz-icu-dev.tcz
libical3-dev.tcz
tracker3-dev.tcz

We'll have to wait for Juanitos input.
« Last Edit: November 26, 2023, 08:47:32 PM by Rich »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #3 on: November 26, 2023, 05:46:40 PM »
Sounds good, Rich. I figured my naive first thought might not be the definitive fix. I just wanted to alert you guys to the problem.
« Last Edit: November 26, 2023, 05:50:03 PM by GNUser »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #4 on: November 26, 2023, 09:11:11 PM »
Hi GNUser
This may be more involved than i thought.
The following still depend on  icu67.tcz
because the non-dev versions depend on it:
Code: [Select]
js52-dev.tcz
...
Hi Rich. I've been thinking about this situation. I think it's fine.

I just randomly chose  js52-dev.tcz  for a thought experiment, but it could have been any of the others. Let's say I load  js52-dev.tcz  because I'm trying to build some application foo. When I load  js52-dev.tcz  , js52-dev's entire dependency tree is loaded. Its dependency tree looks like this:

Code: [Select]
$ deptree js52-dev
-----js52-dev.tcz
     |-----js52.tcz
     |     |-----nspr.tcz
     |     |-----readline.tcz
     |     |     |-----ncursesw.tcz
     |     |-----icu67.tcz
     |-----nspr-dev.tcz
     |     |-----nspr.tcz
     |-----readline-dev.tcz
     |     |-----readline.tcz
     |     |     |-----ncursesw.tcz
     |     |-----ncursesw-dev.tcz
     |     |     |-----ncursesw.tcz
     |-----icu74-dev.tcz
     |     |-----icu74-bin.tcz
     |     |     |-----icu74.tcz
So we have a situation where icu67, icu74, and icu74-dev are all loaded. Application foo will be linked against icu74 because that's what the header files in icu74-dev tell the compiler to do. But presumably foo is also being linked against js52 (which depends on icu67). So in this situation, both icu74 and icu67 will end up in foo's dependency tree. It's messy but will work because icu67 and icu74 do not clobber each other and can both be loaded on the same system.

So in theory at least there is no problem. But experience is better than theory, so Juanito's assessment will be valuable. I'm sure he has dealt with this exact issue (given number of icu versions in repository) or something similar before.
« Last Edit: November 26, 2023, 09:23:17 PM by GNUser »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #5 on: November 26, 2023, 09:33:47 PM »
Hi GNUser
I noticed it because I checked those extensions using the
Apps utility under TC14 x86_64. The  Size  tab shows all
of the dependencies.

I just don't know whether  js52.tcz  being linked to  icu67.tcz
will cause any problems when building against  js52-dev.tcz.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #6 on: November 26, 2023, 09:36:22 PM »
I just don't know whether  js52.tcz  being linked to  icu67.tcz
will cause any problems when building against  js52-dev.tcz.
Hi Rich. Honestly, me neither.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #7 on: November 27, 2023, 04:56:01 AM »
There's no obvious easy solution to this.

I'm loathe to break the repo by removing, for example, icu67-dev, but if it is left in place and gets loaded before, for example, icu74-dev, it will not be overridden leading to the incorrect headers being used to compile against icu74.

On the other hand, if, for example, icu67-dev is not loaded even though, for example, js52 might have been built against icu67, it does not seem to cause problems as long as icu67 is present. Note that libicu*.so have been removed from icu67 and icu70 to avoid linking against them.

The above would tend to suggest we either remove references to icu{67, 70}-dev in dep files or put icu{67, 70}-dev back in the repo and hope users take care.

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 179
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #8 on: November 27, 2023, 07:21:01 AM »
I noticed that  icu67-dev.tcz  and  icu70-dev.tcz  were recently removed from the TCL14 x86_64 repository. However, some  .dep  files still contain these extensions, which is causing breakage:
Code: [Select]
$ depends-on.sh icu67-dev
boost-1.74-dev.tcz
js52-dev.tcz
js78-dev.tcz
raptor-dev.tcz
$ depends-on.sh icu70-dev
boost-1.78-dev.tcz
harfbuzz-icu-dev.tcz
libical3-dev.tcz
tracker3-dev.tcz
What would be the most appropriate fix? To replace every occurrence of  icu67-dev.tcz  and  icu70-dev.tcz  in  .dep  files with  icu74-dev.tcz?
o que  precisa do js52?
parece apropriado recompilar tudo do repositório para icu74

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #9 on: November 27, 2023, 08:34:23 AM »
Hi Juanito
... The above would tend to suggest we either remove references to icu{67, 70}-dev in dep files or ...
To be clear, just remove the references or replace them with  icu74-dev.tcz ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #10 on: November 27, 2023, 08:36:51 AM »
..just remove the references

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #11 on: November 27, 2023, 08:56:59 AM »
Hi Juanito
OK, I'll take care of it.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #12 on: November 27, 2023, 09:17:09 AM »
Thanks  :)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #13 on: November 27, 2023, 09:24:11 AM »
..just remove the references
Hi Juanito. That was an interesting solution. I was going to suggest replacing icu67-dev.tcz (for example) with both icu74-dev.tcz and icu67.tcz. This change would be extremely unlikely to cause breakage.

The only option that seems suboptimal would be to keep every icu*-dev version and rely on user to know that icu74-dev needs to be loaded first if more than one is being loaded. If repo were to have even a small handful of such special cases, it would be very complex to use.


Hi CardealRusso. I will answer in English as Rich has requested. To find which extensions need foo, you can run depends-on.sh foo. Currently, it seems only js52-dev depends on js52.
« Last Edit: November 27, 2023, 09:28:49 AM by GNUser »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
Re: icu67-dev and icu70-dev reverse dependencies
« Reply #14 on: November 27, 2023, 10:02:21 AM »
Juanito, can you give this Padawan a clue as to how completely removing the references will not cause breakage? :)