* Re: [PATCH] db: disable the ARM assembler mutex code
From: Burton, Ross @ 2016-11-04 20:29 UTC (permalink / raw)
To: Khem Raj; +Cc: OE-core
In-Reply-To: <b3c8d5de-1d26-b37b-e28c-f8cca01c9ba3@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 198 bytes --]
On 4 November 2016 at 18:22, Khem Raj <raj.khem@gmail.com> wrote:
> it would be good to keep this for older < armv5 arches
>
Doesn't the C library support its own atomics for those?
Ross
[-- Attachment #2: Type: text/html, Size: 638 bytes --]
^ permalink raw reply
* Re: [PATCH 0/2] Time zone update to 2016i
From: Burton, Ross @ 2016-11-04 20:26 UTC (permalink / raw)
To: Leonardo Sandoval; +Cc: OE-core
In-Reply-To: <44145dc1-a9cf-7191-3c74-ce23b9aa2aaf@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 424 bytes --]
On 4 November 2016 at 16:04, Leonardo Sandoval <
leonardo.sandoval.gonzalez@linux.intel.com> wrote:
> git pw mbox 3757 -r 1 | git apply --check
> error: meta/recipes-extended/tzcode/tzcode-native_2016h.bb: No such file
> or directory
> error: meta/recipes-extended/tzdata/tzdata_2016h.bb: No such file or
> directory
>
It depends on the update to 2016h that Armin sent earlier but isn't yet in
master.
Ross
[-- Attachment #2: Type: text/html, Size: 1009 bytes --]
^ permalink raw reply
* [PATCH] distro_check: MeeGo is long dead, compare against Clear Linux instead
From: Ross Burton @ 2016-11-04 20:19 UTC (permalink / raw)
To: openembedded-core
Instead of checking against a file that represents a distribution that hasn't
existed for years, fetch package names for Clear Linux instead.
[ YOCTO #10601 ]
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/lib/oe/distro_check.py | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py
index 00c827e..c666ddc 100644
--- a/meta/lib/oe/distro_check.py
+++ b/meta/lib/oe/distro_check.py
@@ -43,15 +43,6 @@ def package_name_from_srpm(srpm):
(name, version, release) = srpm.replace(".src.rpm", "").rsplit("-", 2)
return name
-def get_latest_released_meego_source_package_list(d):
- "Returns list of all the name os packages in the latest meego distro"
-
- package_names = set()
- with open("/tmp/Meego-1.1", "r") as f:
- for line in f:
- package_names.add(line.strip() + ":" + "main")
- return "1.1", package_names
-
def get_source_package_list_from_url(url, section, d):
"Return a sectioned list of package names from a URL list"
@@ -99,6 +90,11 @@ def get_latest_released_mandriva_source_package_list(d):
package_names |= get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/%s/SRPMS/main/updates/" % latest, "updates", d)
return latest, package_names
+def get_latest_released_clear_source_package_list(d):
+ latest = find_latest_numeric_release("https://download.clearlinux.org/releases/", d)
+ package_names = get_source_package_list_from_url("https://download.clearlinux.org/releases/%s/clear/source/SRPMS/" % latest, "main", d)
+ return latest, package_names
+
def find_latest_debian_release(url, d):
"Find the latest listed debian release on the given url"
@@ -167,7 +163,7 @@ def create_distro_packages_list(distro_check_dir, d):
("Fedora", get_latest_released_fedora_source_package_list),
("OpenSuSE", get_latest_released_opensuse_source_package_list),
("Mandriva", get_latest_released_mandriva_source_package_list),
- ("Meego", get_latest_released_meego_source_package_list)
+ ("Clear", get_latest_released_clear_source_package_list),
)
for name, fetcher_func in per_distro_functions:
--
2.8.1
^ permalink raw reply related
* Re: [PATCH] db: disable the ARM assembler mutex code
From: Khem Raj @ 2016-11-04 18:22 UTC (permalink / raw)
To: Li Zhou, openembedded-core
In-Reply-To: <20161104090719.30795-1-li.zhou@windriver.com>
[-- Attachment #1.1: Type: text/plain, Size: 1533 bytes --]
On 11/4/16 2:07 AM, Li Zhou wrote:
> The swpb in macro MUTEX_SET will cause "undefined instruction" error
> on the new arm arches which don't support this assembly instruction
> any more. If use ldrex/strex to replace swpb, the old arm arches don't
> support them. So to avoid this issue, just disable the ARM assembler
> mutex code, and use the default pthreads mutex.
>
> Signed-off-by: Li Zhou <li.zhou@windriver.com>
> ---
> meta/recipes-support/db/db_6.0.30.bb | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/meta/recipes-support/db/db_6.0.30.bb b/meta/recipes-support/db/db_6.0.30.bb
> index 50a469b..2d08b5e 100644
> --- a/meta/recipes-support/db/db_6.0.30.bb
> +++ b/meta/recipes-support/db/db_6.0.30.bb
> @@ -74,15 +74,6 @@ DB6_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disabl
>
> EXTRA_OECONF = "${DB6_CONFIG} --enable-shared --enable-cxx --with-sysroot"
>
> -# Override the MUTEX setting here, the POSIX library is
> -# the default - "POSIX/pthreads/library".
> -# Don't ignore the nice SWP instruction on the ARM:
> -# These enable the ARM assembler mutex code
> -ARM_MUTEX = "--with-mutex=ARM/gcc-assembly"
> -MUTEX = ""
> -MUTEX_arm = "${ARM_MUTEX}"
> -MUTEX_armeb = "${ARM_MUTEX}"
> -EXTRA_OECONF += "${MUTEX}"
it would be good to keep this for older < armv5 arches
> EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
>
> # Cancel the site stuff - it's set for db3 and destroys the
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply
* Re: [PATCH] db: disable the ARM assembler mutex code
From: Mark Hatle @ 2016-11-04 18:18 UTC (permalink / raw)
To: Leonardo Sandoval, Li Zhou, openembedded-core
In-Reply-To: <2dd71023-841c-f106-0b3e-8defa6bf2156@linux.intel.com>
On 11/4/16 11:12 AM, Leonardo Sandoval wrote:
> This patch cannot be applied because the modified file is not track by
> oe-core.
>
The original submitted should have mentioned this patch is against Jethro.
However the patch is directly applicable to master, morty and korgoth as well.
Li, please rebase this against master and then ask for it to be backported to
the others.
--Mark
> On 11/04/2016 03:07 AM, Li Zhou wrote:
>> The swpb in macro MUTEX_SET will cause "undefined instruction" error
>> on the new arm arches which don't support this assembly instruction
>> any more. If use ldrex/strex to replace swpb, the old arm arches don't
>> support them. So to avoid this issue, just disable the ARM assembler
>> mutex code, and use the default pthreads mutex.
>>
>> Signed-off-by: Li Zhou <li.zhou@windriver.com>
>> ---
>> meta/recipes-support/db/db_6.0.30.bb | 9 ---------
>> 1 file changed, 9 deletions(-)
>>
>> diff --git a/meta/recipes-support/db/db_6.0.30.bb b/meta/recipes-support/db/db_6.0.30.bb
>> index 50a469b..2d08b5e 100644
>> --- a/meta/recipes-support/db/db_6.0.30.bb
>> +++ b/meta/recipes-support/db/db_6.0.30.bb
>> @@ -74,15 +74,6 @@ DB6_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disabl
>>
>> EXTRA_OECONF = "${DB6_CONFIG} --enable-shared --enable-cxx --with-sysroot"
>>
>> -# Override the MUTEX setting here, the POSIX library is
>> -# the default - "POSIX/pthreads/library".
>> -# Don't ignore the nice SWP instruction on the ARM:
>> -# These enable the ARM assembler mutex code
>> -ARM_MUTEX = "--with-mutex=ARM/gcc-assembly"
>> -MUTEX = ""
>> -MUTEX_arm = "${ARM_MUTEX}"
>> -MUTEX_armeb = "${ARM_MUTEX}"
>> -EXTRA_OECONF += "${MUTEX}"
>> EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
>>
>> # Cancel the site stuff - it's set for db3 and destroys the
>
^ permalink raw reply
* Yocto Project Status WW45 - UPDATED
From: Jolley, Stephen K @ 2016-11-04 17:06 UTC (permalink / raw)
To: yocto@yoctoproject.org, openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 2236 bytes --]
Current Dev Position: YP 2.3 M1
Next Deadline: YP 2.3 M1 by Dec. 12, 2016
SWAT team rotation: Ross -> Randy
https://wiki.yoctoproject.org/wiki/Yocto_Build_Failure_Swat_Team
Key Status/Updates:
* 2.2 was released!
* Patches are starting to be merged into master
* We are intending to have point releases for 2.0 and 2.1, this is dependent on good build test results.
* We are having various issues with the new autobuilder so it is still not in production use yet.
* There was a challenging taskhash mismatch test case this week which has resulted in some significant debugging improvements for taskhashes and basehashes which are now in master.
* 2.3 planning is underway and RP will send more thoughts on the plans for that in the next couple of weeks.
* We are going to make a strong effort to load balance things up front this time so work is spread over M1-3 rather than the usual 'front loaded' everything in M1 approach which is currently how bugzilla looks.
Proposed upcoming dot releases:
YP 2.0.3 Release by Nov. 18, 2016
YP 2.1.2 Release by Dec. 9, 2016
YP 2.2.1 Release by Jan. 20, 2017
Key YP 2.3 Dates:
YP 2.3 M1 Cutoff is Dec. 12, 2016
YP 2.3 M1 Release is Dec. 23, 2016
YP 2.3 M2 Cutoff is Jan. 23, 2017
YP 2.3 M2 Release is Feb. 3, 2017
YP 2.3 M3 Cutoff is Feb 27, 2017
YP 2.3 M3 Release is Mar. 10, 2017
YP 2.3 M4 Cutoff is April 3, 2017
YP 2.3 M4 Release is April 28, 2017
Tracking Metrics:
WDD 2422 (last week 2394)
(https://wiki.yoctoproject.org/charts/combo.html)
Key Status Links for YP:
https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.3_Status
https://wiki.yoctoproject.org/wiki/Yocto_2.3_Schedule
https://wiki.yoctoproject.org/wiki/Yocto_2.3_Features
[If anyone has suggestions for other information you'd like to see on this weekly status update, let us know!]
Thanks,
Stephen K. Jolley
Yocto Project Program Manager
INTEL, MS JF1-255, 2111 N.E. 25th Avenue, Hillsboro, OR 97124
* Work Telephone: (503) 712-0534
* Cell: (208) 244-4460
* Email: stephen.k.jolley@intel.com
[-- Attachment #2: Type: text/html, Size: 17596 bytes --]
^ permalink raw reply
* Re: ✗ patchtest: failure for u-boot: mkimage: fix build
From: Leonardo Sandoval @ 2016-11-04 16:30 UTC (permalink / raw)
To: openembedded-core, daniela.plascencia, richard.purdie,
paul.eggleton, joshua.g.lock, sgw, benjamin.esquivel
In-Reply-To: <20161104112557.2206.15124@do.openembedded.org>
This is another false positive that has been fixed. Submitted is a valid
status.
On 11/04/2016 05:25 AM, Patchwork wrote:
> == Series Details ==
>
> Series: u-boot: mkimage: fix build
> URL : https://patchwork.openembedded.org/series/3768/
> State : failure
>
> == Summary ==
>
> Thank you for your patch submission of the following patch series to OpenEmbedded Core-.
> this is an automated response. Several tests have been executed on the proposed
> series (series 3768, revision 1) by patchtest and the following have failed:
>
>
> Test Name test_upstream_status_format
> Proposed Fix Fix Upstream-Status format
> Required format Upstream-Status: <status>
> Possible Status Pending, Accepted, Backport, Denied, Inappropriate
> Line Upstream-Status: Submitted
> Column 18
>
>
> If you believe any of these test results are incorrect, please reply to the mailing
> list (openembedded-core@lists.openembedded.org) raising your concerns. Otherwise we would
> appreciate you correcting the issues and submitting a new version of the patchset if
> applicable. Please ensure you add/increment the version number when sending the new
> version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
>
> ---
> Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
> Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
>
^ permalink raw reply
* Re: [PATCH] db: disable the ARM assembler mutex code
From: Leonardo Sandoval @ 2016-11-04 16:12 UTC (permalink / raw)
To: Li Zhou, openembedded-core
In-Reply-To: <20161104090719.30795-1-li.zhou@windriver.com>
This patch cannot be applied because the modified file is not track by
oe-core.
On 11/04/2016 03:07 AM, Li Zhou wrote:
> The swpb in macro MUTEX_SET will cause "undefined instruction" error
> on the new arm arches which don't support this assembly instruction
> any more. If use ldrex/strex to replace swpb, the old arm arches don't
> support them. So to avoid this issue, just disable the ARM assembler
> mutex code, and use the default pthreads mutex.
>
> Signed-off-by: Li Zhou <li.zhou@windriver.com>
> ---
> meta/recipes-support/db/db_6.0.30.bb | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/meta/recipes-support/db/db_6.0.30.bb b/meta/recipes-support/db/db_6.0.30.bb
> index 50a469b..2d08b5e 100644
> --- a/meta/recipes-support/db/db_6.0.30.bb
> +++ b/meta/recipes-support/db/db_6.0.30.bb
> @@ -74,15 +74,6 @@ DB6_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disabl
>
> EXTRA_OECONF = "${DB6_CONFIG} --enable-shared --enable-cxx --with-sysroot"
>
> -# Override the MUTEX setting here, the POSIX library is
> -# the default - "POSIX/pthreads/library".
> -# Don't ignore the nice SWP instruction on the ARM:
> -# These enable the ARM assembler mutex code
> -ARM_MUTEX = "--with-mutex=ARM/gcc-assembly"
> -MUTEX = ""
> -MUTEX_arm = "${ARM_MUTEX}"
> -MUTEX_armeb = "${ARM_MUTEX}"
> -EXTRA_OECONF += "${MUTEX}"
> EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
>
> # Cancel the site stuff - it's set for db3 and destroys the
^ permalink raw reply
* Re: [PATCH 0/2] Time zone update to 2016i
From: Leonardo Sandoval @ 2016-11-04 16:04 UTC (permalink / raw)
To: Armin Kuster, openembedded-core
In-Reply-To: <1478238808-28688-1-git-send-email-akuster808@gmail.com>
Armin, I am trying to patch your series but I get this error:
git pw mbox 3757 -r 1 | git apply --check
error: meta/recipes-extended/tzcode/tzcode-native_2016h.bb: No such file
or directory
error: meta/recipes-extended/tzdata/tzdata_2016h.bb: No such file or
directory
BTW, 3757 is the series ID located at patchwork instance.
On 11/03/2016 11:53 PM, Armin Kuster wrote:
> These applied on top of 2016h I sent on 10-23
>
> Armin Kuster (2):
> tzcode: update to 2016i
> tzdata: update to 2016i
>
> .../tzcode/{tzcode-native_2016h.bb => tzcode-native_2016i.bb} | 8 ++++----
> meta/recipes-extended/tzdata/{tzdata_2016h.bb => tzdata_2016i.bb} | 4 ++--
> 2 files changed, 6 insertions(+), 6 deletions(-)
> rename meta/recipes-extended/tzcode/{tzcode-native_2016h.bb => tzcode-native_2016i.bb} (69%)
> rename meta/recipes-extended/tzdata/{tzdata_2016h.bb => tzdata_2016i.bb} (98%)
>
^ permalink raw reply
* Yocto Project Status WW45
From: Jolley, Stephen K @ 2016-11-04 15:10 UTC (permalink / raw)
To: yocto@yoctoproject.org, openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 2414 bytes --]
Current Dev Position: YP 2.3 M1
Next Deadline: YP 2.3 M1 by Dec. 12, 2016
SWAT team rotation: Ross -> Randy
https://wiki.yoctoproject.org/wiki/Yocto_Build_Failure_Swat_Team
Key Status/Updates:
* 2.2 was released!
* Patches are starting to be merged into master
* We are intending to have point releases for 2.0 and 2.1, this is dependent on good build test results.
* We are having various issues with the new autobuilder so it is still not in production use yet.
* There was a challenging taskhash mismatch test case this week which has resulted in some significant debugging improvements for taskhashes and basehashes which are now in master.
* 2.3 planning is underway and RP will send more thoughts on the plans for that in the next couple of weeks.
* We are going to make a strong effort to load balance things up front this time so work is spread over M1-3 rather than the usual 'front loaded' everything in M1 approach which is currently how bugzilla looks.
Proposed upcoming dot releases:
YP 2.0.3 Release by Nov. 18, 2016
YP 2.1.2 Release by Dec. 9, 2016
YP 2.2.1 Release by Jan. 20, 2017
Key YP 2.3 Dates:
YP 2.3 M1 Cutoff is Dec. 12, 2016
YP 2.3 M1 Release is Dec. 23, 2016
YP 2.3 M2 Cutoff is Jan. 23, 2017
YP 2.3 M2 Release is Feb. 3, 2017
YP 2.3 M3 Cutoff is Feb 27, 2017
YP 2.3 M3 Release is Mar. 10, 2017
YP 2.4 M4 Cutoff is April 3, 2017
YP 2.4 M4 Release is April 28, 2017
Tracking Metrics:
WDD 2422 (last week 2394)
(https://wiki.yoctoproject.org/charts/combo.html)
Key Status Links for YP:
https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.2_Status
https://wiki.yoctoproject.org/wiki/Yocto_2.2_Schedule
https://wiki.yoctoproject.org/wiki/Yocto_2.2_Features
https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.3_Status
https://wiki.yoctoproject.org/wiki/Yocto_2.3_Schedule
https://wiki.yoctoproject.org/wiki/Yocto_2.3_Features
[If anyone has suggestions for other information you'd like to see on this weekly status update, let us know!]
Thanks,
Stephen K. Jolley
Yocto Project Program Manager
INTEL, MS JF1-255, 2111 N.E. 25th Avenue, Hillsboro, OR 97124
* Work Telephone: (503) 712-0534
* Cell: (208) 244-4460
* Email: stephen.k.jolley@intel.com
[-- Attachment #2: Type: text/html, Size: 22614 bytes --]
^ permalink raw reply
* Re: using devtool for rebasing patches
From: Alexander Kanavin @ 2016-11-04 13:54 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Paul Eggleton
In-Reply-To: <1480827.LzmdYstA2d@peggleto-mobl.ger.corp.intel.com>
On 11/03/2016 09:29 PM, Paul Eggleton wrote:
> "devtool upgrade" is designed specifically to handle the upgrade case and
> tries to rebase the old patches onto the new version, putting you into
> resolution mode with "git am" if it fails to apply a patch. I appreciate that
> you may now be working through sorting out all of the patches to reduce the
> fuzziness when applying, and that won't help in that scenario, but it would
> definitely be worth considering for upgrades.
Fair enough, although I was not aware of this feature of devtool until
now, despite being a major contributor of package upgrades to oe-core :)
We have had a miscommunication issue, it seems.
> I'm open to implementing better support for handling patch application failure
> for devtool modify - in fact there is a bug open for just that:
>
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=8325
THanks, I just wrote a comment there, and made the patch fuzz bug depend
on this one :)
Alex
^ permalink raw reply
* Re: [PATCH]] libpcap: Update to version 1.8.1
From: Burton, Ross @ 2016-11-04 13:28 UTC (permalink / raw)
To: Fabio Berton; +Cc: OE-core
In-Reply-To: <1478261520-4125-1-git-send-email-fabio.berton@ossystems.com.br>
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
On 4 November 2016 at 12:12, Fabio Berton <fabio.berton@ossystems.com.br>
wrote:
> - Update patches libpcap.inc and aclocal.patch to work with version
> 1.8.1.
>
This is legacy and aclocal.patch can be removed, we're improved the
autotools class and you can now stop aclocal from running at all.
Add EXTRA_AUTORECONF += "--exclude=aclocal" to the libpcap.inc and then you
can remove both aclocal.patch and the copying of aclocal.m4 to acinclude.m4.
Ross
[-- Attachment #2: Type: text/html, Size: 1077 bytes --]
^ permalink raw reply
* [PATCH 1/1] run-postinsts: Use opkg/dpkg to configure when possible
From: Jussi Kukkonen @ 2016-11-04 13:16 UTC (permalink / raw)
To: openembedded-core
In-Reply-To: <cover.1478258311.git.jussi.kukkonen@intel.com>
Currently run-postinsts script has code to run postinst scripts
via opkg/dpkg configure but that code is never used. The advantage
of using package managers instead of just executing the scripts is
to keep the package manager DB updated.
Fix the script so that the package managers are used when appropriate.
Also use $localstatedir for the opkg runtime file location.
Fixes [YOCTO #10478].
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
.../recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
index 04ba394..10f2118 100755
--- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
@@ -16,23 +16,25 @@ pm_installed=false
for pm in $backend_list; do
pi_dir="#SYSCONFDIR#/$pm-postinsts"
- [ -d $pi_dir ] && break
+ if [ ! -d $pi_dir ]; then
+ continue
+ fi
+ # found the package manager, it has postinsts
case $pm in
"deb")
if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then
pm_installed=true
- break
fi
;;
"ipk")
- if [ -s "/var/lib/opkg/status" ]; then
+ if [ -s "#LOCALSTATEDIR#/lib/opkg/status" ]; then
pm_installed=true
- break
fi
;;
esac
+ break
done
remove_rcsd_link () {
--
2.1.4
^ permalink raw reply related
* [PATCH 0/1] run-postinsts: Use opkg/dpkg to configure when possible
From: Jussi Kukkonen @ 2016-11-04 13:16 UTC (permalink / raw)
To: openembedded-core
run-postinst has not been using package managers to configure the
packages: the code was there all along but a bug prevented it from
being used.
I was hesitating sending this a bit as it felt quite difficult to test
comprehensively and the change is not completely trivial: as an example
the order of postinsts will likely change as it's now handled by the
package manager instead of OE. I can still run more tests if anyone
has good ideas...
Cheers,
Jussi
The following changes since commit c3d2df883a9d6d5036277114339673656d89a728:
oeqa/selftest/kernel.py: Add new file destined for kernel related tests (2016-11-01 10:05:46 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib jku/10478
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/10478
Jussi Kukkonen (1):
run-postinsts: Use opkg/dpkg to configure when possible
.../recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
--
2.1.4
^ permalink raw reply
* trying to build rpm with perl bindings
From: Robert P. J. Day @ 2016-11-04 12:49 UTC (permalink / raw)
To: OE Core mailing list
for my qemuppc target, i wanted to add perl bindings to the target
"rpm" command, so i checked the "rpm_5.4.16.bb" recipe file to find:
# Perl modules are not built, but they could be enabled fairly easily
# the perl module creation and installation would need to be patched.
# (currently has host perl contamination issues)
WITH_PERL = "--with-perl --without-perlembed --without-perl-urpm"
WITHOUT_PERL = "--without-perl --without-perl-urpm"
PACKAGECONFIG[perl] = "${WITH_PERL},${WITHOUT_PERL},perl,"
um ... ok, no idea what the issue is here but what the heck, let's
just try it and see what happens, so added:
PACKAGECONFIG_append_pn-rpm = " perl"
to "local.conf", ran "bitbake rpm" and eventually got:
| Making all in perl
| make[2]: Entering directory
'/home/rpjday/oe/builds/msm_qemuppc/tmp/work/ppc7400-poky-linux/rpm/5.4.16-r0/build/perl'
| /usr/bin/perl Makefile.PL CC="powerpc-poky-linux-gcc -m32
-mhard-float -mcpu=7400 -mno-spe
--sysroot=/home/rpjday/oe/builds/msm_qemuppc/tmp/sysroots/qemuppc"
MAKEFILE=Makefile.perl
| Bareword found where operator expected at Makefile.PL line 71, near
"--sysroot"
| (Missing operator before sysroot?)
| Can't modify constant item in postdecrement (--) at Makefile.PL line
71, near "spe --"
| syntax error at Makefile.PL line 71, near "--sysroot"
... snip ...
????. so i open build/perl/Makefile.PL and, sure enough, down at line
71:
WriteMakefile(
'NAME' => 'RPM',
'OBJECT' => join(' ', @objects),
'VERSION' => '5.4.16',
'MAKEFILE'=> 'Makefile.perl',
'CC' => powerpc-poky-linux-gcc -m32 -mhard-float -mcpu=7400 -mno-spe
--sysroot=/home/rpjday/oe/builds/msm_qemuppc/tmp/sysroots/qemuppc,
... snip ...
doesn't that 'CC' line also need quotes around the value being
assigned? that seems to be a fairly blatant error, no? or am i
misreading something?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply
* [PATCH]] libpcap: Update to version 1.8.1
From: Fabio Berton @ 2016-11-04 12:12 UTC (permalink / raw)
To: openembedded-core
- Update patches libpcap.inc and aclocal.patch to work with version 1.8.1.
- Option --enable-canusb was removed on commit:
https://github.com/the-tcpdump-group/libpcap/commit/93ca5ff7030aaf1219e1de05ec89a68384bfc50b
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
---
meta/recipes-connectivity/libpcap/libpcap.inc | 1 -
.../libpcap/libpcap/aclocal.patch | 119 +++++++++++++++------
.../libpcap/libpcap-pkgconfig-support.patch | 32 +++---
.../libpcap/{libpcap_1.7.4.bb => libpcap_1.8.1.bb} | 6 +-
4 files changed, 105 insertions(+), 53 deletions(-)
rename meta/recipes-connectivity/libpcap/{libpcap_1.7.4.bb => libpcap_1.8.1.bb} (80%)
diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc b/meta/recipes-connectivity/libpcap/libpcap.inc
index 7b29a52..56a2a6a 100644
--- a/meta/recipes-connectivity/libpcap/libpcap.inc
+++ b/meta/recipes-connectivity/libpcap/libpcap.inc
@@ -26,7 +26,6 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ
PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
# Add a dummy PACKAGECONFIG for bluez5 since it is not supported by libpcap.
PACKAGECONFIG[bluez5] = ",,"
-PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb"
PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl"
diff --git a/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch b/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
index 2151982..a2421c4 100644
--- a/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
+++ b/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
@@ -1,9 +1,21 @@
+From 731aa41f2139d5217941685441d49a809a04de02 Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.berton@ossystems.com.br>
+Date: Thu, 3 Nov 2016 17:41:17 -0200
+Subject: [PATCH] aclocal
+Organization: O.S. Systems Software LTDA.
+
Upstream-Status: Inappropriate [configuration]
-diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
---- libpcap-1.1.1-orig/aclocal.m4 2010-06-29 10:46:32.815117569 +0800
-+++ libpcap-1.1.1/aclocal.m4 2010-06-29 10:49:17.150149949 +0800
-@@ -37,7 +37,7 @@
+Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
+---
+ aclocal.m4 | 44 ++++++++++++++++++++++----------------------
+ 1 file changed, 22 insertions(+), 22 deletions(-)
+
+diff --git a/aclocal.m4 b/aclocal.m4
+index 83f5761..3de3bf8 100644
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -35,7 +35,7 @@ dnl calling AC_PROG_CC, and then doing the tests we now do in
dnl AC_LBL_C_INIT. Now, we run AC_LBL_C_INIT_BEFORE_CC, AC_PROG_CC,
dnl and AC_LBL_C_INIT at the top level.
dnl
@@ -12,16 +24,43 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[
AC_BEFORE([$0], [AC_LBL_C_INIT])
AC_BEFORE([$0], [AC_PROG_CC])
-@@ -90,7 +90,7 @@
- dnl LDFLAGS
- dnl LBL_CFLAGS
+@@ -92,7 +92,7 @@ dnl CC
+ dnl LDFLAGS
+ dnl LBL_CFLAGS
dnl
-AC_DEFUN(AC_LBL_C_INIT,
+AC_DEFUN([AC_LBL_C_INIT],
[
AC_BEFORE([$0], [AC_LBL_FIXINCLUDES])
AC_BEFORE([$0], [AC_LBL_DEVEL])
-@@ -217,7 +217,7 @@
+@@ -238,7 +238,7 @@ dnl Set ac_lbl_unknown_warning_option_error to the appropriate flag
+ dnl to force an error if it would otherwise just print a warning message
+ dnl and succeed.
+ dnl
+-AC_DEFUN(AC_LBL_CHECK_UNKNOWN_WARNING_OPTION_ERROR,
++AC_DEFUN([AC_LBL_CHECK_UNKNOWN_WARNING_OPTION_ERROR],
+ [
+ AC_MSG_CHECKING([whether the compiler fails when given an unknown warning option])
+ save_CFLAGS="$CFLAGS"
+@@ -266,7 +266,7 @@ dnl Check whether the compiler option specified as the second argument
+ dnl is supported by the compiler and, if so, add it to the macro
+ dnl specified as the first argument
+ dnl
+-AC_DEFUN(AC_LBL_CHECK_COMPILER_OPT,
++AC_DEFUN([AC_LBL_CHECK_COMPILER_OPT],
+ [
+ AC_MSG_CHECKING([whether the compiler supports the $2 option])
+ save_CFLAGS="$CFLAGS"
+@@ -315,7 +315,7 @@ dnl output by default. IBM's XLC, however, supports -M but sends
+ dnl the output to {sourcefile-basename}.u, and AIX has no /dev/stdout
+ dnl to work around that, so we don't bother with XLC.
+ dnl
+-AC_DEFUN(AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT,
++AC_DEFUN([AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT],
+ [
+ AC_MSG_CHECKING([whether the compiler supports generating dependencies])
+ if test "$GCC" = yes ; then
+@@ -425,7 +425,7 @@ dnl V_SHLIB_OPT
dnl V_SONAME_OPT
dnl V_RPATH_OPT
dnl
@@ -30,7 +69,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_PREREQ(2.50)
if test "$GCC" = yes ; then
#
-@@ -361,7 +361,7 @@
+@@ -586,7 +586,7 @@ AC_DEFUN(AC_LBL_SHLIBS_INIT,
# Make sure we use the V_CCOPT flags, because some of those might
# disable inlining.
#
@@ -39,7 +78,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(for inline)
save_CFLAGS="$CFLAGS"
CFLAGS="$V_CCOPT"
-@@ -407,7 +407,7 @@
+@@ -632,7 +632,7 @@ dnl usage:
dnl
dnl AC_LBL_FIXINCLUDES
dnl
@@ -48,16 +87,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[if test "$GCC" = yes ; then
AC_MSG_CHECKING(for ANSI ioctl definitions)
AC_CACHE_VAL(ac_cv_lbl_gcc_fixincludes,
-@@ -453,7 +453,7 @@
- dnl $2 (yacc appended)
- dnl $3 (optional flex and bison -P prefix)
- dnl
--AC_DEFUN(AC_LBL_LEX_AND_YACC,
-+AC_DEFUN([AC_LBL_LEX_AND_YACC],
- [AC_ARG_WITH(flex, [ --without-flex don't use flex])
- AC_ARG_WITH(bison, [ --without-bison don't use bison])
- if test "$with_flex" = no ; then
-@@ -506,7 +506,7 @@
+@@ -672,7 +672,7 @@ dnl results:
dnl
dnl DECLWAITSTATUS (defined)
dnl
@@ -66,7 +96,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(if union wait is used)
AC_CACHE_VAL(ac_cv_lbl_union_wait,
AC_TRY_COMPILE([
-@@ -535,7 +535,7 @@
+@@ -701,7 +701,7 @@ dnl results:
dnl
dnl HAVE_SOCKADDR_SA_LEN (defined)
dnl
@@ -75,7 +105,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(if sockaddr struct has the sa_len member)
AC_CACHE_VAL(ac_cv_lbl_sockaddr_has_sa_len,
AC_TRY_COMPILE([
-@@ -560,7 +560,7 @@
+@@ -726,7 +726,7 @@ dnl results:
dnl
dnl HAVE_SOCKADDR_STORAGE (defined)
dnl
@@ -84,7 +114,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(if sockaddr_storage struct exists)
AC_CACHE_VAL(ac_cv_lbl_has_sockaddr_storage,
AC_TRY_COMPILE([
-@@ -593,7 +593,7 @@
+@@ -759,7 +759,7 @@ dnl we conclude it doesn't have that member (which is OK, as either we
dnl won't be using code that would use that member, or we wouldn't
dnl compile in any case).
dnl
@@ -93,7 +123,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(if dl_hp_ppa_info_t struct has dl_module_id_1 member)
AC_CACHE_VAL(ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1,
AC_TRY_COMPILE([
-@@ -619,7 +619,7 @@
+@@ -785,7 +785,7 @@ dnl results:
dnl
dnl ac_cv_lbl_have_run_path (yes or no)
dnl
@@ -102,7 +132,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(for ${CC-cc} -R)
AC_CACHE_VAL(ac_cv_lbl_have_run_path,
[echo 'main(){}' > conftest.c
-@@ -644,7 +644,7 @@
+@@ -810,7 +810,7 @@ dnl results:
dnl
dnl LBL_ALIGN (DEFINED)
dnl
@@ -111,7 +141,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(if unaligned accesses fail)
AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
[case "$host_cpu" in
-@@ -749,7 +749,7 @@
+@@ -914,7 +914,7 @@ dnl $1 (copt appended)
dnl HAVE_OS_PROTO_H (defined)
dnl os-proto.h (symlinked)
dnl
@@ -120,7 +150,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[rm -f os-proto.h
if test "${LBL_CFLAGS+set}" = set; then
$1="$$1 ${LBL_CFLAGS}"
-@@ -886,7 +886,7 @@
+@@ -1052,7 +1052,7 @@ dnl The check for libresolv is in case you are attempting to link
dnl statically and happen to have a libresolv.a lying around (and no
dnl libnsl.a).
dnl
@@ -129,7 +159,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
# Most operating systems have gethostbyname() in the default searched
# libraries (i.e. libc):
# Some OSes (eg. Solaris) place it in libnsl
-@@ -909,7 +909,7 @@
+@@ -1075,7 +1075,7 @@ dnl
dnl Test for __attribute__
dnl
@@ -137,8 +167,26 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
+AC_DEFUN([AC_C___ATTRIBUTE__], [
AC_MSG_CHECKING(for __attribute__)
AC_CACHE_VAL(ac_cv___attribute__, [
- AC_COMPILE_IFELSE(
-@@ -947,7 +947,7 @@
+ AC_COMPILE_IFELSE([
+@@ -1114,7 +1114,7 @@ dnl
+ dnl Test whether __attribute__((unused)) can be used without warnings
+ dnl
+
+-AC_DEFUN(AC_C___ATTRIBUTE___UNUSED, [
++AC_DEFUN([AC_C___ATTRIBUTE___UNUSED], [
+ AC_MSG_CHECKING([whether __attribute__((unused)) can be used without warnings])
+ AC_CACHE_VAL(ac_cv___attribute___unused, [
+ save_CFLAGS="$CFLAGS"
+@@ -1146,7 +1146,7 @@ dnl
+ dnl Test whether __attribute__((format)) can be used without warnings
+ dnl
+
+-AC_DEFUN(AC_C___ATTRIBUTE___FORMAT, [
++AC_DEFUN([AC_C___ATTRIBUTE___FORMAT], [
+ AC_MSG_CHECKING([whether __attribute__((format)) can be used without warnings])
+ AC_CACHE_VAL(ac_cv___attribute___format, [
+ save_CFLAGS="$CFLAGS"
+@@ -1180,7 +1180,7 @@ dnl If so then pcap-linux.c can use this to report proper statistics.
dnl
dnl -Scott Barron
dnl
@@ -147,17 +195,17 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(if if_packet.h has tpacket_stats defined)
AC_CACHE_VAL(ac_cv_lbl_tpacket_stats,
AC_TRY_COMPILE([
-@@ -976,7 +976,7 @@
+@@ -1209,7 +1209,7 @@ dnl that member, so if we don't have tpacket_auxdata, we conclude it
dnl doesn't have that member (which is OK, as either we won't be using
dnl code that would use that member, or we wouldn't compile in any case).
dnl
-AC_DEFUN(AC_LBL_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI,
+AC_DEFUN([AC_LBL_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI],
[AC_MSG_CHECKING(if tpacket_auxdata struct has tp_vlan_tci member)
- AC_CACHE_VAL(ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1,
+ AC_CACHE_VAL(ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci,
AC_TRY_COMPILE([
-@@ -1003,7 +1003,7 @@
- dnl
+@@ -1237,7 +1237,7 @@ dnl results:
+ dnl
dnl HAVE_DLPI_PASSIVE (defined)
dnl
-AC_DEFUN(AC_LBL_DL_PASSIVE_REQ_T,
@@ -165,3 +213,6 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
[AC_MSG_CHECKING(if dl_passive_req_t struct exists)
AC_CACHE_VAL(ac_cv_lbl_has_dl_passive_req_t,
AC_TRY_COMPILE([
+--
+2.1.4
+
diff --git a/meta/recipes-connectivity/libpcap/libpcap/libpcap-pkgconfig-support.patch b/meta/recipes-connectivity/libpcap/libpcap/libpcap-pkgconfig-support.patch
index b861513..afaa3be 100644
--- a/meta/recipes-connectivity/libpcap/libpcap/libpcap-pkgconfig-support.patch
+++ b/meta/recipes-connectivity/libpcap/libpcap/libpcap-pkgconfig-support.patch
@@ -1,25 +1,27 @@
-From 8887132e85892a72a84ca3878e60f254ad2ce939 Mon Sep 17 00:00:00 2001
-From: Joe MacDonald <joe_macdonald@mentor.com>
-Date: Tue, 24 Feb 2015 15:56:06 -0500
+From 2796129af52901dd68595e5e88a639308541def9 Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.berton@ossystems.com.br>
+Date: Thu, 3 Nov 2016 17:56:29 -0200
Subject: [PATCH] libpcap: pkgconfig support
+Organization: O.S. Systems Software LTDA.
Adding basic structure to support pkg-config.
Upstream-Status: Inappropriate [embedded specific]
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
+Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
---
Makefile.in | 5 +++++
- configure.in | 1 +
+ configure.ac | 1 +
libpcap.pc.in | 10 ++++++++++
3 files changed, 16 insertions(+)
create mode 100644 libpcap.pc.in
diff --git a/Makefile.in b/Makefile.in
-index 1c2d745..1f25faf 100644
+index e71d973..d7004ed 100644
--- a/Makefile.in
+++ b/Makefile.in
-@@ -60,6 +60,10 @@ V_RPATH_OPT = @V_RPATH_OPT@
+@@ -61,6 +61,10 @@ V_RPATH_OPT = @V_RPATH_OPT@
DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
PROG=libpcap
@@ -30,19 +32,19 @@ index 1c2d745..1f25faf 100644
# Standard CFLAGS
FULL_CFLAGS = $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS)
-@@ -275,6 +279,7 @@ EXTRA_DIST = \
+@@ -286,6 +290,7 @@ EXTRA_DIST = \
lbl/os-solaris2.h \
lbl/os-sunos4.h \
lbl/os-ultrix4.h \
+ libpcap.pc \
+ missing/getopt.c \
+ missing/getopt.h \
missing/snprintf.c \
- mkdep \
- msdos/bin2c.c \
-diff --git a/configure.in b/configure.in
-index 8f5c86b..fb51b35 100644
---- a/configure.in
-+++ b/configure.in
-@@ -1700,6 +1700,7 @@ esac
+diff --git a/configure.ac b/configure.ac
+index da2f940..4fc67bf 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1805,6 +1805,7 @@ fi
AC_PROG_INSTALL
AC_CONFIG_HEADER(config.h)
@@ -67,5 +69,5 @@ index 0000000..4f78ad8
+Libs: -L${libdir} -lpcap
+Cflags: -I${includedir}
--
-1.9.1
+2.1.4
diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.7.4.bb b/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
similarity index 80%
rename from meta/recipes-connectivity/libpcap/libpcap_1.7.4.bb
rename to meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
index 8d12b25..8f92ba7 100644
--- a/meta/recipes-connectivity/libpcap/libpcap_1.7.4.bb
+++ b/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
@@ -3,8 +3,8 @@ require libpcap.inc
SRC_URI += "file://aclocal.patch \
file://libpcap-pkgconfig-support.patch \
"
-SRC_URI[md5sum] = "b2e13142bbaba857ab1c6894aedaf547"
-SRC_URI[sha256sum] = "7ad3112187e88328b85e46dce7a9b949632af18ee74d97ffc3f2b41fe7f448b0"
+SRC_URI[md5sum] = "3d48f9cd171ff12b0efd9134b52f1447"
+SRC_URI[sha256sum] = "673dbc69fdc3f5a86fb5759ab19899039a8e5e6c631749e48dcd9c6f0c83541e"
#
# make install doesn't cover the shared lib
@@ -13,7 +13,7 @@ SRC_URI[sha256sum] = "7ad3112187e88328b85e46dce7a9b949632af18ee74d97ffc3f2b41fe7
do_configure_prepend () {
#remove hardcoded references to /usr/include
- sed 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i ${S}/configure.in
+ sed 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i ${S}/configure.ac
}
do_install_prepend () {
--
2.1.4
^ permalink raw reply related
* [PATCH v2]] gawk: Update to version 4.1.4
From: Fabio Berton @ 2016-11-04 11:08 UTC (permalink / raw)
To: openembedded-core
Add patch to remove hashbang line in file test/arrayind1.awk. This
patch fixes:
/
|WARNING: gawk-4.1.4-r0 do_package_qa: QA Issue:
|/usr/lib/gawk/ptest/test/arrayind1.awk contained in package gawk-ptest
|requires /usr/local/bin/awk, but no providers found in RDEPENDS_gawk-ptest?
|[file-rdeps]
\
Patch was submitted to upstream [1]
[1] https://lists.gnu.org/archive/html/bug-gawk/2016-11/msg00003.html
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
---
.../gawk/{gawk-4.1.3 => gawk-4.1.4}/run-ptest | 0
.../test-arrayind1-Remove-hashbang-line.patch | 30 ++++++++++++++++++++++
.../gawk/{gawk_4.1.3.bb => gawk_4.1.4.bb} | 5 ++--
3 files changed, 33 insertions(+), 2 deletions(-)
rename meta/recipes-extended/gawk/{gawk-4.1.3 => gawk-4.1.4}/run-ptest (100%)
create mode 100644 meta/recipes-extended/gawk/gawk-4.1.4/test-arrayind1-Remove-hashbang-line.patch
rename meta/recipes-extended/gawk/{gawk_4.1.3.bb => gawk_4.1.4.bb} (85%)
diff --git a/meta/recipes-extended/gawk/gawk-4.1.3/run-ptest b/meta/recipes-extended/gawk/gawk-4.1.4/run-ptest
similarity index 100%
rename from meta/recipes-extended/gawk/gawk-4.1.3/run-ptest
rename to meta/recipes-extended/gawk/gawk-4.1.4/run-ptest
diff --git a/meta/recipes-extended/gawk/gawk-4.1.4/test-arrayind1-Remove-hashbang-line.patch b/meta/recipes-extended/gawk/gawk-4.1.4/test-arrayind1-Remove-hashbang-line.patch
new file mode 100644
index 0000000..d4262ed
--- /dev/null
+++ b/meta/recipes-extended/gawk/gawk-4.1.4/test-arrayind1-Remove-hashbang-line.patch
@@ -0,0 +1,30 @@
+From a3a3f26078223c47871c7b53e5c015ad163ae045 Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.berton@ossystems.com.br>
+Date: Thu, 3 Nov 2016 14:50:52 -0200
+Subject: [PATCH] test/arrayind1: Remove hashbang line
+Organization: O.S. Systems Software LTDA.
+
+Remove "#!/usr/local/bin/awk -f" as none of the other awk scripts in the
+test suite have a hashbang.
+
+Upstream-Status: Submitted [1]
+
+[1] https://lists.gnu.org/archive/html/bug-gawk/2016-11/msg00003.html
+
+Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
+---
+ test/arrayind1.awk | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/test/arrayind1.awk b/test/arrayind1.awk
+index 5d4a6f3..59e8b4e 100755
+--- a/test/arrayind1.awk
++++ b/test/arrayind1.awk
+@@ -1,4 +1,3 @@
+-#!/usr/local/bin/awk -f
+ # this script renums pedigrees with metafounders
+ # so that they are added *before*regular animals
+ # mf are ascertained because they are not in the 1st column
+--
+2.1.4
+
diff --git a/meta/recipes-extended/gawk/gawk_4.1.3.bb b/meta/recipes-extended/gawk/gawk_4.1.4.bb
similarity index 85%
rename from meta/recipes-extended/gawk/gawk_4.1.3.bb
rename to meta/recipes-extended/gawk/gawk_4.1.4.bb
index 6ca7f3e..b888df1 100644
--- a/meta/recipes-extended/gawk/gawk_4.1.3.bb
+++ b/meta/recipes-extended/gawk/gawk_4.1.4.bb
@@ -17,10 +17,11 @@ PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr"
SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
file://run-ptest \
+ file://test-arrayind1-Remove-hashbang-line.patch \
"
-SRC_URI[md5sum] = "55d37f4069502677f25d1340df8eec97"
-SRC_URI[sha256sum] = "524effa5b9ecd4ed940f2581c5d3c1df4e4bd7e6f768aa033c1916f47dfc6e29"
+SRC_URI[md5sum] = "f20c94ca51b6ebfc9bffb90f95c8ffbb"
+SRC_URI[sha256sum] = "8c03080e2b5a56263e8783f6f1f306398d4591be18254041f3f547efef944d35"
inherit autotools gettext texinfo update-alternatives
--
2.1.4
^ permalink raw reply related
* [PATCH] cve-check.bbclass: CVE-2014-2524 / readline v5.2
From: André Draszik @ 2016-11-04 11:06 UTC (permalink / raw)
To: openembedded-core
From: André Draszik <adraszik@tycoint.com>
Contrary to the CVE report, the vulnerable trace functions
don't exist in readline v5.2 (which we keep for GPLv2+
purposes), they were added in readline v6.0 only - let's
whitelist that CVE in order to avoid false positives.
See also the discussion in
https://patchwork.openembedded.org/patch/81765/
Signed-off-by: André Draszik <adraszik@tycoint.com>
Reviewed-by: Lukasz Nowak <lnowak@tycoint.com>
---
meta/classes/cve-check.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 1425a40..b0febfb 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -39,7 +39,7 @@ CVE_CHECK_PN_WHITELIST = "\
# Whitelist for CVE and version of package
CVE_CHECK_CVE_WHITELIST = "{\
- 'CVE-2014-2524': ('6.3',), \
+ 'CVE-2014-2524': ('6.3','5.2',), \
}"
python do_cve_check () {
--
2.10.2
^ permalink raw reply related
* [PATCH] u-boot: mkimage: fix build
From: Stefan Müller-Klieser @ 2016-11-04 11:06 UTC (permalink / raw)
To: openembedded-core
This fixes the mkimage build for situations where HOSTCC and friends
need to be overridden and the u-boot makefile defaults don't work.
Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
---
...file-improve-cross_tools-target-usability.patch | 35 ++++++++++++++++++
...ile-add-override-statements-for-cross_too.patch | 41 ++++++++++++++++++++++
meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb | 8 ++++-
3 files changed, 83 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage/0001-tools-Makefile-improve-cross_tools-target-usability.patch
create mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage/0002-tools-Makefile-add-override-statements-for-cross_too.patch
diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage/0001-tools-Makefile-improve-cross_tools-target-usability.patch b/meta/recipes-bsp/u-boot/u-boot-mkimage/0001-tools-Makefile-improve-cross_tools-target-usability.patch
new file mode 100644
index 0000000..4b0d0e8
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage/0001-tools-Makefile-improve-cross_tools-target-usability.patch
@@ -0,0 +1,35 @@
+From ad129135402b38deeb37383c86781341cf239b6a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Stefan=20M=C3=BCller-Klieser?= <s.mueller-klieser@phytec.de>
+Date: Mon, 31 Oct 2016 10:30:18 +0100
+Subject: [PATCH 1/2] tools: Makefile: improve cross_tools target usability
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+When building the cross_tools target, HOSTCFLAGS and HOSTLDFLAGS will
+propagate to the target build. This should not happen and is easy to
+prevent.
+
+Upstream-Status: Submitted
+
+Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
+---
+ tools/Makefile | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tools/Makefile b/tools/Makefile
+index 400588c..305336c 100644
+--- a/tools/Makefile
++++ b/tools/Makefile
+@@ -263,6 +263,8 @@ subdir- += env
+
+ ifneq ($(CROSS_BUILD_TOOLS),)
+ HOSTCC = $(CC)
++HOSTCFLAGS = $(CFLAGS)
++HOSTLDFLAGS = $(LDFLAGS)
+
+ quiet_cmd_crosstools_strip = STRIP $^
+ cmd_crosstools_strip = $(STRIP) $^; touch $@
+--
+1.9.1
+
diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage/0002-tools-Makefile-add-override-statements-for-cross_too.patch b/meta/recipes-bsp/u-boot/u-boot-mkimage/0002-tools-Makefile-add-override-statements-for-cross_too.patch
new file mode 100644
index 0000000..4c7b6d0
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage/0002-tools-Makefile-add-override-statements-for-cross_too.patch
@@ -0,0 +1,41 @@
+From 2772e2ad0e097590e77fa338295d839d6ae6037c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Stefan=20M=C3=BCller-Klieser?= <s.mueller-klieser@phytec.de>
+Date: Thu, 3 Nov 2016 08:48:02 +0100
+Subject: [PATCH 2/2] tools: Makefile: add override statements for cross_tools
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This fixes the use case where one needs to override the host compiler
+flags for building the target tools. Usually the Makefile will build the
+basic tools first using the hostcc. After that cc will be assigned to
+hostcc to build the target tools. So in this scenario overriding HOSTCC
+fails to build. Using the override statement is one possible fix.
+
+Upstream-Status: Pending
+
+Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
+---
+ tools/Makefile | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tools/Makefile b/tools/Makefile
+index 305336c..9cb1607 100644
+--- a/tools/Makefile
++++ b/tools/Makefile
+@@ -262,9 +262,9 @@ $(LICENSE_H): $(obj)/bin2header $(srctree)/Licenses/gpl-2.0.txt
+ subdir- += env
+
+ ifneq ($(CROSS_BUILD_TOOLS),)
+-HOSTCC = $(CC)
+-HOSTCFLAGS = $(CFLAGS)
+-HOSTLDFLAGS = $(LDFLAGS)
++override HOSTCC = $(CC)
++override HOSTCFLAGS = $(CFLAGS)
++override HOSTLDFLAGS = $(LDFLAGS)
+
+ quiet_cmd_crosstools_strip = STRIP $^
+ cmd_crosstools_strip = $(STRIP) $^; touch $@
+--
+1.9.1
+
diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
index 5025961..0749408 100644
--- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
@@ -3,7 +3,13 @@ require u-boot-common_${PV}.inc
SUMMARY = "U-Boot bootloader image creation tool"
DEPENDS = "openssl"
-EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1'
+SRC_URI += " \
+ file://0001-tools-Makefile-improve-cross_tools-target-usability.patch \
+ file://0002-tools-Makefile-add-override-statements-for-cross_too.patch \
+"
+
+EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" STRIP=true V=1'
+EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC}" HOSTCFLAGS="${BUILD_CFLAGS}" HOSTLDFLAGS="${BUILD_LDFLAGS}"'
do_compile () {
oe_runmake sandbox_defconfig
--
1.9.1
^ permalink raw reply related
* Re: [PATCH] u-boot: mkimage: Fix build of u-boot-mkimage
From: Stefan Müller-Klieser @ 2016-11-04 11:06 UTC (permalink / raw)
To: Burton, Ross, Marek Vasut; +Cc: OE-core
In-Reply-To: <CAJTo0LaXYexn4cwQasj2gWvUpdO3uQFE2b81-soEnFoeM5ZdgQ@mail.gmail.com>
On 03.11.2016 00:06, Burton, Ross wrote:
> On 2 November 2016 at 19:40, Marek Vasut <marex@denx.de> wrote:
>
>>> But u-boot-common doesn't set EXTRA_OEMAKE...
>>
>> Should be u-boot.inc , sorry.
>>
>
> Yes, but u-book-mkimage doesn't include that file. :)
>
> Ross
I am seeing a different problem, but I guess my solution would fix this case
here, too. So I am sending it as a new thread. I hope it helps the case and
I get some discussion about the solution.
Regards, Stefan
^ permalink raw reply
* [PATCH] image-buildinfo: treat staged changes as modified branch, too
From: André Draszik @ 2016-11-04 10:53 UTC (permalink / raw)
To: openembedded-core
From: André Draszik <adraszik@tycoint.com>
When staging changes in a layer using git add, image-buildinfo
doesn't detect this as a modification, because of the way it
uses git diff.
Surely, merely staging, but not committing changes to git
should not result in image-buildhistory assuming that the
git repository hasn't been modified compared to the branch
HEAD, this state should be treated similarly to modifications
being unstaged.
We have to use both, git diff and git diff --cached to get the
desired result.
Signed-off-by: André Draszik <adraszik@tycoint.com>
Reported-by: Lukasz Nowak <lnowak@tycoint.com>
Reviewed-by: Lukasz Nowak <lnowak@tycoint.com>
---
meta/classes/image-buildinfo.bbclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/classes/image-buildinfo.bbclass b/meta/classes/image-buildinfo.bbclass
index 3003f5d..da1edf7 100644
--- a/meta/classes/image-buildinfo.bbclass
+++ b/meta/classes/image-buildinfo.bbclass
@@ -28,7 +28,9 @@ def image_buildinfo_outputvars(vars, listvars, d):
def get_layer_git_status(path):
import subprocess
try:
- subprocess.check_output("cd %s; PSEUDO_UNLOAD=1 git diff --quiet --no-ext-diff" % path,
+ subprocess.check_output("""cd %s; export PSEUDO_UNLOAD=1; set -e;
+ git diff --quiet --no-ext-diff
+ git diff --quiet --no-ext-diff --cached""" % path,
shell=True,
stderr=subprocess.STDOUT)
return ""
--
2.10.2
^ permalink raw reply related
* [PATCH] distro_check: partial rewrite to make it work again
From: Ross Burton @ 2016-11-04 10:37 UTC (permalink / raw)
To: openembedded-core
This library suffered as part of the Python 2 to Python 3 migration and stopped
working entirely.
Fix all the migration problems such as files being treated as strings but opened
in binary mode, insufficient use of with on files, and so on.
Rewrite large amounts to be Pythonic instead of C-in-Python.
Update OpenSuse and Fedora URLs.
Fedora now splits the archive alphabetically so handle that.
[ YOCTO #10562 ]
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/lib/oe/distro_check.py | 281 +++++++++++++++++---------------------------
1 file changed, 110 insertions(+), 171 deletions(-)
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py
index 87c52fa..00c827e 100644
--- a/meta/lib/oe/distro_check.py
+++ b/meta/lib/oe/distro_check.py
@@ -1,32 +1,17 @@
-from contextlib import contextmanager
-
-from bb.utils import export_proxies
-
def create_socket(url, d):
import urllib
+ from bb.utils import export_proxies
- socket = None
- try:
- export_proxies(d)
- socket = urllib.request.urlopen(url)
- except:
- bb.warn("distro_check: create_socket url %s can't access" % url)
-
- return socket
+ export_proxies(d)
+ return urllib.request.urlopen(url)
def get_links_from_url(url, d):
"Return all the href links found on the web location"
from bs4 import BeautifulSoup, SoupStrainer
+ soup = BeautifulSoup(create_socket(url,d), "html.parser", parse_only=SoupStrainer("a"))
hyperlinks = []
-
- webpage = ''
- sock = create_socket(url,d)
- if sock:
- webpage = sock.read()
-
- soup = BeautifulSoup(webpage, "html.parser", parse_only=SoupStrainer("a"))
for line in soup.find_all('a', href=True):
hyperlinks.append(line['href'].strip('/'))
return hyperlinks
@@ -37,6 +22,7 @@ def find_latest_numeric_release(url, d):
maxstr=""
for link in get_links_from_url(url, d):
try:
+ # TODO use LooseVersion
release = float(link)
except:
release = 0
@@ -47,144 +33,116 @@ def find_latest_numeric_release(url, d):
def is_src_rpm(name):
"Check if the link is pointing to a src.rpm file"
- if name[-8:] == ".src.rpm":
- return True
- else:
- return False
+ return name.endswith(".src.rpm")
def package_name_from_srpm(srpm):
"Strip out the package name from the src.rpm filename"
- strings = srpm.split('-')
- package_name = strings[0]
- for i in range(1, len (strings) - 1):
- str = strings[i]
- if not str[0].isdigit():
- package_name += '-' + str
- return package_name
-
-def clean_package_list(package_list):
- "Removes multiple entries of packages and sorts the list"
- set = {}
- map(set.__setitem__, package_list, [])
- return set.keys()
+ # ca-certificates-2016.2.7-1.0.fc24.src.rpm
+ # ^name ^ver ^release^removed
+ (name, version, release) = srpm.replace(".src.rpm", "").rsplit("-", 2)
+ return name
def get_latest_released_meego_source_package_list(d):
"Returns list of all the name os packages in the latest meego distro"
- package_names = []
- try:
- f = open("/tmp/Meego-1.1", "r")
+ package_names = set()
+ with open("/tmp/Meego-1.1", "r") as f:
for line in f:
- package_names.append(line[:-1] + ":" + "main") # Also strip the '\n' at the end
- except IOError: pass
- package_list=clean_package_list(package_names)
- return "1.0", package_list
+ package_names.add(line.strip() + ":" + "main")
+ return "1.1", package_names
def get_source_package_list_from_url(url, section, d):
"Return a sectioned list of package names from a URL list"
bb.note("Reading %s: %s" % (url, section))
links = get_links_from_url(url, d)
- srpms = list(filter(is_src_rpm, links))
- names_list = list(map(package_name_from_srpm, srpms))
+ srpms = filter(is_src_rpm, links)
+ names_list = map(package_name_from_srpm, srpms)
- new_pkgs = []
+ new_pkgs = set()
for pkgs in names_list:
- new_pkgs.append(pkgs + ":" + section)
-
+ new_pkgs.add(pkgs + ":" + section)
return new_pkgs
+def get_source_package_list_from_url_by_letter(url, section, d):
+ import string
+ from urllib.error import HTTPError
+ packages = set()
+ for letter in (string.ascii_lowercase + string.digits):
+ # Not all subfolders may exist, so silently handle 404
+ try:
+ packages |= get_source_package_list_from_url(url + "/" + letter, section, d)
+ except HTTPError as e:
+ if e.code != 404: raise
+ return packages
+
def get_latest_released_fedora_source_package_list(d):
"Returns list of all the name os packages in the latest fedora distro"
latest = find_latest_numeric_release("http://archive.fedoraproject.org/pub/fedora/linux/releases/", d)
-
- package_names = get_source_package_list_from_url("http://archive.fedoraproject.org/pub/fedora/linux/releases/%s/Fedora/source/SRPMS/" % latest, "main", d)
-
-# package_names += get_source_package_list_from_url("http://download.fedora.redhat.com/pub/fedora/linux/releases/%s/Everything/source/SPRMS/" % latest, "everything")
- package_names += get_source_package_list_from_url("http://archive.fedoraproject.org/pub/fedora/linux/updates/%s/SRPMS/" % latest, "updates", d)
-
- package_list=clean_package_list(package_names)
-
- return latest, package_list
+ package_names = get_source_package_list_from_url_by_letter("http://archive.fedoraproject.org/pub/fedora/linux/releases/%s/Everything/source/tree/Packages/" % latest, "main", d)
+ package_names |= get_source_package_list_from_url_by_letter("http://archive.fedoraproject.org/pub/fedora/linux/updates/%s/SRPMS/" % latest, "updates", d)
+ return latest, package_names
def get_latest_released_opensuse_source_package_list(d):
"Returns list of all the name os packages in the latest opensuse distro"
latest = find_latest_numeric_release("http://download.opensuse.org/source/distribution/",d)
package_names = get_source_package_list_from_url("http://download.opensuse.org/source/distribution/%s/repo/oss/suse/src/" % latest, "main", d)
- package_names += get_source_package_list_from_url("http://download.opensuse.org/update/%s/rpm/src/" % latest, "updates", d)
-
- package_list=clean_package_list(package_names)
- return latest, package_list
+ package_names |= get_source_package_list_from_url("http://download.opensuse.org/update/%s/src/" % latest, "updates", d)
+ return latest, package_names
def get_latest_released_mandriva_source_package_list(d):
"Returns list of all the name os packages in the latest mandriva distro"
latest = find_latest_numeric_release("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/", d)
package_names = get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/%s/SRPMS/main/release/" % latest, "main", d)
-# package_names += get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/%s/SRPMS/contrib/release/" % latest, "contrib")
- package_names += get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/%s/SRPMS/main/updates/" % latest, "updates", d)
-
- package_list=clean_package_list(package_names)
- return latest, package_list
+ package_names |= get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/%s/SRPMS/main/updates/" % latest, "updates", d)
+ return latest, package_names
def find_latest_debian_release(url, d):
"Find the latest listed debian release on the given url"
- releases = []
- for link in get_links_from_url(url, d):
- if link[:6] == "Debian":
- if ';' not in link:
- releases.append(link)
+ releases = [link.replace("Debian", "")
+ for link in get_links_from_url(url, d)
+ if link.startswith("Debian")]
releases.sort()
try:
- return releases.pop()[6:]
+ return releases[-1]
except:
return "_NotFound_"
def get_debian_style_source_package_list(url, section, d):
"Return the list of package-names stored in the debian style Sources.gz file"
- import tempfile
import gzip
- webpage = ''
- sock = create_socket(url,d)
- if sock:
- webpage = sock.read()
-
- tmpfile = tempfile.NamedTemporaryFile(mode='wb', prefix='oecore.', suffix='.tmp', delete=False)
- tmpfilename=tmpfile.name
- tmpfile.write(sock.read())
- tmpfile.close()
- bb.note("Reading %s: %s" % (url, section))
-
- f = gzip.open(tmpfilename)
- package_names = []
- for line in f:
- if line[:9] == "Package: ":
- package_names.append(line[9:-1] + ":" + section) # Also strip the '\n' at the end
- os.unlink(tmpfilename)
-
+ package_names = set()
+ for line in gzip.open(create_socket(url, d), mode="rt"):
+ if line.startswith("Package:"):
+ pkg = line.split(":", 1)[1].strip()
+ package_names.add(pkg + ":" + section)
return package_names
def get_latest_released_debian_source_package_list(d):
- "Returns list of all the name os packages in the latest debian distro"
+ "Returns list of all the name of packages in the latest debian distro"
latest = find_latest_debian_release("http://ftp.debian.org/debian/dists/", d)
- url = "http://ftp.debian.org/debian/dists/stable/main/source/Sources.gz"
+ url = "http://ftp.debian.org/debian/dists/stable/main/source/Sources.gz"
package_names = get_debian_style_source_package_list(url, "main", d)
-# url = "http://ftp.debian.org/debian/dists/stable/contrib/source/Sources.gz"
-# package_names += get_debian_style_source_package_list(url, "contrib")
- url = "http://ftp.debian.org/debian/dists/stable-proposed-updates/main/source/Sources.gz"
- package_names += get_debian_style_source_package_list(url, "updates", d)
- package_list=clean_package_list(package_names)
- return latest, package_list
+ url = "http://ftp.debian.org/debian/dists/stable-proposed-updates/main/source/Sources.gz"
+ package_names |= get_debian_style_source_package_list(url, "updates", d)
+ return latest, package_names
def find_latest_ubuntu_release(url, d):
- "Find the latest listed ubuntu release on the given url"
+ """
+ Find the latest listed Ubuntu release on the given ubuntu/dists/ URL.
+
+ To avoid matching development releases look for distributions that have
+ updates, so the resulting distro could be any supported release.
+ """
url += "?C=M;O=D" # Descending Sort by Last Modified
for link in get_links_from_url(url, d):
- if link[-8:] == "-updates":
- return link[:-8]
+ if "-updates" in link:
+ distro = link.replace("-updates", "")
+ return distro
return "_NotFound_"
def get_latest_released_ubuntu_source_package_list(d):
@@ -192,52 +150,45 @@ def get_latest_released_ubuntu_source_package_list(d):
latest = find_latest_ubuntu_release("http://archive.ubuntu.com/ubuntu/dists/", d)
url = "http://archive.ubuntu.com/ubuntu/dists/%s/main/source/Sources.gz" % latest
package_names = get_debian_style_source_package_list(url, "main", d)
-# url = "http://archive.ubuntu.com/ubuntu/dists/%s/multiverse/source/Sources.gz" % latest
-# package_names += get_debian_style_source_package_list(url, "multiverse")
-# url = "http://archive.ubuntu.com/ubuntu/dists/%s/universe/source/Sources.gz" % latest
-# package_names += get_debian_style_source_package_list(url, "universe")
url = "http://archive.ubuntu.com/ubuntu/dists/%s-updates/main/source/Sources.gz" % latest
- package_names += get_debian_style_source_package_list(url, "updates", d)
- package_list=clean_package_list(package_names)
- return latest, package_list
+ package_names |= get_debian_style_source_package_list(url, "updates", d)
+ return latest, package_names
def create_distro_packages_list(distro_check_dir, d):
+ import shutil
+
pkglst_dir = os.path.join(distro_check_dir, "package_lists")
- if not os.path.isdir (pkglst_dir):
- os.makedirs(pkglst_dir)
- # first clear old stuff
- for file in os.listdir(pkglst_dir):
- os.unlink(os.path.join(pkglst_dir, file))
-
- per_distro_functions = [
- ["Debian", get_latest_released_debian_source_package_list],
- ["Ubuntu", get_latest_released_ubuntu_source_package_list],
- ["Fedora", get_latest_released_fedora_source_package_list],
- ["OpenSuSE", get_latest_released_opensuse_source_package_list],
- ["Mandriva", get_latest_released_mandriva_source_package_list],
- ["Meego", get_latest_released_meego_source_package_list]
- ]
-
- from datetime import datetime
- begin = datetime.now()
- for distro in per_distro_functions:
- name = distro[0]
- release, package_list = distro[1](d)
+ bb.utils.remove(pkglst_dir, True)
+ bb.utils.mkdirhier(pkglst_dir)
+
+ per_distro_functions = (
+ ("Debian", get_latest_released_debian_source_package_list),
+ ("Ubuntu", get_latest_released_ubuntu_source_package_list),
+ ("Fedora", get_latest_released_fedora_source_package_list),
+ ("OpenSuSE", get_latest_released_opensuse_source_package_list),
+ ("Mandriva", get_latest_released_mandriva_source_package_list),
+ ("Meego", get_latest_released_meego_source_package_list)
+ )
+
+ for name, fetcher_func in per_distro_functions:
+ try:
+ release, package_list = fetcher_func(d)
+ except Exception as e:
+ bb.warn("Cannot fetch packages for %s: %s" % (name, e))
bb.note("Distro: %s, Latest Release: %s, # src packages: %d" % (name, release, len(package_list)))
+ if len(package_list) == 0:
+ bb.error("Didn't fetch any packages for %s %s" % (name, release))
+
package_list_file = os.path.join(pkglst_dir, name + "-" + release)
- f = open(package_list_file, "w+b")
- for pkg in package_list:
- f.write(pkg + "\n")
- f.close()
- end = datetime.now()
- delta = end - begin
- bb.note("package_list generatiosn took this much time: %d seconds" % delta.seconds)
+ with open(package_list_file, 'w') as f:
+ for pkg in sorted(package_list):
+ f.write(pkg + "\n")
def update_distro_data(distro_check_dir, datetime, d):
"""
- If distro packages list data is old then rebuild it.
- The operations has to be protected by a lock so that
- only one thread performes it at a time.
+ If distro packages list data is old then rebuild it.
+ The operations has to be protected by a lock so that
+ only one thread performes it at a time.
"""
if not os.path.isdir (distro_check_dir):
try:
@@ -264,25 +215,22 @@ def update_distro_data(distro_check_dir, datetime, d):
f.seek(0)
f.write(datetime)
- except OSError:
- raise Exception('Unable to read/write this file: %s' % (datetime_file))
+ except OSError as e:
+ raise Exception('Unable to open timestamp: %s' % e)
finally:
fcntl.lockf(f, fcntl.LOCK_UN)
f.close()
-
+
def compare_in_distro_packages_list(distro_check_dir, d):
if not os.path.isdir(distro_check_dir):
raise Exception("compare_in_distro_packages_list: invalid distro_check_dir passed")
-
+
localdata = bb.data.createCopy(d)
pkglst_dir = os.path.join(distro_check_dir, "package_lists")
matching_distros = []
- pn = d.getVar('PN', True)
- recipe_name = d.getVar('PN', True)
+ pn = recipe_name = d.getVar('PN', True)
bb.note("Checking: %s" % pn)
- trim_dict = dict({"-native":"-native", "-cross":"-cross", "-initial":"-initial"})
-
if pn.find("-native") != -1:
pnstripped = pn.split("-native")
localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True))
@@ -308,27 +256,22 @@ def compare_in_distro_packages_list(distro_check_dir, d):
recipe_name = pnstripped[0]
bb.note("Recipe: %s" % recipe_name)
- tmp = localdata.getVar('DISTRO_PN_ALIAS', True)
distro_exceptions = dict({"OE-Core":'OE-Core', "OpenedHand":'OpenedHand', "Intel":'Intel', "Upstream":'Upstream', "Windriver":'Windriver', "OSPDT":'OSPDT Approved', "Poky":'poky'})
-
- if tmp:
- list = tmp.split(' ')
- for str in list:
- if str and str.find("=") == -1 and distro_exceptions[str]:
- matching_distros.append(str)
+ tmp = localdata.getVar('DISTRO_PN_ALIAS', True) or ""
+ for str in tmp.split():
+ if str and str.find("=") == -1 and distro_exceptions[str]:
+ matching_distros.append(str)
distro_pn_aliases = {}
- if tmp:
- list = tmp.split(' ')
- for str in list:
- if str.find("=") != -1:
- (dist, pn_alias) = str.split('=')
- distro_pn_aliases[dist.strip().lower()] = pn_alias.strip()
-
+ for str in tmp.split():
+ if "=" in str:
+ (dist, pn_alias) = str.split('=')
+ distro_pn_aliases[dist.strip().lower()] = pn_alias.strip()
+
for file in os.listdir(pkglst_dir):
(distro, distro_release) = file.split("-")
- f = open(os.path.join(pkglst_dir, file), "rb")
+ f = open(os.path.join(pkglst_dir, file), "r")
for line in f:
(pkg, section) = line.split(":")
if distro.lower() in distro_pn_aliases:
@@ -341,16 +284,12 @@ def compare_in_distro_packages_list(distro_check_dir, d):
break
f.close()
-
- if tmp != None:
- list = tmp.split(' ')
- for item in list:
- matching_distros.append(item)
+ for item in tmp.split():
+ matching_distros.append(item)
bb.note("Matching: %s" % matching_distros)
return matching_distros
def create_log_file(d, logname):
- import subprocess
logpath = d.getVar('LOG_DIR', True)
bb.utils.mkdirhier(logpath)
logfn, logsuffix = os.path.splitext(logname)
@@ -359,7 +298,7 @@ def create_log_file(d, logname):
slogfile = os.path.join(logpath, logname)
if os.path.exists(slogfile):
os.remove(slogfile)
- subprocess.call("touch %s" % logfile, shell=True)
+ open(logfile, 'w+').close()
os.symlink(logfile, slogfile)
d.setVar('LOG_FILE', logfile)
return logfile
@@ -371,8 +310,8 @@ def save_distro_check_result(result, datetime, result_file, d):
if not logdir:
bb.error("LOG_DIR variable is not defined, can't write the distro_check results")
return
- if not os.path.isdir(logdir):
- os.makedirs(logdir)
+ bb.utils.mkdirhier(logdir)
+
line = pn
for i in result:
line = line + "," + i
--
2.8.1
^ permalink raw reply related
* Re: uninative binary?
From: Richard Purdie @ 2016-11-04 10:03 UTC (permalink / raw)
To: Gary Thomas, OE-core
In-Reply-To: <d1522ddb-4dd2-5f1c-5dc6-558ff6aefd75@mlbassoc.com>
On Fri, 2016-11-04 at 08:16 +0100, Gary Thomas wrote:
> Some of my customers need to be able to build without any
> network connectivity, so I normally use BB_NO_NETWORK="1"
>
> Is there a way to add the uninative "binary shim" to my
> download mirror? Given that the path includes a hash as
> a directory, it's not clear to me how to put it into my
> mirror.
>
> Thanks for any ideas
Set UNINATIVE_URL to point at your mirror?
If the file already exists in DL_DIR, it will be used without touching
the network.
Cheers,
Richard
^ permalink raw reply
* Re: [PATCH] db: disable the ARM assembler mutex code
From: Zhou, Li @ 2016-11-04 9:43 UTC (permalink / raw)
To: openembedded-core
In-Reply-To: <20161104090719.30795-1-li.zhou@windriver.com>
Some more explanations:
Berkeley DB's assembly mutex code for arm is related with arm arch version.
The old version DB code uses old arm instruction (such as swpb), which
isn't supported by new arm arch (such as armv7).
The new version DB (maybe from 6.1.29 or 6.1.26) uses new arm
instruction (such as ldrex/strex), which isn't supported by old arm arch
(such as armv5).
To support all the arm arches, and consider that the Berkeley DB code
will upgrade in the future, I suggest disable the ARM assembler mutex
code, and use the default pthreads mutex.
Thanks.
Zhou Li
On 11/04/2016 05:07 PM, Li Zhou wrote:
> The swpb in macro MUTEX_SET will cause "undefined instruction" error
> on the new arm arches which don't support this assembly instruction
> any more. If use ldrex/strex to replace swpb, the old arm arches don't
> support them. So to avoid this issue, just disable the ARM assembler
> mutex code, and use the default pthreads mutex.
>
> Signed-off-by: Li Zhou <li.zhou@windriver.com>
> ---
> meta/recipes-support/db/db_6.0.30.bb | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/meta/recipes-support/db/db_6.0.30.bb b/meta/recipes-support/db/db_6.0.30.bb
> index 50a469b..2d08b5e 100644
> --- a/meta/recipes-support/db/db_6.0.30.bb
> +++ b/meta/recipes-support/db/db_6.0.30.bb
> @@ -74,15 +74,6 @@ DB6_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disabl
>
> EXTRA_OECONF = "${DB6_CONFIG} --enable-shared --enable-cxx --with-sysroot"
>
> -# Override the MUTEX setting here, the POSIX library is
> -# the default - "POSIX/pthreads/library".
> -# Don't ignore the nice SWP instruction on the ARM:
> -# These enable the ARM assembler mutex code
> -ARM_MUTEX = "--with-mutex=ARM/gcc-assembly"
> -MUTEX = ""
> -MUTEX_arm = "${ARM_MUTEX}"
> -MUTEX_armeb = "${ARM_MUTEX}"
> -EXTRA_OECONF += "${MUTEX}"
> EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
>
> # Cancel the site stuff - it's set for db3 and destroys the
--
Best Regards!
Zhou Li
Phone number: 86-10-84778511
^ permalink raw reply
* [PATCH] db: disable the ARM assembler mutex code
From: Li Zhou @ 2016-11-04 9:12 UTC (permalink / raw)
To: openembedded-core
The swpb in macro MUTEX_SET will cause "undefined instruction" error
on the new arm arches which don't support this assembly instruction
any more. If use ldrex/strex to replace swpb, the old arm arches don't
support them. So to avoid this issue, just disable the ARM assembler
mutex code, and use the default pthreads mutex.
Signed-off-by: Li Zhou <li.zhou@windriver.com>
---
meta/recipes-support/db/db_6.0.30.bb | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/meta/recipes-support/db/db_6.0.30.bb b/meta/recipes-support/db/db_6.0.30.bb
index 50a469b..2d08b5e 100644
--- a/meta/recipes-support/db/db_6.0.30.bb
+++ b/meta/recipes-support/db/db_6.0.30.bb
@@ -74,15 +74,6 @@ DB6_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disabl
EXTRA_OECONF = "${DB6_CONFIG} --enable-shared --enable-cxx --with-sysroot"
-# Override the MUTEX setting here, the POSIX library is
-# the default - "POSIX/pthreads/library".
-# Don't ignore the nice SWP instruction on the ARM:
-# These enable the ARM assembler mutex code
-ARM_MUTEX = "--with-mutex=ARM/gcc-assembly"
-MUTEX = ""
-MUTEX_arm = "${ARM_MUTEX}"
-MUTEX_armeb = "${ARM_MUTEX}"
-EXTRA_OECONF += "${MUTEX}"
EXTRA_OEMAKE_class-target = "LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
# Cancel the site stuff - it's set for db3 and destroys the
--
2.9.3
^ permalink raw reply related
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox