From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: [PATCH 2/2] perl-JSON: Installation of new package required by samba Date: Mon, 12 Sep 2022 22:08:19 +0200 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0350547975388494248==" List-Id: --===============0350547975388494248== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Leo, On 12/09/2022 19:49, Leo-Andres Hofmann wrote: > Hi Adolf, >=20 > I'm thinking about using Perl JSON in a CGI. Did I unterstand correctly=20 > that JSON is now available system wide by default? That would be great=20 > news :) I am afraid not. It is a dependency for the samba addon and so is only=20 installed when samba is installed. It would be available as a build only dependency but it sounds like you=20 need it in execution phase of the CGI. You can just change the perl-JSON from a package rootfile to a common=20 rootfile and update the lfs file to remove all the addon stuff and=20 remove perl-JSON as a dependency. That would make perl-JSON a core=20 program and it would then be available both for your CGI and also for=20 samba, when it is installed. Regards, Adolf. >=20 > Best regards > Leo >=20 > Am 21.04.2022 um 09:51 schrieb Adolf Belka: >> - Installation of lfs and rootfile for perl-JSON - required by=20 >> samba-4.16.0 >> >> Signed-off-by: Adolf Belka >> --- >> =C2=A0 config/rootfiles/packages/perl-JSON | 14 +++++ >> =C2=A0 lfs/perl-JSON=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 | 88 +++++++++++++++++++++++++++++ >> =C2=A0 make.sh=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 1 + >> =C2=A0 3 files changed, 103 insertions(+) >> =C2=A0 create mode 100644 config/rootfiles/packages/perl-JSON >> =C2=A0 create mode 100644 lfs/perl-JSON >> >> diff --git a/config/rootfiles/packages/perl-JSON=20 >> b/config/rootfiles/packages/perl-JSON >> new file mode 100644 >> index 000000000..e6c4dbb94 >> --- /dev/null >> +++ b/config/rootfiles/packages/perl-JSON >> @@ -0,0 +1,14 @@ >> +#usr/lib/perl5/site_perl/5.32.1/JSON >> +usr/lib/perl5/site_perl/5.32.1/JSON.pm >> +#usr/lib/perl5/site_perl/5.32.1/JSON/backportPP >> +usr/lib/perl5/site_perl/5.32.1/JSON/backportPP.pm >> +usr/lib/perl5/site_perl/5.32.1/JSON/backportPP/Boolean.pm >> +usr/lib/perl5/site_perl/5.32.1/JSON/backportPP/Compat5005.pm >> +usr/lib/perl5/site_perl/5.32.1/JSON/backportPP/Compat5006.pm >> +#usr/lib/perl5/site_perl/5.32.1/xxxMACHINExxx-linux-thread-multi/auto/JSON >> +#usr/lib/perl5/site_perl/5.32.1/xxxMACHINExxx-linux-thread-multi/auto/JSO= N/.packlist >> +#usr/share/man/man3/JSON.3 >> +#usr/share/man/man3/JSON::backportPP.3 >> +#usr/share/man/man3/JSON::backportPP::Boolean.3 >> +#usr/share/man/man3/JSON::backportPP::Compat5005.3 >> +#usr/share/man/man3/JSON::backportPP::Compat5006.3 >> diff --git a/lfs/perl-JSON b/lfs/perl-JSON >> new file mode 100644 >> index 000000000..796c1f034 >> --- /dev/null >> +++ b/lfs/perl-JSON >> @@ -0,0 +1,88 @@ >> +#########################################################################= ###### >> +#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=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=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 # >> +# This program is free software: you can redistribute it and/or=20 >> modify=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # >> +# it under the terms of the GNU General Public License as published=20 >> by=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # >> +# the Free Software Foundation, either version 3 of the License,=20 >> or=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # >> +# (at your option) any later=20 >> version.=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 # >> +#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 # >> +# This program is distributed in the hope that it will be=20 >> useful,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 # >> +# but WITHOUT ANY WARRANTY; without even the implied warranty=20 >> of=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 # >> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=C2=A0 See=20 >> the=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 # >> +# GNU General Public License for more=20 >> details.=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # >> +#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 # >> +# You should have received a copy of the GNU General Public=20 >> License=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # >> +# along with this program.=C2=A0 If not, see=20 >> .=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # >> +#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 # >> +#########################################################################= ###### >> + >> + >> +#########################################################################= ###### >> +# Definitions >> +#########################################################################= ###### >> +include Config >> + >> +SUMMARY=C2=A0=C2=A0=C2=A0 =3D JSON (JavaScript Object Notation) encoder/d= ecoder >> + >> +VER=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 4.05 >> + >> +THISAPP=C2=A0=C2=A0=C2=A0 =3D JSON-$(VER) >> +DL_FILE=C2=A0=C2=A0=C2=A0 =3D ${THISAPP}.tar.gz >> +DL_FROM=C2=A0=C2=A0=C2=A0 =3D $(URL_IPFIRE) >> +DIR_APP=C2=A0=C2=A0=C2=A0 =3D $(DIR_SRC)/$(THISAPP) >> +TARGET=C2=A0=C2=A0=C2=A0=C2=A0 =3D $(DIR_INFO)/$(THISAPP) >> + >> +PROG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D perl-JSON >> +DEPS=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D >> +PAK_VER=C2=A0=C2=A0=C2=A0 =3D 1 >> + >> +SERVICES=C2=A0=C2=A0 =3D >> + >> +#########################################################################= ###### >> +# Top-level Rules >> +#########################################################################= ###### >> + >> +objects =3D $(DL_FILE) >> + >> +$(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) >> + >> +$(DL_FILE)_BLAKE2 =3D=20 >> 0ecf27b15a780833fe6cb12bece6eaa5a75de92a02f901014105d1435857867d86ccad94e2= 666195fc66ed41f45f8f91061a06b1e5e05f3a332803b46bb4b53e >> + >> +install : $(TARGET) >> + >> +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) >> + >> +download :$(patsubst %,$(DIR_DL)/%,$(objects)) >> + >> +b2 : $(subst %,%_BLAKE2,$(objects)) >> + >> +dist: >> +=C2=A0=C2=A0=C2=A0 @$(PAK) >> + >> +#########################################################################= ###### >> +# Downloading, checking, b2sum >> +#########################################################################= ###### >> + >> +$(patsubst %,$(DIR_CHK)/%,$(objects)) : >> +=C2=A0=C2=A0=C2=A0 @$(CHECK) >> + >> +$(patsubst %,$(DIR_DL)/%,$(objects)) : >> +=C2=A0=C2=A0=C2=A0 @$(LOAD) >> + >> +$(subst %,%_BLAKE2,$(objects)) : >> +=C2=A0=C2=A0=C2=A0 @$(B2SUM) >> + >> +#########################################################################= ###### >> +# Installation Details >> +#########################################################################= ###### >> + >> +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) >> +=C2=A0=C2=A0=C2=A0 @$(PREBUILD) >> +=C2=A0=C2=A0=C2=A0 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_D= L)/$(DL_FILE) >> +=C2=A0=C2=A0=C2=A0 cd $(DIR_APP) && perl Makefile.PL >> +=C2=A0=C2=A0=C2=A0 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) >> +=C2=A0=C2=A0=C2=A0 cd $(DIR_APP) && make install >> +=C2=A0=C2=A0=C2=A0 @rm -rf $(DIR_APP) >> +=C2=A0=C2=A0=C2=A0 @$(POSTBUILD) >> diff --git a/make.sh b/make.sh >> index 95e6e89db..5d79c803f 100755 >> --- a/make.sh >> +++ b/make.sh >> @@ -1421,6 +1421,7 @@ buildipfire() { >> =C2=A0=C2=A0=C2=A0 lfsmake2 perl-XML-Parser >> =C2=A0=C2=A0=C2=A0 lfsmake2 perl-Crypt-PasswdMD5 >> =C2=A0=C2=A0=C2=A0 lfsmake2 perl-Net-Telnet >> +=C2=A0 lfsmake2 perl-JSON >> =C2=A0=C2=A0=C2=A0 lfsmake2 python3-setuptools >> =C2=A0=C2=A0=C2=A0 lfsmake2 python3-inotify >> =C2=A0=C2=A0=C2=A0 lfsmake2 python3-docutils --=20 Sent from my laptop --===============0350547975388494248==--