* [PATCH] rpm: configure with staging native path for magic file
@ 2011-08-16 2:53 Adrian Alonso
2011-08-16 14:34 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Alonso @ 2011-08-16 2:53 UTC (permalink / raw)
To: openembedded-core
* Remove hardcoded system path for path-magic file in order
to avoid potential mistmatch between host and yocto native
tools as reported in yocto mailing list:
----
error: magic_load(ms, /usr/share/misc/magic) failed: File 5.4
supports only version 7 magic files. `/usr/share/misc/magic.mgc' is version 8
----
* Another solution is to update meta/recipes-devtools/file/file_5.04.bb to a
newer version ie. file_5.07.bb
Signed-off-by: Adrian Alonso <aalonso00@gmail.com>
---
meta/recipes-devtools/rpm/rpm_5.4.0.bb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index c0e3208..948ed84 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
@@ -45,7 +45,7 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}"
extrarpmdeps = "python perl"
extrarpmdeps_virtclass-native = ""
-PR = "r19"
+PR = "r20"
# rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed
# in order to extract the distribution SRPM into a format we can extract...
@@ -120,7 +120,7 @@ EXTRA_OECONF = "--verbose \
${WITH_DB} \
${WITH_Z} \
--with-file \
- --with-path-magic=/usr/share/misc/magic \
+ --with-path-magic=${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc \
--without-lua \
--without-tcl \
--with-syck=internal \
--
1.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] rpm: configure with staging native path for magic file
2011-08-16 2:53 [PATCH] rpm: configure with staging native path for magic file Adrian Alonso
@ 2011-08-16 14:34 ` Khem Raj
2011-08-16 17:02 ` Adrian Alonso
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2011-08-16 14:34 UTC (permalink / raw)
To: openembedded-core
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/15/2011 07:53 PM, Adrian Alonso wrote:
> * Remove hardcoded system path for path-magic file in order to avoid
> potential mistmatch between host and yocto native tools as reported
> in yocto mailing list: ---- error: magic_load(ms,
> /usr/share/misc/magic) failed: File 5.4 supports only version 7 magic
> files. `/usr/share/misc/magic.mgc' is version 8 ---- * Another
> solution is to update meta/recipes-devtools/file/file_5.04.bb to a
> newer version ie. file_5.07.bb
>
> Signed-off-by: Adrian Alonso <aalonso00@gmail.com> ---
> meta/recipes-devtools/rpm/rpm_5.4.0.bb | 4 ++-- 1 files changed, 2
> insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> b/meta/recipes-devtools/rpm/rpm_5.4.0.bb index c0e3208..948ed84
> 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb +++
> b/meta/recipes-devtools/rpm/rpm_5.4.0.bb @@ -45,7 +45,7 @@
> LIC_FILES_CHKSUM =
> "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" DEPENDS =
> "bzip2 zlib db openssl elfutils expat libpcre attr acl popt
> ${extrarpmdeps}" extrarpmdeps = "python perl"
> extrarpmdeps_virtclass-native = "" -PR = "r19" +PR = "r20"
>
> # rpm2cpio is a shell script, which is part of the rpm src.rpm. It
> is needed # in order to extract the distribution SRPM into a format
> we can extract... @@ -120,7 +120,7 @@ EXTRA_OECONF = "--verbose \
> ${WITH_DB} \ ${WITH_Z} \ --with-file \ -
> --with-path-magic=/usr/share/misc/magic \ +
> --with-path-magic=${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc \
this wont work for target rpm I guess
> --without-lua \ --without-tcl \ --with-syck=internal \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk5Kf+UACgkQuwUzVZGdMxTmPACgiKm1rdoDPbxVdYhHvCqKEyFJ
0A4Anjx/BxnCQm6ZiLKGXOrn2nbFHzyS
=jGQc
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] rpm: configure with staging native path for magic file
2011-08-16 14:34 ` Khem Raj
@ 2011-08-16 17:02 ` Adrian Alonso
2011-08-16 22:02 ` Saul Wold
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Alonso @ 2011-08-16 17:02 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 2719 bytes --]
Um you are right target rpm with conflict with the search path for the magic
file
So in order to close bug [1358] either apply first proposed patch [1] or
update
file_5.04.bb to file_5.07.bb that also solves the problem on my F15 dev
machine.
[1] https://lists.yoctoproject.org/pipermail/yocto/2011-August/004486.html
[1358] http://bugzilla.pokylinux.org/show_bug.cgi?id=1358
On Tue, Aug 16, 2011 at 9:34 AM, Khem Raj <raj.khem@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08/15/2011 07:53 PM, Adrian Alonso wrote:
> > * Remove hardcoded system path for path-magic file in order to avoid
> > potential mistmatch between host and yocto native tools as reported
> > in yocto mailing list: ---- error: magic_load(ms,
> > /usr/share/misc/magic) failed: File 5.4 supports only version 7 magic
> > files. `/usr/share/misc/magic.mgc' is version 8 ---- * Another
> > solution is to update meta/recipes-devtools/file/file_5.04.bb to a
> > newer version ie. file_5.07.bb
> >
> > Signed-off-by: Adrian Alonso <aalonso00@gmail.com> ---
> > meta/recipes-devtools/rpm/rpm_5.4.0.bb | 4 ++-- 1 files changed, 2
> > insertions(+), 2 deletions(-)
> >
> > diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> > b/meta/recipes-devtools/rpm/rpm_5.4.0.bb index c0e3208..948ed84
> > 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb +++
> > b/meta/recipes-devtools/rpm/rpm_5.4.0.bb @@ -45,7 +45,7 @@
> > LIC_FILES_CHKSUM =
> > "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" DEPENDS =
> > "bzip2 zlib db openssl elfutils expat libpcre attr acl popt
> > ${extrarpmdeps}" extrarpmdeps = "python perl"
> > extrarpmdeps_virtclass-native = "" -PR = "r19" +PR = "r20"
> >
> > # rpm2cpio is a shell script, which is part of the rpm src.rpm. It
> > is needed # in order to extract the distribution SRPM into a format
> > we can extract... @@ -120,7 +120,7 @@ EXTRA_OECONF = "--verbose \
> > ${WITH_DB} \ ${WITH_Z} \ --with-file \ -
> > --with-path-magic=/usr/share/misc/magic \ +
> > --with-path-magic=${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc \
>
> this wont work for target rpm I guess
>
> > --without-lua \ --without-tcl \ --with-syck=internal \
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iEYEARECAAYFAk5Kf+UACgkQuwUzVZGdMxTmPACgiKm1rdoDPbxVdYhHvCqKEyFJ
> 0A4Anjx/BxnCQm6ZiLKGXOrn2nbFHzyS
> =jGQc
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
--
Saludos
Adrian Alonso
http://aalonso.wordpress.com
[-- Attachment #2: Type: text/html, Size: 4132 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] rpm: configure with staging native path for magic file
2011-08-16 17:02 ` Adrian Alonso
@ 2011-08-16 22:02 ` Saul Wold
0 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2011-08-16 22:02 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 08/16/2011 10:02 AM, Adrian Alonso wrote:
> Um you are right target rpm with conflict with the search path for the
> magic file
>
> So in order to close bug [1358] either apply first proposed patch [1] or
> update
> file_5.04.bb <http://file_5.04.bb> to file_5.07.bb <http://file_5.07.bb>
> that also solves the problem on my F15 dev machine.
I just verified and the patch from Jani [1] is applied, is there still a
problem with OE-Core?
I would also welcome the update of file to 5.07.
Thanks
Sau!
> [1] https://lists.yoctoproject.org/pipermail/yocto/2011-August/004486.html
> [1358] http://bugzilla.pokylinux.org/show_bug.cgi?id=1358
>
>
> On Tue, Aug 16, 2011 at 9:34 AM, Khem Raj <raj.khem@gmail.com
> <mailto:raj.khem@gmail.com>> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08/15/2011 07:53 PM, Adrian Alonso wrote:
> > * Remove hardcoded system path for path-magic file in order to avoid
> > potential mistmatch between host and yocto native tools as reported
> > in yocto mailing list: ---- error: magic_load(ms,
> > /usr/share/misc/magic) failed: File 5.4 supports only version 7 magic
> > files. `/usr/share/misc/magic.mgc' is version 8 ---- * Another
> > solution is to update meta/recipes-devtools/file/file_5.04.bb
> <http://file_5.04.bb> to a
> > newer version ie. file_5.07.bb <http://file_5.07.bb>
> >
> > Signed-off-by: Adrian Alonso <aalonso00@gmail.com
> <mailto:aalonso00@gmail.com>> ---
> > meta/recipes-devtools/rpm/rpm_5.4.0.bb <http://rpm_5.4.0.bb> |
> 4 ++-- 1 files changed, 2
> > insertions(+), 2 deletions(-)
> >
> > diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> <http://rpm_5.4.0.bb>
> > b/meta/recipes-devtools/rpm/rpm_5.4.0.bb <http://rpm_5.4.0.bb>
> index c0e3208..948ed84
> > 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> <http://rpm_5.4.0.bb> +++
> > b/meta/recipes-devtools/rpm/rpm_5.4.0.bb <http://rpm_5.4.0.bb> @@
> -45,7 +45,7 @@
> > LIC_FILES_CHKSUM =
> > "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" DEPENDS =
> > "bzip2 zlib db openssl elfutils expat libpcre attr acl popt
> > ${extrarpmdeps}" extrarpmdeps = "python perl"
> > extrarpmdeps_virtclass-native = "" -PR = "r19" +PR = "r20"
> >
> > # rpm2cpio is a shell script, which is part of the rpm src.rpm. It
> > is needed # in order to extract the distribution SRPM into a format
> > we can extract... @@ -120,7 +120,7 @@ EXTRA_OECONF = "--verbose \
> > ${WITH_DB} \ ${WITH_Z} \ --with-file \ -
> > --with-path-magic=/usr/share/misc/magic \ +
> > --with-path-magic=${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc \
>
> this wont work for target rpm I guess
>
> > --without-lua \ --without-tcl \ --with-syck=internal \
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iEYEARECAAYFAk5Kf+UACgkQuwUzVZGdMxTmPACgiKm1rdoDPbxVdYhHvCqKEyFJ
> 0A4Anjx/BxnCQm6ZiLKGXOrn2nbFHzyS
> =jGQc
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> <mailto:Openembedded-core@lists.openembedded.org>
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
>
>
> --
> Saludos
> Adrian Alonso
> http://aalonso.wordpress.com
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-16 22:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 2:53 [PATCH] rpm: configure with staging native path for magic file Adrian Alonso
2011-08-16 14:34 ` Khem Raj
2011-08-16 17:02 ` Adrian Alonso
2011-08-16 22:02 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox