Add an option to provide extra environment variables for build

Bug #663156 reported by Marcin Juszkiewicz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xdeb (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: xdeb

Xdeb uses debuild to make a build. As a result it is impossible to cross build kernels with xdeb due to lack of CROSS_COMPILE variable during kernel build.

Solution would be adding option which would take list of environment variables which will be provided for debuild. Other option could be "--debuild-opts" which will take a list of extra arguments for debuild calls.

Revision history for this message
Loïc Minier (lool) wrote :

You don't need to set CROSS_COMPILE to cross-build the kernel; the kernel rules have been fixed to set CROSS_COMPILE to the host triplet (unless it's already set). This might be a natty-only fix though.

I think we should avoid package-specific workaround as much as we can, and since kernel cross builds should be supported fine here, I'd rather we do not add this environment variable feature unless there is a strict need for it.

Revision history for this message
Loïc Minier (lool) wrote :

So I'm marking this as incomplete for now; I think the request would be valid if we had a concrete case of a need for this feature, but I'd rather not add such an option unless an use case requires it. Package build tools typically permit this kind of things (e.g. pbuilder and sbuild) but sbuild defaults to stripping off the environment, and you don't control the environment of packages which get autobuilt.

Changed in xdeb (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xdeb (Ubuntu) because there has been no activity for 60 days.]

Changed in xdeb (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Ignacy Gawędzki (iazz) wrote :

The impossibility to pass some environment variable to the build process is a serious obstacle. I for one have a project in which I require some environment variable to be properly defined. With debuild, I can use the -e/--set-envvar option, whereas with xdeb, there's no way to achieve that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.