mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] ISC DHCP 4.3.6-P1
@ 2018-04-26  8:14 Jakov Simunic
  2018-04-27 10:22 ` Roland Hieber
  0 siblings, 1 reply; 2+ messages in thread
From: Jakov Simunic @ 2018-04-26  8:14 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1589 bytes --]

Hello,

we are using ISC DHCP in our ptxdist project and I have the task to upgrade it from the currently used version 4.1-ESV-R10 to the newer 4.3.6-P1 version. Much has changed in the build of the ISC DHCP from the last used version in our project, and since we are cross compiling from our build server (x86_64) to the targets (one target is a 32 bit PowerPC architecture and the other is a 32 bit ARM target) we need the cross compilation to work properly. The build always fails due to the improper setting of the BUILD_CC and CC environment variables which are required to build a rule called gen in the dhcp-4.3.6-P1/bind/bind-9.9.11-P1/export/dns/Makefile (that rule builds some stuff using the host compiler set through the BUILD_CC environment variable), I have tried to set those variables through the ptxdist/rules/dhcp.make file (adding those environment variables to the DHCP_ENV variable), that doesn't work. Also I have tried to set them through the ptxdist/patches (tried to patch the dhcp-4.3.6-P1/Makefile.in and the dhcp-4.3.6-P1/bind/Makefile.in) the patches get applied and the Makefile prints out the correct compilers, but it still fails in the same gen rule with the same error saying that the BUILD_CC environment variable isn't set. Tried to cross compile it outside of ptxdist on an Debian machine and it finishes normally, so I think that something inside of ptxdist is causing the error.

Could you offer any help/advice/suggestions on this matter, any help would be greatly appreciated?

Thank you


--
Lijep pozdrav / Kind Regards
Jakov Šimunić

[-- Attachment #1.2: Type: text/html, Size: 3833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] ISC DHCP 4.3.6-P1
  2018-04-26  8:14 [ptxdist] ISC DHCP 4.3.6-P1 Jakov Simunic
@ 2018-04-27 10:22 ` Roland Hieber
  0 siblings, 0 replies; 2+ messages in thread
From: Roland Hieber @ 2018-04-27 10:22 UTC (permalink / raw)
  To: Jakov Simunic; +Cc: ptxdist

Hi,

On Thu, Apr 26, 2018 at 08:14:03AM +0000, Jakov Simunic wrote:
> Hello,
> 
> we are using ISC DHCP in our ptxdist project and I have the task to
> upgrade it from the currently used version 4.1-ESV-R10 to the newer
> 4.3.6-P1 version. Much has changed in the build of the ISC DHCP from
> the last used version in our project, and since we are cross compiling
> from our build server (x86_64) to the targets (one target is a 32 bit
> PowerPC architecture and the other is a 32 bit ARM target) we need the
> cross compilation to work properly. The build always fails due to the
> improper setting of the BUILD_CC and CC environment variables which
> are required to build a rule called gen in the
> dhcp-4.3.6-P1/bind/bind-9.9.11-P1/export/dns/Makefile (that rule
> builds some stuff using the host compiler set through the BUILD_CC
> environment variable), I have tried to set those variables through the
> ptxdist/rules/dhcp.make file (adding those environment variables to
> the DHCP_ENV variable), that doesn't work. Also I have tried to set
> them through the ptxdist/patches (tried to patch the
> dhcp-4.3.6-P1/Makefile.in and the dhcp-4.3.6-P1/bind/Makefile.in) the
> patches get applied and the Makefile prints out the correct compilers,
> but it still fails in the same gen rule with the same error saying
> that the BUILD_CC environment variable isn't set. Tried to cross
> compile it outside of ptxdist on an Debian machine and it finishes
> normally, so I think that something inside of ptxdist is causing the
> error.
> 
> Could you offer any help/advice/suggestions on this matter, any help
> would be greatly appreciated?

If there is no other way to make the Makefile take the cross compiler,
the normal way would be to patch that Makefile so it uses the supplied
*_CC environment variables by ptxdist. (If there is no such way, this
issue alone should be worth an issue in the ISC bug tracker, as it
hinders any sort of cross-compiling.)

But apparently isc-dhcp bundles a version of isc-bind, and only unpacks
it during the build from bind/bind.tar.gz.  So this problem cannot be
easily worked around by a patch in ptxdist, because we cannot patch
non-existing files.

I guess you either have to figure out how to get rid of the bind
dependency, or unpack bind.tar.gz in the dhcp.extract stage, and then
you can use the usual patch magic of ptxdist, which gets applied after
the extract stage.

 - Roland

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-27 10:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26  8:14 [ptxdist] ISC DHCP 4.3.6-P1 Jakov Simunic
2018-04-27 10:22 ` Roland Hieber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox