Re: [DNG] Avoid systemd as build dependency
Hi Yevgeny, On 21/4/20 6:54, Yevgeny Kosarzhevsky wrote: Hi Aitor, I wonder why it's in /usr/local while the one I've built went to /usr I didn't do something special for this Have a look at the mk/config.mk file, more concretely the INC_USRLOCAL variable (line nÂș 86), set to: INC_USRLOCAL?=/usr/local This variable is used by other variables afterwards. Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Avoid systemd as build dependency
Hi Aitor, I wonder why it's in /usr/local while the one I've built went to /usr I didn't do something special for this ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Avoid systemd as build dependency
Hi again, Yevgeny: On 19/4/20 22:56, aitor wrote: Hi Yevgeny, On 19/4/20 21:41, Yevgeny Kosarzhevsky wrote: Hi Aitor, I've been able to build base package already (3.31) after removing systemd dependencies with `sed -i '/systemd/d' packaging/debian/control`. I've run `make deb` and it's built deb package successfully on beowulf. The only thing I needed is to manually add init script. Here you are my packaging for devuan beowulf: http://gnuinos.org/libreswan/?dir= pay attention to the attached libreswan.build file, and look at the warnings and errors thrown by lintian. Most of them related with all the content located in /usr/local. If i didn't override dh_usrlocal, i got an error while packaging the manpages. I can replace "programs" by "base" in mk/targets.mk, but there are more files located in /usr/local, as you can see in the messages thrown by lintian. I am wondering what is the proper way of removing systemd dependency from base source as upstream adds it by some needs. Do you think making pre-install hook is the best way to do init system checks instead of running systemd things at a build time? Or is there any other better way to remove*systemd* from build-deps? You must replace "dh $@ --with systemd" by "dh $@" in debian/rules. This is my first attempt, and hope this helps :) Cheers, Aitor. This is the result defining a new target in mk/targets.mk like: minimal: base and replacing "$(MAKE) programs [...]" by "$(MAKE) minimal [...]" in the "override_dh_auto-build" target of debian/rules. http://gnuinos.org/libreswan/?dir=base-install Regards, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Avoid systemd as build dependency
Hi Yevgeny, On 19/4/20 21:41, Yevgeny Kosarzhevsky wrote: Hi Aitor, I've been able to build base package already (3.31) after removing systemd dependencies with `sed -i '/systemd/d' packaging/debian/control`. I've run `make deb` and it's built deb package successfully on beowulf. The only thing I needed is to manually add init script. Here you are my packaging for devuan beowulf: http://gnuinos.org/libreswan/?dir= pay attention to the attached libreswan.build file, and look at the warnings and errors thrown by lintian. Most of them related with all the content located in /usr/local. If i didn't override dh_usrlocal, i got an error while packaging the manpages. I can replace "programs" by "base" in mk/targets.mk, but there are more files located in /usr/local, as you can see in the messages thrown by lintian. I am wondering what is the proper way of removing systemd dependency from base source as upstream adds it by some needs. Do you think making pre-install hook is the best way to do init system checks instead of running systemd things at a build time? Or is there any other better way to remove*systemd* from build-deps? You must replace "dh $@ --with systemd" by "dh $@" in debian/rules. This is my first attempt, and hope this helps :) Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Avoid systemd as build dependency
Hi Aitor, I've been able to build base package already (3.31) after removing systemd dependencies with `sed -i '/systemd/d' packaging/debian/control`. I've run `make deb` and it's built deb package successfully on beowulf. The only thing I needed is to manually add init script. I am wondering what is the proper way of removing systemd dependency from base source as upstream adds it by some needs. Do you think making pre-install hook is the best way to do init system checks instead of running systemd things at a build time? Or is there any other better way to remove *systemd* from build-deps? On Sun, 19 Apr 2020 at 21:15, aitor wrote: > > Hi Yevgeny, > > On 19/4/20 16:49, Yevgeny Kosarzhevsky via Dng wrote: > > Hi community. > > could someone point out the proper way of avoiding systemd build dependency? > > I find some packages require it at build time. > https://github.com/libreswan/libreswan/issues/328 for example. > > It builds fine without it, however debian maintainers need it for their > reasons. > > The debian branch is very well done: > > https://github.com/libreswan/libreswan/tree/master/packaging/debian > > After removing all the stuff related with systemd, my first attempt failed > because dh_usrlocal must be overridden, i guess (this issue has nothing to do > with systemd). > On the other hand, i added another dependency to debian/control: > *libdistro-info-perl*, > even not being mandatory, in order to avoid a warning when using "gbp dch" > for the changelog. > Give me a couple of hours, and i'll give you a link to the packages. > I'm under devuan beowulf, and i'm working with the latest release 3.31 > instead of the master branch. > > Cheers, > > Aitor. > > > ___ > Dng mailing list > Dng@lists.dyne.org > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng -- Regards, Yevgeny ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Avoid systemd as build dependency
Hi Yevgeny, On 19/4/20 16:49, Yevgeny Kosarzhevsky via Dng wrote: Hi community. could someone point out the proper way of avoiding systemd build dependency? I find some packages require it at build time. https://github.com/libreswan/libreswan/issues/328 for example. It builds fine without it, however debian maintainers need it for their reasons. The debian branch is very well done: https://github.com/libreswan/libreswan/tree/master/packaging/debian After removing all the stuff related with systemd, my first attempt failed because dh_usrlocal must be overridden, i guess (this issue has nothing to do with systemd). On the other hand, i added another dependency to debian/control: *libdistro-info-perl*, even not being mandatory, in order to avoid a warning when using "gbp dch" for the changelog. Give me a couple of hours, and i'll give you a link to the packages. I'm under devuan beowulf, and i'm working with the latest release 3.31 instead of the master branch. Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] Avoid systemd as build dependency
Hi community. could someone point out the proper way of avoiding systemd build dependency? I find some packages require it at build time. https://github.com/libreswan/libreswan/issues/328 for example. It builds fine without it, however debian maintainers need it for their reasons. -- Regards, Yevgeny ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng