Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does devel/llvm show version 90? #520

Closed
dlangille opened this issue Dec 23, 2023 · 3 comments
Closed

Why does devel/llvm show version 90? #520

dlangille opened this issue Dec 23, 2023 · 3 comments

Comments

@dlangille
Copy link
Contributor

          > I found some odd version numbers for https://dev.freshports.org/devel/llvm/ . Odd in the sense of being really old.

The following list "90" (meaning 9.0 back then) . . . FreeBSD:12:armv6 quarterly FreeBSD:12:armv7 quarterly FreeBSD:13:armv6 latest FreeBSD:13:powerpc64 latest

The repo dates listed in the hover-text go back in 2020-Dec and 2021-Jan.

FYI: devel/llvm90 was "removed" in git back in 2023-Jan:

author Tobias C. Berner [email protected] 2023-01-04 11:03:44 +0000 committer Tobias C. Berner [email protected] 2023-01-14 23:14:56 +0000 commit 21778d8958f518e2179b1053d75cfb6c71405558 (patch) . . . Cleanup: Remove devel/llvm[789]0 * remove old devel/llvm70 * remove old devel/llvm80 * remove old devel/llvm90

  • remove ports explicitely depending on either of the three

Removing devel/llvm90 from git does not destroy the repo. It still exists. It still contains version 90.

But:

[18:16 dev-ingress01 dan ~/tmp/package-importing] % fetch https://pkg.freebsd.org/FreeBSD:12:armv6/latest/packagesite.txz 
packagesite.txz                                       5572 kB 8941 kBps    00s
[18:29 dev-ingress01 dan ~/tmp/package-importing] % time jq -rc '[1, .origin, .name, .version] | @tsv' < packagesite.yaml | > packagesite.csv
jq -rc '[1, .origin, .name, .version] | @tsv' < packagesite.yaml  0.83s user 0.04s system 99% cpu 0.872 total
 > packagesite.csv  0.00s user 0.01s system 0% cpu 0.871 total
[18:29 dev-ingress01 dan ~/tmp/package-importing] % grep devel/llvm packagesite.csv
1	devel/llvm70	llvm70	7.0.0
1	devel/llvm60	llvm60	6.0.1_2
1	devel/llvm50	llvm50	5.0.2_1
1	devel/llvm40	llvm40	4.0.1_10
[18:29 dev-ingress01 dan ~/tmp/package-importing] % 

I don't see a 90 in there.

Checking the database, it's in there:

freshports.dev=# select * from packages where package_name = 'llvm';
   id    | abi_id | package_set | package_name | package_version | port_id 
---------+--------+-------------+--------------+-----------------+---------
 4031937 |      9 | quarterly   | llvm         | 15,1            |   16597
 4064717 |      1 | latest      | llvm         | 15,1            |   16597
 4098555 |      1 | quarterly   | llvm         | 15,1            |   16597
 4155229 |     15 | quarterly   | llvm         | 90              |   16597
 4178001 |     16 | quarterly   | llvm         | 90              |   16597
 4185659 |      8 | latest      | llvm         | 15,1            |   16597

Originally posted by @dlangille in #511 (comment)

@dlangille
Copy link
Contributor Author

So such package. No such version.

Any more.

freshports.dev=# select * from packages_raw where package_origin = 'devel/llvm';
 id | package_origin | package_name | package_version | abi | abi_id | port_id | package_set 
----+----------------+--------------+-----------------+-----+--------+---------+-------------
(0 rows)

freshports.dev=# select * from packages_raw where package_version = '90';
 id | package_origin | package_name | package_version | abi | abi_id | port_id | package_set 
----+----------------+--------------+-----------------+-----+--------+---------+-------------
(0 rows)

freshports.dev=# 

@dlangille
Copy link
Contributor Author

The package information is correct. In this example, the information is downloaded, extracted, and grep'd. There is a version 90:

[18:16 dev-ingress01 dan ~/tmp/package-importing] % fetch https://pkg.freebsd.org/FreeBSD:12:armv6/quarterly/packagesite.txz           

packagesite.txz                                       5224 kB 7077 kBps    01s
[18:21 dev-ingress01 dan ~/tmp/package-importing] % tar -xzf packagesite.txz                                                                 
[18:21 dev-ingress01 dan ~/tmp/package-importing] % time jq -rc '[1, .origin, .name, .version] | @tsv' < packagesite.yaml | > packagesite.csv
jq -rc '[1, .origin, .name, .version] | @tsv' < packagesite.yaml  0.81s user 0.00s system 99% cpu 0.809 total
 > packagesite.csv  0.00s user 0.01s system 0% cpu 0.808 total
[18:21 dev-ingress01 dan ~/tmp/package-importing] % grep llvm packagesite.csv                                                                
1	devel/py-llvmlite	py27-llvmlite	0.31.0
1	devel/py-llvmcpy	py27-llvmcpy	0.1.5_1
1	devel/xtoolchain-llvm90	xtoolchain-llvm90	0.2
1	devel/xtoolchain-llvm80	xtoolchain-llvm80	0.1
1	devel/py-llvmlite	py37-llvmlite	0.31.0
1	devel/py-llvmcpy	py37-llvmcpy	0.1.5_1
1	devel/spirv-llvm-translator	spirv-llvm-translator	10.0.0
1	devel/llvm90	llvm90	9.0.1_2
1	devel/llvm80	llvm80	8.0.1_4
1	devel/llvm70	llvm70	7.0.1_4
1	devel/llvm60	llvm60	6.0.1_7
1	devel/llvm11	llvm11	11.0.0
1	devel/llvm10	llvm10	10.0.1_2
1	devel/llvm	llvm	90

Going back to the .yaml file, I ran it through less looking for the original data. I found it. I have added newlines into the output to make it wrap nicely here.

{"name":"llvm","origin":"devel/llvm","version":"90","comment":"Meta-port for the default version of the LLVM Toolchain",
"maintainer":"[email protected]","www":"http://llvm.org/","abi":"FreeBSD:12:*","arch":"freebsd:12:*","prefix":"/usr/local",
"sum":"98052068d70c4870d1174b61a6a6dff07d00ebf95f1948d03aef1cbcbe994a0e","flatsize":2870,
"path":"All/llvm-90.txz","repopath":"All/llvm-90.txz","licenselogic":"single","licenses":["BSD2CLAUSE"],"pkgsize":6812,
"desc":"The LLVM Project is a collection of modular and reusable compiler and\ntoolchain technologies.\n\nThis port 
includes Clang (a C/C++/Objective-C compiler), LLD (a linker),\nLLDB (a debugger), and the LLVM infrastructure these are 
built on.\n\nPorts developers: do not depend on this port from other ports.\n\nWWW: http://llvm.org/",
"deps":{"llvm90":{"origin":"devel/llvm90","version":"9.0.1_2"}},"categories":["devel","lang"],
"options":{"CLANG":"on","EXTRAS":"on","LIT":"on","LLD":"on","LLDB":"on"}}

@dlangille
Copy link
Contributor Author

I think we're good. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant