[PATCH] ca-certificated: use relative symlink for cert.pem

Rosen Penev rosenp at gmail.com
Tue Dec 22 05:21:15 EST 2020


On Tue, Dec 22, 2020 at 2:18 AM Petr Štetiar <ynezz at true.cz> wrote:
>
> Rosen Penev <rosenp at gmail.com> [2020-12-19 19:11:48]:
>
> Hi,
>
> > Fixes dead symlink under InstallDev.
>
> where is that dead symlink?
It's not on the installed device. It's under InstallDev.

find staging_dir/target-mips_*/root-*/ -xtype l

for more.
>
> root at OpenWrt:/# ls -al /etc/ssl/cert.pem
> lrwxrwxrwx    1 root     root            34 Dec 21 16:53 /etc/ssl/cert.pem -> /etc/ssl/certs/ca-certificates.crt
>
> root at OpenWrt:/# ls -al /etc/ssl/certs/ca-certificates.crt
> -rw-r--r--    1 root     root        198416 Dec 21 16:53 /etc/ssl/certs/ca-certificates.crt
>
> root at OpenWrt:/# cat /etc/openwrt_version
> r15252+5-20d847d1338f
>
> > Signed-off-by: Rosen Penev <rosenp at gmail.com>
> > ---
> >  package/system/ca-certificates/Makefile | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/package/system/ca-certificates/Makefile b/package/system/ca-certificates/Makefile
> > index ca3756b34d..62a7d57e85 100644
> > --- a/package/system/ca-certificates/Makefile
> > +++ b/package/system/ca-certificates/Makefile
> > @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
> >
> >  PKG_NAME:=ca-certificates
> >  PKG_VERSION:=20200601
> > -PKG_RELEASE:=1
> > +PKG_RELEASE:=2
> >  PKG_MAINTAINER:=
> >
> >  PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
> > @@ -65,7 +65,7 @@ endef
> >  define Package/ca-bundle/install
> >       $(INSTALL_DIR) $(1)/etc/ssl/certs
> >       cat $(PKG_INSTALL_DIR)/usr/share/ca-certificates/*/*.crt >$(1)/etc/ssl/certs/ca-certificates.crt
> > -     $(LN) /etc/ssl/certs/ca-certificates.crt $(1)/etc/ssl/cert.pem
> > +     $(LN) certs/ca-certificates.crt $(1)/etc/ssl/cert.pem
> >  endef
> >  $(eval $(call BuildPackage,ca-bundle))
> >  $(eval $(call BuildPackage,ca-certificates))
> > --
> > 2.29.2
> >
> >
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel at lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> >
>
> --
> ynezz



More information about the openwrt-devel mailing list