Re: [PATCH 1/2] deb-pkg: Fix cross-building linux-headers package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 6, 2013 at 12:04 PM, Ben Hutchings <ben@xxxxxxxxxxxxxxx> wrote:
> On Fri, 2013-12-06 at 11:29 +0800, Niew, Sh. wrote:
>> On Fri, Dec 6, 2013 at 10:07 AM, Ben Hutchings <ben@xxxxxxxxxxxxxxx> wrote:
>> > On Fri, 2013-12-06 at 09:45 +0800, Niew, Sh. wrote:
>> >> On Fri, Dec 6, 2013 at 9:40 AM, Ben Hutchings <ben@xxxxxxxxxxxxxxx> wrote:
>> >> > On Fri, 2013-12-06 at 09:35 +0800, Niew, Sh. wrote:
>> >> >> On Thu, Dec 5, 2013 at 10:37 PM, Ben Hutchings <ben@xxxxxxxxxxxxxxx> wrote:
>> >> >> > builddeb generates a control file that says the linux-headers package
>> >> >> > can only be built for the build system primary architecture.  This
>> >> >> > breaks cross-building configurations.  We should use $debarch for this
>> >> >> > instead.
>> >> >> >
>> >> >> > Since $debarch is not yet set when generating the control file, set
>> >> >> > Architecture: any and use control file variables to fill in the
>> >> >> > description.
>> >> >> >
>> >> >> > Fixes: cd8d60a20a45 ('kbuild: create linux-headers package in deb-pkg')
>> >> >> > Reported-by: "Niew, Sh." <shniew@xxxxxxxxx>
>> >> >> > Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
>> >> > [...]
>> >> >> I can't patch this to my linux-3.2.y tree which i clone from linux-stable
>> >> >> I check that the patches number line are different...
>> >> >> What i missed?
>> >> >
>> >> > This is for mainline; it should apply cleanly to 3.12.
>>
>> What ever i try, is failed. Even with 3.12 tree of debian.
>> I check the failure, the following part can't be patch:
>>
>> @@ -62,7 +62,7 @@ create_package() {
>>         fi
>>
>>         # Create the package
>> -       dpkg-gencontrol -isp $forcearch -p$pname -P"$pdir"
>> +       dpkg-gencontrol -isp $forcearch -Vkernel:debarch="${debarch:-$
>> (dpkg --print-architecture)}" -p$pname -P"$pdir"
>>         dpkg --build "$pdir" ..
>>  }
>
> I think this has been word-wrapped by your mail program.  Here is the
> patch as an attachment; that should avoid the problem.

Thanks, the attach patch is applied.
And i just make it on linux-3.2.y by hand, and is successfully cross-build.
Haven't test in 3.12
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux