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

adguardhome: enable legacy openssl provider for nodejs and bump to 0.107.25 #20611

Merged
merged 2 commits into from
Mar 8, 2023

Conversation

dobo90
Copy link
Contributor

@dobo90 dobo90 commented Mar 8, 2023

Maintainer: me
Compile tested: aarch64_generic, NanoPi R2S, OpenWrt SNAPSHOT r22247
Run tested: aarch64_generic, NanoPi R2S, OpenWrt SNAPSHOT r22247

Description:
adguardhome: enable legacy openssl provider for nodejs

Currently compilation fails because of:

  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'

What's interesting package gets built but when trying to access UI there's
404: page not found error.

It has been reported in multiple places:

adguardhome: bump to 0.107.25

Currently compilation fails because of:
```
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
```

What's interesting package gets built but when trying to access UI there's
`404: page not found` error.

It has been reported in multiple places:
* AdguardTeam/AdGuardHome#5559
* AdguardTeam/AdGuardHome#4595

Signed-off-by: Dobroslaw Kijowski <dobo90@gmail.com>
* Full changelog available at:
  * https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.107.25

Signed-off-by: Dobroslaw Kijowski <dobo90@gmail.com>
@@ -56,7 +56,7 @@ endef
define Build/Compile
( \
pushd $(PKG_BUILD_DIR) ; \
make js-deps js-build ; \
NODE_OPTIONS=--openssl-legacy-provider make js-deps js-build ; \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export NODE_OPTIONS=--openssl-legacy-provider ; \
make js-deps js-build ; \

I see they recommend this writing style, and it works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no difference in this case.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make it look more comfortable...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a personal preference. tbh I don't like making local variables global.

@1715173329 1715173329 merged commit a499a40 into openwrt:master Mar 8, 2023
@peterwillcn
Copy link
Contributor

peterwillcn commented Jul 31, 2024

404 fixed:
apt install nodejs npm and recompile adguard

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

Successfully merging this pull request may close these issues.

4 participants