Philip Balister : i2c-tools : Stage i2c-dev.h header as i2c-dev-user.h.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Am 10.12.2010 um 15:36 schrieb git version control:
Quoted 5 lines
Module: openembedded.git Branch: org.openembedded.dev Commit: 48e6a063370a38a35f31a28efd8f6ce6ebf00840 URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=48e6a063370a38a35f31a28efd8f6ce6ebf00840
Quoted 8 lines
Author: Philip Balister <[email protected]> Date: Fri Dec 10 09:31:01 2010 -0500i2c-tools : Stage
i2c-dev.hheader asi2c-dev-user.h.Thanks to John Faith for suggesting this approach on the ML. The problem is i2c-tools overwrites the header staged by the kernel. This breaks programs that depend on the kernel header.
I don't think this a good solution. Now all programs break which expect this very i2c-dev.h as being staged by i2c-tools. Interestingly, the desktop distros don't bother about staging it differently, so why can't we do the same? Besides, the i2c-dev.h as staged by i2c-tools is supposed to be a superset. If it isn't we should complain with the i2c-tools developers.
What can we do in the meantime?
:M:
Quoted 16 lines · Dr. Michael Lauer
Am 10.12.2010 um 15:36 schrieb git version control:
Quoted 5 lines
Module: openembedded.git Branch: org.openembedded.dev Commit: 48e6a063370a38a35f31a28efd8f6ce6ebf00840 URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=48e6a063370a38a35f31a28efd8f6ce6ebf00840Quoted 8 lines
Author: Philip Balister<[email protected]> Date: Fri Dec 10 09:31:01 2010 -0500i2c-tools : Stage
i2c-dev.hheader asi2c-dev-user.h.Thanks to John Faith for suggesting this approach on the ML. The problem is i2c-tools overwrites the header staged by the kernel. This breaks programs that depend on the kernel header.
Quoted 8 lines
I don't think this a good solution. Now all programs break which expect this very
i2c-dev.has being staged by i2c-tools. Interestingly, the desktop distros don't bother about staging it differently, so why can't we do the same? Besides, thei2c-dev.has staged by i2c-tools is supposed to be a superset. If it isn't we should complain with the i2c-tools developers.What can we do in the meantime?
Can we get a survey of how other distros handle the situation?
My Fedora 14 box does not install the header from i2c-tools and there does not appear to be a dev package.
I do not think packages shoudl overwrite headers that come from the kernel.
Philip
Quoted 24 lines · Philip Balister
Quoted 23 lines · Dr. Michael Lauer
Am 10.12.2010 um 15:36 schrieb git version control:
Quoted 5 lines
Module: openembedded.git Branch: org.openembedded.dev Commit: 48e6a063370a38a35f31a28efd8f6ce6ebf00840 URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=48e6a063370a38a35f31a28efd8f6ce6ebf00840Quoted 8 lines
Author: Philip Balister<[email protected]> Date: Fri Dec 10 09:31:01 2010 -0500i2c-tools : Stage
i2c-dev.hheader asi2c-dev-user.h.Thanks to John Faith for suggesting this approach on the ML. The problem is i2c-tools overwrites the header staged by the kernel. This breaks programs that depend on the kernel header.
I don't think this a good solution. Now all programs break which expect this very
i2c-dev.has being staged by i2c-tools. Interestingly, the desktop distros don't bother about staging it differently, so why can't we do the same? Besides, thei2c-dev.has staged by i2c-tools is supposed to be a superset. If it isn't we should complain with the i2c-tools developers.
Quoted 3 lines
Quoted 1 line
What can we do in the meantime?
Can we get a survey of how other distros handle the situation?
Gentoo
i2c-tools-3.0.[012] (all versions)
src_install() {
emake install prefix="${D}"/usr || die
rm -rf "${D}"/usr/include # part of linux-headers...
}
so it's not part of i2c-tools package (gentoo doesn't have concept of -dev packages as it's always usefull to have all -dev stuff on source based distribution).
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 34 lines · Martin Jansa
Quoted 24 lines · Philip Balister
Quoted 23 lines · Dr. Michael Lauer
Am 10.12.2010 um 15:36 schrieb git version control:
Quoted 5 lines
Module: openembedded.git Branch: org.openembedded.dev Commit: 48e6a063370a38a35f31a28efd8f6ce6ebf00840 URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=48e6a063370a38a35f31a28efd8f6ce6ebf00840Quoted 8 lines
Author: Philip Balister<[email protected]> Date: Fri Dec 10 09:31:01 2010 -0500i2c-tools : Stage
i2c-dev.hheader asi2c-dev-user.h.Thanks to John Faith for suggesting this approach on the ML. The problem is i2c-tools overwrites the header staged by the kernel. This breaks programs that depend on the kernel header.
I don't think this a good solution. Now all programs break which expect this very
i2c-dev.has being staged by i2c-tools. Interestingly, the desktop distros don't bother about staging it differently, so why can't we do the same? Besides, thei2c-dev.has staged by i2c-tools is supposed to be a superset. If it isn't we should complain with the i2c-tools developers.Quoted 3 lines
Quoted 1 line
What can we do in the meantime?
Can we get a survey of how other distros handle the situation?
Gentoo
i2c-tools-3.0.[012] (all versions)src_install() { emake install prefix="${D}"/usr || die rm -rf "${D}"/usr/include # part of linux-headers
Quoted 6 lines
...
}so it's not part of i2c-tools package (gentoo doesn't have concept of -dev packages as it's always usefull to have all -dev stuff on source based distribution).
What are other distributions based on? Pixie dust? -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFNCHlEMkyGM64RGpERAjhiAJ0ZSOL1sTzWT1vz9B5BR4bW4wqwqwCgj2Zh BHqHQqhZva9Zh3MekrMNk7I=
=632I
-----END PGP SIGNATURE-----
Quoted 1 line · Koen Kooi
What are other distributions based on? Pixie dust?
I meant distritubions where end-user normally gets only recipes how to build from source on his machine instead of installing prebuilt binary packages shipped by distribution.
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 6 lines · Martin Jansa
Quoted 1 line · Koen Kooi
What are other distributions based on? Pixie dust?
I meant distritubions where end-user normally gets only recipes how to build from source on his machine instead of installing prebuilt binary packages shipped by distribution.
I am not sure there is a lot od software that uses the problematic header :)
Khem suggested we put the file in include/i2c-tools/i2c-dev.h. This means programs that need the i2c-tools version can adjust the header search path with a -I.
Philip
Quoted 9 lines · Philip Balister
Quoted 8 lines · Martin Jansa
Quoted 1 line · Koen Kooi
What are other distributions based on? Pixie dust?
I meant distritubions where end-user normally gets only recipes how to build from source
on his machine instead of installing prebuilt binary packages shipped by distribution.
Quoted 6 lines
I am not sure there is a lot od software that uses the problematic header :)
Khem suggested we put the file in
include/i2c-tools/i2c-dev.h. This means programs that need the i2c-tools version can adjust the header search path with a -I.
I think what Khem suggested was ${include}/i2c-tools/linux/i2c-dev.h, because otherwise programs including <linux/i2c-dev.h> would still pick up the kernel header, even if -I${include}/i2c-tools was prepended to the program's CPPFLAGS.
Regards,
Andreas
Quoted 13 lines · Andreas Oberritter
Quoted 12 lines · Philip Balister
Quoted 8 lines · Martin Jansa
Quoted 1 line · Koen Kooi
What are other distributions based on? Pixie dust?
I meant distritubions where end-user normally gets only recipes how to build from source
on his machine instead of installing prebuilt binary packages shipped by distribution.I am not sure there is a lot od software that uses the problematic header :)
Quoted 8 lines
Quoted 3 lines
Khem suggested we put the file in
include/i2c-tools/i2c-dev.h. This means programs that need the i2c-tools version can adjust the header search path with a -I.I think what Khem suggested was
${include}/i2c-tools/linux/i2c-dev.h, because otherwise programs including <linux/i2c-dev.h> would still pick up the kernel header, even if -I${include}/i2c-tools was prepended to the program's CPPFLAGS.
Yes. that would be ok too. However I think it will be better to differentiate here in source code. and I would expecte the inclusion of linux/i2c-dev.h to change to i2c-tools/i2c-dev.h that would make it more clear that a given package does not use linux provided header
Quoted 8 lines
Regards,
Andreas_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel