Bug 248604 - How to change the platform id ?
Summary: How to change the platform id ?
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 12.1-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-11 15:02 UTC by Aleks
Modified: 2020-08-20 15:56 UTC (History)
2 users (show)

See Also:


Attachments
error (47.09 KB, image/png)
2020-08-11 15:02 UTC, Aleks
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleks 2020-08-11 15:02:29 UTC
Created attachment 217157 [details]
error

export REPO_OS_OVERRIDE=linux


can not download
https://chromedriver.storage.googleapis.com/index.html?path=85.0.4183.38/



How to change the platform id ( linux ) ?
Comment 1 Gian-Simon Purkert 2020-08-12 09:32:04 UTC
Maybe that's is some help for you:

https://stackoverflow.com/questions/9861830/chromedriver-under-freebsd

>/usr/local/bin/chromedriver is installed by default now when you install chromium by ports (www/chromium)

Then use the ChromeOptions object (binary string):

https://chromedriver.chromium.org/capabilities

And use your locally installed chromedriver

I hope that helps.
Comment 2 Aleks 2020-08-12 10:28:20 UTC
The answer is simply going to the program, it takes the very latest version. And there is no udat.
Comment 3 Gian-Simon Purkert 2020-08-12 14:00:07 UTC
So can you close the ticket?
Comment 4 Aleks 2020-08-12 14:21:06 UTC
Sorry guys, but we need to download actual chrome driver version when we Initialize our test build, but the chrome driver does not support driver for FreeBSD64, and we can not download it
Comment 5 Gian-Simon Purkert 2020-08-14 10:41:00 UTC
1. Why download when its already installed at: /usr/local/bin/chromedriver ?

2. Otherwise you have to ask the People of Google if they can provide a FreeBSD bin (poor chance TBH).

3. You can execute the Linux binary with: Freebsd https://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html

3a. Or something really crazy...the Windows binary with Wine
Comment 6 Aleks 2020-08-14 11:56:21 UTC
This is done ((. The system will check which one OS pumping.
Comment 7 Gian-Simon Purkert 2020-08-14 14:02:16 UTC
Sorry but it's really not enough Information, and for sure not a Problem of the base system.

No one knows what a test this is.

But maybe that's hint:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent

and change

Mozilla/5.0 (X11; FreeBSD amd64; rv:79.0) Gecko/20100101 Firefox/79.0

to

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36

for example?
Comment 8 Gian-Simon Purkert 2020-08-16 17:36:15 UTC
I think we can close this "bug"
Comment 9 Aleks 2020-08-17 13:26:10 UTC
Maybe then just kill Freebsd. so so I can’t test programs, write programs Jenkins
Comment 10 Gian-Simon Purkert 2020-08-17 14:02:49 UTC
Maybe you should start from the begining and realize that there is no such thing like a 'plattform-id', but a browser User-Agent, and if you dont't know what a Browser-User-Agent is, you should probably NOT do any Web-frontend programming at all. 

Have a good start in your working Week,

Cheers
Comment 11 Mark Johnston freebsd_committer 2020-08-20 15:56:20 UTC
Indeed, this is not a base system bug.