* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-07 20:43 [Buildroot] [PATCH v2 0/6] Add support for udisks package Marek Belisko
@ 2013-01-07 20:43 ` Marek Belisko
2013-01-07 21:26 ` Thomas Petazzoni
2013-01-07 20:43 ` [Buildroot] [PATCH v2 2/6] polkit: " Marek Belisko
` (4 subsequent siblings)
5 siblings, 1 reply; 35+ messages in thread
From: Marek Belisko @ 2013-01-07 20:43 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/Config.in | 1 +
package/sg3_utils/Config.in | 15 +++++++++++++++
package/sg3_utils/sg3_utils.mk | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+)
create mode 100644 package/sg3_utils/Config.in
create mode 100644 package/sg3_utils/sg3_utils.mk
diff --git a/package/Config.in b/package/Config.in
index 11e6f3a..e6153f0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -261,6 +261,7 @@ source "package/rpi-userland/Config.in"
source "package/sane-backends/Config.in"
source "package/sdparm/Config.in"
source "package/setserial/Config.in"
+source "package/sg3_utils/Config.in"
source "package/smartmontools/Config.in"
source "package/snowball-hdmiservice/Config.in"
source "package/sredird/Config.in"
diff --git a/package/sg3_utils/Config.in b/package/sg3_utils/Config.in
new file mode 100644
index 0000000..a2a3acc
--- /dev/null
+++ b/package/sg3_utils/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_SG3_UTILS
+ bool "sgutils"
+ depends on BR2_LARGEFILE
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ help
+ Low level utilities for devices that use a SCSI command set.
+
+ http://sg.danny.cz/sg/sg3_utils.html
+
+config BR2_PACKAGE_SG3_UTILS_PROGS
+ bool "install programs"
+ depends on BR2_PACKAGE_SG3_UTILS
+
+comment "sgutils requires a toolchain with LARGEFILE and threads support"
+ depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/sg3_utils/sg3_utils.mk b/package/sg3_utils/sg3_utils.mk
new file mode 100644
index 0000000..7a18a8d
--- /dev/null
+++ b/package/sg3_utils/sg3_utils.mk
@@ -0,0 +1,35 @@
+#############################################################
+#
+# sg3_utils
+#
+#############################################################
+SG3_UTILS_VERSION = 1.34
+SG3_UTILS_SITE = http://sg.danny.cz/sg/p/
+SG3_UTILS_LICENSE = BSD GPL
+SG3_UTILS_LICENSE_FILES = COPYING BSD_LICENSE
+
+# install the libsgutils2 library
+SG3_UTILS_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
+define SG3_UTILS_REMOVE_PROGS
+ for prog in \
+ dd decode_sense emc_trespass format get_config \
+ get_lba_status ident inq logs luns map26 \
+ map sgm_dd modes opcodes sgp_dd persist prevent \
+ raw rbuf rdac read readcap read_block_limits \
+ read_buffer read_long reassign referrals \
+ requests reset rmsn rtpg safte sanitize \
+ sat_identify sat_phy_event sat_set_features scan \
+ senddiag ses start stpg sync test_rwbuf turs \
+ unmap verify vpd write_buffer write_long \
+ write_same wr_mode ; do \
+ $(RM) $(TARGET_DIR)/usr/bin/sg_$${prog} ; \
+ done
+ $(RM) $(TARGET_DIR)/usr/bin/sginfo
+endef
+
+SG3_UTILS_POST_INSTALL_TARGET_HOOKS += SG3_UTILS_REMOVE_PROGS
+endif
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 35+ messages in thread* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-07 20:43 ` [Buildroot] [PATCH v2 1/6] sg3_utils: new package Marek Belisko
@ 2013-01-07 21:26 ` Thomas Petazzoni
2013-01-07 21:45 ` Belisko Marek
0 siblings, 1 reply; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 21:26 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Mon, 7 Jan 2013 21:43:14 +0100, Marek Belisko wrote:
> +config BR2_PACKAGE_SG3_UTILS
> + bool "sgutils"
> + depends on BR2_LARGEFILE
> + depends on BR2_TOOLCHAIN_HAS_THREADS
> + help
> + Low level utilities for devices that use a SCSI command set.
> +
You should mention here that this option only installs the library
(libraries?), but not the programs.
> +SG3_UTILS_LICENSE = BSD GPL
You should be work specific than just BSD and GPL. Like BSD-3c or
BSD-4c, GPLv2, GPLv2+, GPLv3, GPLv3+, etc.
Otherwise, looks good.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-07 21:26 ` Thomas Petazzoni
@ 2013-01-07 21:45 ` Belisko Marek
2013-01-07 21:52 ` Thomas Petazzoni
0 siblings, 1 reply; 35+ messages in thread
From: Belisko Marek @ 2013-01-07 21:45 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, Jan 7, 2013 at 10:26 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Marek Belisko,
>
> On Mon, 7 Jan 2013 21:43:14 +0100, Marek Belisko wrote:
>
>> +config BR2_PACKAGE_SG3_UTILS
>> + bool "sgutils"
>> + depends on BR2_LARGEFILE
>> + depends on BR2_TOOLCHAIN_HAS_THREADS
>> + help
>> + Low level utilities for devices that use a SCSI command set.
>> +
>
> You should mention here that this option only installs the library
> (libraries?), but not the programs.
OK.
>
>> +SG3_UTILS_LICENSE = BSD GPL
>
> You should be work specific than just BSD and GPL. Like BSD-3c or
> BSD-4c, GPLv2, GPLv2+, GPLv3, GPLv3+, etc.
After proper reading of COPYING file it seems it GPLv2+
"Some of the older utilities are covered by the GPL. More precisely:
You are free to distribute this software under the terms of the
GNU General Public License either version 2, or (at your option)
any later version." but in same file there is no mention about BSD
license version.
>
> Otherwise, looks good.
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Thanks,
mbe
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-07 21:45 ` Belisko Marek
@ 2013-01-07 21:52 ` Thomas Petazzoni
2013-01-07 21:56 ` Yann E. MORIN
0 siblings, 1 reply; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 21:52 UTC (permalink / raw)
To: buildroot
Dear Belisko Marek,
On Mon, 7 Jan 2013 22:45:50 +0100, Belisko Marek wrote:
> > You should be work specific than just BSD and GPL. Like BSD-3c or
> > BSD-4c, GPLv2, GPLv2+, GPLv3, GPLv3+, etc.
> After proper reading of COPYING file it seems it GPLv2+
> "Some of the older utilities are covered by the GPL. More precisely:
> You are free to distribute this software under the terms of the
> GNU General Public License either version 2, or (at your option)
> any later version." but in same file there is no mention about BSD
> license version.
There is a BSD_LICENSE file that contains a BSD three clause license,
so I would say:
SG3_UTILS_LICENSE = GPLv2+ BSD-3c
SG3_UTILS_LICENSE_FILES = COPYING BSD_LICENSE
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-07 21:52 ` Thomas Petazzoni
@ 2013-01-07 21:56 ` Yann E. MORIN
2013-01-08 8:05 ` Arnout Vandecappelle
0 siblings, 1 reply; 35+ messages in thread
From: Yann E. MORIN @ 2013-01-07 21:56 UTC (permalink / raw)
To: buildroot
Thomas, Belisko, All,
On Monday 07 January 2013 Thomas Petazzoni wrote:
> On Mon, 7 Jan 2013 22:45:50 +0100, Belisko Marek wrote:
> > > You should be work specific than just BSD and GPL. Like BSD-3c or
> > > BSD-4c, GPLv2, GPLv2+, GPLv3, GPLv3+, etc.
> > After proper reading of COPYING file it seems it GPLv2+
> > "Some of the older utilities are covered by the GPL. More precisely:
> > You are free to distribute this software under the terms of the
> > GNU General Public License either version 2, or (at your option)
> > any later version." but in same file there is no mention about BSD
> > license version.
>
> There is a BSD_LICENSE file that contains a BSD three clause license,
Actually, what matters in the content of the source files. Do some of
them refer to either license?
- if the files only refer to GPLv2+, then the BSD-3c does not apply,
- if the files only refer to BSD-3c, then the GPLv2+ does not apply,
- if some file refer to one or two of the licenses, then both apply.
(/me likes how he managed to line up the above! ;-) )
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-07 21:56 ` Yann E. MORIN
@ 2013-01-08 8:05 ` Arnout Vandecappelle
2013-01-15 20:48 ` Belisko Marek
0 siblings, 1 reply; 35+ messages in thread
From: Arnout Vandecappelle @ 2013-01-08 8:05 UTC (permalink / raw)
To: buildroot
On 07/01/13 22:56, Yann E. MORIN wrote:
> Thomas, Belisko, All,
>
> On Monday 07 January 2013 Thomas Petazzoni wrote:
>> On Mon, 7 Jan 2013 22:45:50 +0100, Belisko Marek wrote:
>>>> You should be work specific than just BSD and GPL. Like BSD-3c or
>>>> BSD-4c, GPLv2, GPLv2+, GPLv3, GPLv3+, etc.
>>> After proper reading of COPYING file it seems it GPLv2+
>>> "Some of the older utilities are covered by the GPL. More precisely:
>>> You are free to distribute this software under the terms of the
>>> GNU General Public License either version 2, or (at your option)
>>> any later version." but in same file there is no mention about BSD
>>> license version.
>>
>> There is a BSD_LICENSE file that contains a BSD three clause license,
>
> Actually, what matters in the content of the source files. Do some of
> them refer to either license?
> - if the files only refer to GPLv2+, then the BSD-3c does not apply,
> - if the files only refer to BSD-3c, then the GPLv2+ does not apply,
> - if some file refer to one or two of the licenses, then both apply.
- if all files refer to GPLv2+ and BSD-3c, then either applies.
Putting GPLv2+ BSD-3c implies that parts are GPLv2+, other parts and
BSD-3c. But it's also possible (and likely) that either applies. BTW,
it's not possible that both apply because they have conflicting terms.
Regards,
Arnout
>
> (/me likes how he managed to line up the above! ;-) )
>
> Regards,
> Yann E. MORIN.
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 35+ messages in thread* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-08 8:05 ` Arnout Vandecappelle
@ 2013-01-15 20:48 ` Belisko Marek
2013-01-15 20:59 ` Yann E. MORIN
0 siblings, 1 reply; 35+ messages in thread
From: Belisko Marek @ 2013-01-15 20:48 UTC (permalink / raw)
To: buildroot
Hi Arnout, All,
On Tue, Jan 8, 2013 at 9:05 AM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 07/01/13 22:56, Yann E. MORIN wrote:
>>
>> Thomas, Belisko, All,
>>
>> On Monday 07 January 2013 Thomas Petazzoni wrote:
>>>
>>> On Mon, 7 Jan 2013 22:45:50 +0100, Belisko Marek wrote:
>>>>>
>>>>> You should be work specific than just BSD and GPL. Like BSD-3c or
>>>>> BSD-4c, GPLv2, GPLv2+, GPLv3, GPLv3+, etc.
>>>>
>>>> After proper reading of COPYING file it seems it GPLv2+
>>>> "Some of the older utilities are covered by the GPL. More precisely:
>>>> You are free to distribute this software under the terms of the
>>>> GNU General Public License either version 2, or (at your option)
>>>> any later version." but in same file there is no mention about BSD
>>>> license version.
>>>
>>>
>>> There is a BSD_LICENSE file that contains a BSD three clause license,
>>
>>
>> Actually, what matters in the content of the source files. Do some of
>> them refer to either license?
>> - if the files only refer to GPLv2+, then the BSD-3c does not apply,
>> - if the files only refer to BSD-3c, then the GPLv2+ does not apply,
>> - if some file refer to one or two of the licenses, then both apply.
>
>
> - if all files refer to GPLv2+ and BSD-3c, then either applies.
>
> Putting GPLv2+ BSD-3c implies that parts are GPLv2+, other parts and BSD-3c.
> But it's also possible (and likely) that either applies. BTW, it's not
> possible that both apply because they have conflicting terms.
Hmm what then should be in SG3_UTILS_LICENSE? I've checked files and
some of them are BSD some GPLv2.
>
> Regards,
> Arnout
>
>
>>
>> (/me likes how he managed to line up the above! ;-) )
>>
>> Regards,
>> Yann E. MORIN.
>>
>
>
> --
> Arnout Vandecappelle arnout at mind be
> Senior Embedded Software Architect +32-16-286500
> Essensium/Mind http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Thanks,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-15 20:48 ` Belisko Marek
@ 2013-01-15 20:59 ` Yann E. MORIN
2013-01-15 21:04 ` Belisko Marek
0 siblings, 1 reply; 35+ messages in thread
From: Yann E. MORIN @ 2013-01-15 20:59 UTC (permalink / raw)
To: buildroot
Belisko, Arnout, All,
On Tuesday 15 January 2013 Belisko Marek wrote:
> On Tue, Jan 8, 2013 at 9:05 AM, Arnout Vandecappelle <arnout@mind.be> wrote:
> > On 07/01/13 22:56, Yann E. MORIN wrote:
> >> Actually, what matters in the content of the source files. Do some of
> >> them refer to either license?
> >> - if the files only refer to GPLv2+, then the BSD-3c does not apply,
> >> - if the files only refer to BSD-3c, then the GPLv2+ does not apply,
> >> - if some file refer to one or two of the licenses, then both apply.
> >
> >
> > - if all files refer to GPLv2+ and BSD-3c, then either applies.
> >
> > Putting GPLv2+ BSD-3c implies that parts are GPLv2+, other parts and BSD-3c.
> > But it's also possible (and likely) that either applies. BTW, it's not
> > possible that both apply because they have conflicting terms.
Yes, the BSD-3c *is* compatible with the GPLv2. See:
http://directory.fsf.org/wiki/License:BSD_3Clause
> Hmm what then should be in SG3_UTILS_LICENSE? I've checked files and
> some of them are BSD some GPLv2.
Assuming that the libraries are dual-licensed LGPLv2.1+ / BSD-3c, and the
programs are dual-licensed GPLv2+ / BSD-3c, I'd do something like:
SG3_UTILS_LICENCE = LGPLv2.1+ BSD-3c
ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
SG3_UTILS_LICENCE += GPLV2+ BSD-3c
endif
Adapt to the real situation, of course.
Keep in minf that we try to keep the legal-info stuff correct, but we only
advertise it as a non-authoritative status, and it is the responsibility of
the person/entity that distributes the firmware to check the legal-info
for correctness.
I think we should make that crystal-clear when generating the legal-info,
so there is no ambiguity.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 35+ messages in thread* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-15 20:59 ` Yann E. MORIN
@ 2013-01-15 21:04 ` Belisko Marek
2013-01-15 21:29 ` Yann E. MORIN
0 siblings, 1 reply; 35+ messages in thread
From: Belisko Marek @ 2013-01-15 21:04 UTC (permalink / raw)
To: buildroot
Hi Yann, All,
On Tue, Jan 15, 2013 at 9:59 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Belisko, Arnout, All,
>
> On Tuesday 15 January 2013 Belisko Marek wrote:
>> On Tue, Jan 8, 2013 at 9:05 AM, Arnout Vandecappelle <arnout@mind.be> wrote:
>> > On 07/01/13 22:56, Yann E. MORIN wrote:
>> >> Actually, what matters in the content of the source files. Do some of
>> >> them refer to either license?
>> >> - if the files only refer to GPLv2+, then the BSD-3c does not apply,
>> >> - if the files only refer to BSD-3c, then the GPLv2+ does not apply,
>> >> - if some file refer to one or two of the licenses, then both apply.
>> >
>> >
>> > - if all files refer to GPLv2+ and BSD-3c, then either applies.
>> >
>> > Putting GPLv2+ BSD-3c implies that parts are GPLv2+, other parts and BSD-3c.
>> > But it's also possible (and likely) that either applies. BTW, it's not
>> > possible that both apply because they have conflicting terms.
>
> Yes, the BSD-3c *is* compatible with the GPLv2. See:
> http://directory.fsf.org/wiki/License:BSD_3Clause
>
>> Hmm what then should be in SG3_UTILS_LICENSE? I've checked files and
>> some of them are BSD some GPLv2.
>
> Assuming that the libraries are dual-licensed LGPLv2.1+ / BSD-3c, and the
> programs are dual-licensed GPLv2+ / BSD-3c, I'd do something like:
>
> SG3_UTILS_LICENCE = LGPLv2.1+ BSD-3c
> ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
> SG3_UTILS_LICENCE += GPLV2+ BSD-3c
> endif
It's bit complicated. All library files are BSD only but utils files
are mixed (BSD + GPLv2).
>
> Adapt to the real situation, of course.
>
> Keep in minf that we try to keep the legal-info stuff correct, but we only
> advertise it as a non-authoritative status, and it is the responsibility of
> the person/entity that distributes the firmware to check the legal-info
> for correctness.
>
> I think we should make that crystal-clear when generating the legal-info,
> so there is no ambiguity.
>
> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
> | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
> '------------------------------^-------^------------------^--------------------'
>
Cheers,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-15 21:04 ` Belisko Marek
@ 2013-01-15 21:29 ` Yann E. MORIN
2013-01-16 8:17 ` Arnout Vandecappelle
0 siblings, 1 reply; 35+ messages in thread
From: Yann E. MORIN @ 2013-01-15 21:29 UTC (permalink / raw)
To: buildroot
Belisko, All,
On Tuesday 15 January 2013 Belisko Marek wrote:
> On Tue, Jan 15, 2013 at 9:59 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> > SG3_UTILS_LICENCE = LGPLv2.1+ BSD-3c
> > ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
> > SG3_UTILS_LICENCE += GPLV2+ BSD-3c
> > endif
> It's bit complicated. All library files are BSD only but utils files
> are mixed (BSD + GPLv2).
Then:
SG3_UTILS_LICENSE = BSD-3c
ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
SG3_UTILS_LICENSE += GPLV2+
endif
(Note: LICENSE with a 'S', not LICENCE, my bad...)
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 1/6] sg3_utils: new package
2013-01-15 21:29 ` Yann E. MORIN
@ 2013-01-16 8:17 ` Arnout Vandecappelle
0 siblings, 0 replies; 35+ messages in thread
From: Arnout Vandecappelle @ 2013-01-16 8:17 UTC (permalink / raw)
To: buildroot
On 15/01/13 22:29, Yann E. MORIN wrote:
> Belisko, All,
>
> On Tuesday 15 January 2013 Belisko Marek wrote:
>> On Tue, Jan 15, 2013 at 9:59 PM, Yann E. MORIN<yann.morin.1998@free.fr> wrote:
>>> SG3_UTILS_LICENCE = LGPLv2.1+ BSD-3c
>>> ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
>>> SG3_UTILS_LICENCE += GPLV2+ BSD-3c
>>> endif
>> It's bit complicated. All library files are BSD only but utils files
>> are mixed (BSD + GPLv2).
>
> Then:
>
> SG3_UTILS_LICENSE = BSD-3c
> ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
> SG3_UTILS_LICENSE += GPLV2+
> endif
Agreed.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 2/6] polkit: new package
2013-01-07 20:43 [Buildroot] [PATCH v2 0/6] Add support for udisks package Marek Belisko
2013-01-07 20:43 ` [Buildroot] [PATCH v2 1/6] sg3_utils: new package Marek Belisko
@ 2013-01-07 20:43 ` Marek Belisko
2013-01-07 21:26 ` Thomas Petazzoni
2013-01-07 21:31 ` Thomas Petazzoni
2013-01-07 20:43 ` [Buildroot] [PATCH v2 3/6] libatasmart: " Marek Belisko
` (3 subsequent siblings)
5 siblings, 2 replies; 35+ messages in thread
From: Marek Belisko @ 2013-01-07 20:43 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/Config.in | 1 +
package/polkit/Config.in | 10 ++++++++++
package/polkit/polkit.mk | 20 ++++++++++++++++++++
3 files changed, 31 insertions(+)
create mode 100644 package/polkit/Config.in
create mode 100644 package/polkit/polkit.mk
diff --git a/package/Config.in b/package/Config.in
index e6153f0..c889d8a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -761,6 +761,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/module-init-tools/Config.in"
endif
source "package/monit/Config.in"
+source "package/polkit/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/procps/Config.in"
source "package/psmisc/Config.in"
diff --git a/package/polkit/Config.in b/package/polkit/Config.in
new file mode 100644
index 0000000..cb2fecd
--- /dev/null
+++ b/package/polkit/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_POLKIT
+ bool "polkit"
+ select BR2_PACKAGE_LIBGLIB2
+ select BR2_PACKAGE_EXPAT
+ help
+ PolicyKit is a toolkit for defining and handling
+ authorizations. It is used for allowing unprivileged
+ processes to speak to privileged processes.
+
+ http://www.freedesktop.org/wiki/Software/polkit
diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
new file mode 100644
index 0000000..35e8b9f
--- /dev/null
+++ b/package/polkit/polkit.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# polkit
+#
+#############################################################
+POLKIT_VERSION = 0.103
+POLKIT_SITE = http://www.freedesktop.org/software/polkit/releases/
+POLKIT_LICENCE = GPL
+POLKIT_LICENCE_FILES = COPYING
+
+POLKIT_INSTALL_STAGING = YES
+
+POLKIT_DEPENDENCIES = libglib2 host-intltool expat
+
+# We could also support --with-authfw=pam
+POLKIT_CONF_OPT = \
+ --with-authfw=shadow \
+ --with-os-type=unknown
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 35+ messages in thread* [Buildroot] [PATCH v2 2/6] polkit: new package
2013-01-07 20:43 ` [Buildroot] [PATCH v2 2/6] polkit: " Marek Belisko
@ 2013-01-07 21:26 ` Thomas Petazzoni
2013-01-07 21:31 ` Thomas Petazzoni
1 sibling, 0 replies; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 21:26 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Mon, 7 Jan 2013 21:43:15 +0100, Marek Belisko wrote:
> +POLKIT_LICENCE = GPL
LICENSE, not LICENCE. And be more specific than GPL.
> +POLKIT_LICENCE_FILES = COPYING
LICENSE_FILES.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 2/6] polkit: new package
2013-01-07 20:43 ` [Buildroot] [PATCH v2 2/6] polkit: " Marek Belisko
2013-01-07 21:26 ` Thomas Petazzoni
@ 2013-01-07 21:31 ` Thomas Petazzoni
1 sibling, 0 replies; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 21:31 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Mon, 7 Jan 2013 21:43:15 +0100, Marek Belisko wrote:
> + select BR2_PACKAGE_LIBGLIB2
> + select BR2_PACKAGE_EXPAT
You should have:
depends on BR2_USE_WCHAR # gettext
here, because libglib2 has this dependency.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 3/6] libatasmart: new package.
2013-01-07 20:43 [Buildroot] [PATCH v2 0/6] Add support for udisks package Marek Belisko
2013-01-07 20:43 ` [Buildroot] [PATCH v2 1/6] sg3_utils: new package Marek Belisko
2013-01-07 20:43 ` [Buildroot] [PATCH v2 2/6] polkit: " Marek Belisko
@ 2013-01-07 20:43 ` Marek Belisko
2013-01-07 21:30 ` Thomas Petazzoni
2013-01-07 20:43 ` [Buildroot] [PATCH v2 4/6] lvm2: Install devmapper.pc to staging/target pkgconfig directory Marek Belisko
` (2 subsequent siblings)
5 siblings, 1 reply; 35+ messages in thread
From: Marek Belisko @ 2013-01-07 20:43 UTC (permalink / raw)
To: buildroot
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/Config.in | 2 ++
package/libatasmart/Config.in | 11 +++++++++++
package/libatasmart/libatasmart.mk | 17 +++++++++++++++++
3 files changed, 30 insertions(+)
create mode 100644 package/libatasmart/Config.in
create mode 100644 package/libatasmart/libatasmart.mk
diff --git a/package/Config.in b/package/Config.in
index c889d8a..53bb5be 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -239,6 +239,8 @@ source "package/iostat/Config.in"
source "package/irda-utils/Config.in"
source "package/kbd/Config.in"
source "package/lcdproc/Config.in"
+source "package/libatasmart/Config.in"
+source "package/linux-firmware/Config.in"
source "package/lm-sensors/Config.in"
source "package/lshw/Config.in"
source "package/lsuio/Config.in"
diff --git a/package/libatasmart/Config.in b/package/libatasmart/Config.in
new file mode 100644
index 0000000..4fadb22
--- /dev/null
+++ b/package/libatasmart/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBATASMART
+ bool "libatasmart"
+ depends on BR2_PACKAGE_UDEV
+ help
+ Reading and Parsing Library.
+ As the name suggests libatasmart only does ATA S.M.A.R.T.
+
+ http://www.linuxfromscratch.org/blfs/view/svn/general/libatasmart.html
+
+comment "libatasmart requires udev to be enabled"
+ depends on !BR2_PACKAGE_UDEV
diff --git a/package/libatasmart/libatasmart.mk b/package/libatasmart/libatasmart.mk
new file mode 100644
index 0000000..3f8e36b
--- /dev/null
+++ b/package/libatasmart/libatasmart.mk
@@ -0,0 +1,17 @@
+#############################################################
+#
+# libatasmart
+#
+#############################################################
+LIBATASMART_VERSION = 0.19
+LIBATASMART_SOURCE = libatasmart-$(LIBATASMART_VERSION).tar.xz
+LIBATASMART_SITE = http://0pointer.de/public
+LIBATASMART_LICENCE = LGPL
+LIBATASMART_LICELCE_FILE = LGPL
+LIBATASMART_INSTALL_STAGING = YES
+
+LIBATASMART_AUTORECONF = YES
+
+LIBATASMART_DEPENDENCIES = udev
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 35+ messages in thread* [Buildroot] [PATCH v2 3/6] libatasmart: new package.
2013-01-07 20:43 ` [Buildroot] [PATCH v2 3/6] libatasmart: " Marek Belisko
@ 2013-01-07 21:30 ` Thomas Petazzoni
2013-01-07 21:52 ` Belisko Marek
0 siblings, 1 reply; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 21:30 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Mon, 7 Jan 2013 21:43:16 +0100, Marek Belisko wrote:
> diff --git a/package/Config.in b/package/Config.in
> index c889d8a..53bb5be 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -239,6 +239,8 @@ source "package/iostat/Config.in"
> source "package/irda-utils/Config.in"
> source "package/kbd/Config.in"
> source "package/lcdproc/Config.in"
> +source "package/libatasmart/Config.in"
> +source "package/linux-firmware/Config.in"
Seems like a mismerge. You shouldn't be adding a
linux-firmware/Config.in include.
> +config BR2_PACKAGE_LIBATASMART
> + bool "libatasmart"
> + depends on BR2_PACKAGE_UDEV
> + help
> + Reading and Parsing Library.
This description sounds odd. Reading and Parsing Library for what?
> + As the name suggests libatasmart only does ATA S.M.A.R.T.
> +
> + http://www.linuxfromscratch.org/blfs/view/svn/general/libatasmart.html
> +
> +comment "libatasmart requires udev to be enabled"
> + depends on !BR2_PACKAGE_UDEV
Could you detail a little why udev is a dependency. Is libudev a
dependency? Something else? We need to understand if it's a build
dependency, a runtime dependency, the requirement for the system to
actually use and run udev, etc.
> diff --git a/package/libatasmart/libatasmart.mk b/package/libatasmart/libatasmart.mk
> new file mode 100644
> index 0000000..3f8e36b
> --- /dev/null
> +++ b/package/libatasmart/libatasmart.mk
> @@ -0,0 +1,17 @@
> +#############################################################
> +#
> +# libatasmart
> +#
> +#############################################################
> +LIBATASMART_VERSION = 0.19
> +LIBATASMART_SOURCE = libatasmart-$(LIBATASMART_VERSION).tar.xz
> +LIBATASMART_SITE = http://0pointer.de/public
> +LIBATASMART_LICENCE = LGPL
LICENSE. Be more specific that LGPL.
> +LIBATASMART_LICELCE_FILE = LGPL
LICENSE_FILES
> +LIBATASMART_INSTALL_STAGING = YES
> +
> +LIBATASMART_AUTORECONF = YES
Please add a comment here that explains why AUTORECONF = YES is needed.
> +
> +LIBATASMART_DEPENDENCIES = udev
> +
> +$(eval $(autotools-package))
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 3/6] libatasmart: new package.
2013-01-07 21:30 ` Thomas Petazzoni
@ 2013-01-07 21:52 ` Belisko Marek
2013-01-07 21:53 ` Thomas Petazzoni
0 siblings, 1 reply; 35+ messages in thread
From: Belisko Marek @ 2013-01-07 21:52 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, Jan 7, 2013 at 10:30 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Marek Belisko,
>
> On Mon, 7 Jan 2013 21:43:16 +0100, Marek Belisko wrote:
>
>> diff --git a/package/Config.in b/package/Config.in
>> index c889d8a..53bb5be 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -239,6 +239,8 @@ source "package/iostat/Config.in"
>> source "package/irda-utils/Config.in"
>> source "package/kbd/Config.in"
>> source "package/lcdproc/Config.in"
>> +source "package/libatasmart/Config.in"
>> +source "package/linux-firmware/Config.in"
>
> Seems like a mismerge. You shouldn't be adding a
> linux-firmware/Config.in include.
Right. I did rebase to actual master and make wrong config resolve.
Will fix that.
>
>> +config BR2_PACKAGE_LIBATASMART
>> + bool "libatasmart"
>> + depends on BR2_PACKAGE_UDEV
>> + help
>> + Reading and Parsing Library.
>
> This description sounds odd. Reading and Parsing Library for what?
>
>> + As the name suggests libatasmart only does ATA S.M.A.R.T.
>> +
>> + http://www.linuxfromscratch.org/blfs/view/svn/general/libatasmart.html
>> +
>> +comment "libatasmart requires udev to be enabled"
>> + depends on !BR2_PACKAGE_UDEV
>
> Could you detail a little why udev is a dependency. Is libudev a
> dependency? Something else? We need to understand if it's a build
> dependency, a runtime dependency, the requirement for the system to
> actually use and run udev, etc.
libudev is dependency for libatasmart.
>
>> diff --git a/package/libatasmart/libatasmart.mk b/package/libatasmart/libatasmart.mk
>> new file mode 100644
>> index 0000000..3f8e36b
>> --- /dev/null
>> +++ b/package/libatasmart/libatasmart.mk
>> @@ -0,0 +1,17 @@
>> +#############################################################
>> +#
>> +# libatasmart
>> +#
>> +#############################################################
>> +LIBATASMART_VERSION = 0.19
>> +LIBATASMART_SOURCE = libatasmart-$(LIBATASMART_VERSION).tar.xz
>> +LIBATASMART_SITE = http://0pointer.de/public
>> +LIBATASMART_LICENCE = LGPL
>
> LICENSE. Be more specific that LGPL.
>
>> +LIBATASMART_LICELCE_FILE = LGPL
>
> LICENSE_FILES
>
>> +LIBATASMART_INSTALL_STAGING = YES
>> +
>> +LIBATASMART_AUTORECONF = YES
>
> Please add a comment here that explains why AUTORECONF = YES is needed.
>
>> +
>> +LIBATASMART_DEPENDENCIES = udev
>> +
>> +$(eval $(autotools-package))
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Thanks,
mbe
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 3/6] libatasmart: new package.
2013-01-07 21:52 ` Belisko Marek
@ 2013-01-07 21:53 ` Thomas Petazzoni
0 siblings, 0 replies; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 21:53 UTC (permalink / raw)
To: buildroot
Dear Belisko Marek,
On Mon, 7 Jan 2013 22:52:08 +0100, Belisko Marek wrote:
> > Could you detail a little why udev is a dependency. Is libudev a
> > dependency? Something else? We need to understand if it's a build
> > dependency, a runtime dependency, the requirement for the system to
> > actually use and run udev, etc.
> libudev is dependency for libatasmart.
Ok, then maybe put a comment on top of the "depends on
BR2_PACKAGE_UDEV".
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 4/6] lvm2: Install devmapper.pc to staging/target pkgconfig directory.
2013-01-07 20:43 [Buildroot] [PATCH v2 0/6] Add support for udisks package Marek Belisko
` (2 preceding siblings ...)
2013-01-07 20:43 ` [Buildroot] [PATCH v2 3/6] libatasmart: " Marek Belisko
@ 2013-01-07 20:43 ` Marek Belisko
2013-01-07 20:43 ` [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library Marek Belisko
2013-01-07 20:43 ` [Buildroot] [PATCH v2 6/6] udisks: new package Marek Belisko
5 siblings, 0 replies; 35+ messages in thread
From: Marek Belisko @ 2013-01-07 20:43 UTC (permalink / raw)
To: buildroot
Without this change if some package which have dependency on device mapper and use
pkgconfig to check version always fail to find library because devmapper.pc file wasn't
installed.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/lvm2/lvm2.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index 52326ea..f54caa4 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -21,7 +21,7 @@ LVM2_BINS = \
# Make sure that binaries and libraries are installed with write
# permissions for the owner.
-LVM2_CONF_OPT += --enable-write_install
+LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig
# LVM2 uses autoconf, but not automake, and the build system does not
# take into account the CC passed at configure time.
--
1.7.10.4
^ permalink raw reply related [flat|nested] 35+ messages in thread* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-01-07 20:43 [Buildroot] [PATCH v2 0/6] Add support for udisks package Marek Belisko
` (3 preceding siblings ...)
2013-01-07 20:43 ` [Buildroot] [PATCH v2 4/6] lvm2: Install devmapper.pc to staging/target pkgconfig directory Marek Belisko
@ 2013-01-07 20:43 ` Marek Belisko
2013-01-07 21:38 ` Thomas Petazzoni
2013-02-03 14:20 ` Peter Korsgaard
2013-01-07 20:43 ` [Buildroot] [PATCH v2 6/6] udisks: new package Marek Belisko
5 siblings, 2 replies; 35+ messages in thread
From: Marek Belisko @ 2013-01-07 20:43 UTC (permalink / raw)
To: buildroot
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/lvm2/Config.in | 6 ++++++
package/lvm2/lvm2.mk | 8 +++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in
index 30af14e..bb41c0a 100644
--- a/package/lvm2/Config.in
+++ b/package/lvm2/Config.in
@@ -21,5 +21,11 @@ config BR2_PACKAGE_LVM2_DMSETUP_ONLY
help
Install dmsetup only and skip the LVM2 suite.
+config BR2_PACKAGE_LVM2_APP_LIBRARY
+ bool "install application library"
+ depends on BR2_PACKAGE_LVM2
+ help
+ Install application library (liblvm2app2).
+
comment "lvm2 requires a toolchain with LARGEFILE support"
depends on !BR2_LARGEFILE
diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index f54caa4..213ef65 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -21,7 +21,7 @@ LVM2_BINS = \
# Make sure that binaries and libraries are installed with write
# permissions for the owner.
-LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig
+LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig --enable-applib
# LVM2 uses autoconf, but not automake, and the build system does not
# take into account the CC passed at configure time.
@@ -41,6 +41,12 @@ LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install_device-mapper
LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install_device-mapper
endif
+ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
+LVM2_MAKE_OPT += liblvm
+LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
+LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+endif
+
define LVM2_UNINSTALL_STAGING_CMDS
rm -f $(addprefix $(STAGING_DIR)/usr/sbin/,$(LVM2_BINS))
rm -f $(addprefix $(STAGING_DIR)/usr/lib/,libdevmapper.so*)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 35+ messages in thread* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-01-07 20:43 ` [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library Marek Belisko
@ 2013-01-07 21:38 ` Thomas Petazzoni
2013-01-07 21:58 ` Belisko Marek
2013-01-15 20:53 ` Belisko Marek
2013-02-03 14:20 ` Peter Korsgaard
1 sibling, 2 replies; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 21:38 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Mon, 7 Jan 2013 21:43:18 +0100, Marek Belisko wrote:
> +config BR2_PACKAGE_LVM2_APP_LIBRARY
> + bool "install application library"
> + depends on BR2_PACKAGE_LVM2
> + help
> + Install application library (liblvm2app2).
> +
> +ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
> +LVM2_MAKE_OPT += liblvm
> +LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
> +LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
> +endif
I am not quite sure this is correct. Currently, the package works as
follows (if I understand correctly):
* if BR2_PACKAGE_LVM2=y but BR2_PACKAGE_LVM2_DMSETUP_ONLY is not
enabled, then LVM2_MAKE_OPT is empty, so it just runs the default
make target, which presumably builds everything.
* if BR2_PACKAGE_LVM2=y and BR2_PACKAGE_LVM2_DMSETUP_ONLY=y, then
LVM2_MAKE_OPT is set to device-mapper, in which case it only builds
the device mapper code.
So now, you add a third BR2_PACKAGE_LVM2_APP_LIBRARY option. But if I
do BR2_PACKAGE_LVM2=y and BR2_PACKAGE_LVM2_APP_LIBRARY=y, it will only
build the library and not the rest, which is not what we expect.
I'd say that the DMSETUP_ONLY thing is a bad idea from the beginning,
so I'm not sure what's the best way moving forward.
Are you sure liblvm doesn't get build and installed by the default
BR2_PACKAGE_LVM2=y configuration?
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-01-07 21:38 ` Thomas Petazzoni
@ 2013-01-07 21:58 ` Belisko Marek
2013-01-15 20:53 ` Belisko Marek
1 sibling, 0 replies; 35+ messages in thread
From: Belisko Marek @ 2013-01-07 21:58 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, Jan 7, 2013 at 10:38 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Marek Belisko,
>
> On Mon, 7 Jan 2013 21:43:18 +0100, Marek Belisko wrote:
>
>> +config BR2_PACKAGE_LVM2_APP_LIBRARY
>> + bool "install application library"
>> + depends on BR2_PACKAGE_LVM2
>> + help
>> + Install application library (liblvm2app2).
>> +
>
>> +ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
>> +LVM2_MAKE_OPT += liblvm
>> +LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
>> +LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
>> +endif
>
> I am not quite sure this is correct. Currently, the package works as
> follows (if I understand correctly):
>
> * if BR2_PACKAGE_LVM2=y but BR2_PACKAGE_LVM2_DMSETUP_ONLY is not
> enabled, then LVM2_MAKE_OPT is empty, so it just runs the default
> make target, which presumably builds everything.
>
> * if BR2_PACKAGE_LVM2=y and BR2_PACKAGE_LVM2_DMSETUP_ONLY=y, then
> LVM2_MAKE_OPT is set to device-mapper, in which case it only builds
> the device mapper code.
>
> So now, you add a third BR2_PACKAGE_LVM2_APP_LIBRARY option. But if I
> do BR2_PACKAGE_LVM2=y and BR2_PACKAGE_LVM2_APP_LIBRARY=y, it will only
> build the library and not the rest, which is not what we expect.
>
> I'd say that the DMSETUP_ONLY thing is a bad idea from the beginning,
> so I'm not sure what's the best way moving forward.
>
> Are you sure liblvm doesn't get build and installed by the default
> BR2_PACKAGE_LVM2=y configuration?
Nope and this was intention of this patch to add ability to build also library.
lvm app library is necessary as dependency for udisk (if enabled lvm2
support - disabled by default).
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Regards,
mbe
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-01-07 21:38 ` Thomas Petazzoni
2013-01-07 21:58 ` Belisko Marek
@ 2013-01-15 20:53 ` Belisko Marek
2013-01-16 8:06 ` Thomas Petazzoni
1 sibling, 1 reply; 35+ messages in thread
From: Belisko Marek @ 2013-01-15 20:53 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, Jan 7, 2013 at 10:38 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Marek Belisko,
>
> On Mon, 7 Jan 2013 21:43:18 +0100, Marek Belisko wrote:
>
>> +config BR2_PACKAGE_LVM2_APP_LIBRARY
>> + bool "install application library"
>> + depends on BR2_PACKAGE_LVM2
>> + help
>> + Install application library (liblvm2app2).
>> +
>
>> +ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
>> +LVM2_MAKE_OPT += liblvm
>> +LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
>> +LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
>> +endif
>
> I am not quite sure this is correct. Currently, the package works as
> follows (if I understand correctly):
>
> * if BR2_PACKAGE_LVM2=y but BR2_PACKAGE_LVM2_DMSETUP_ONLY is not
> enabled, then LVM2_MAKE_OPT is empty, so it just runs the default
> make target, which presumably builds everything.
>
> * if BR2_PACKAGE_LVM2=y and BR2_PACKAGE_LVM2_DMSETUP_ONLY=y, then
> LVM2_MAKE_OPT is set to device-mapper, in which case it only builds
> the device mapper code.
>
> So now, you add a third BR2_PACKAGE_LVM2_APP_LIBRARY option. But if I
> do BR2_PACKAGE_LVM2=y and BR2_PACKAGE_LVM2_APP_LIBRARY=y, it will only
> build the library and not the rest, which is not what we expect.
>
> I'd say that the DMSETUP_ONLY thing is a bad idea from the beginning,
> so I'm not sure what's the best way moving forward.
What about to compile everything (device mapper + app library) and
only install things which user select in
config.
>
> Are you sure liblvm doesn't get build and installed by the default
> BR2_PACKAGE_LVM2=y configuration?
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Thanks,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-01-15 20:53 ` Belisko Marek
@ 2013-01-16 8:06 ` Thomas Petazzoni
2013-01-16 8:49 ` Belisko Marek
0 siblings, 1 reply; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-16 8:06 UTC (permalink / raw)
To: buildroot
Dear Belisko Marek,
On Tue, 15 Jan 2013 21:53:48 +0100, Belisko Marek wrote:
> What about to compile everything (device mapper + app library) and
> only install things which user select in
> config.
That's usually what we do in relatively small packages for which the
overall build time is not so significant to be worth the effort of
doing selective compilation. We however do selective installation if
needed to only install the required files.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-01-16 8:06 ` Thomas Petazzoni
@ 2013-01-16 8:49 ` Belisko Marek
0 siblings, 0 replies; 35+ messages in thread
From: Belisko Marek @ 2013-01-16 8:49 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Wed, Jan 16, 2013 at 9:06 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Belisko Marek,
>
> On Tue, 15 Jan 2013 21:53:48 +0100, Belisko Marek wrote:
>
>> What about to compile everything (device mapper + app library) and
>> only install things which user select in
>> config.
>
> That's usually what we do in relatively small packages for which the
> overall build time is not so significant to be worth the effort of
> doing selective compilation. We however do selective installation if
> needed to only install the required files.
OK. Any ideas how to proceed with this patch? Without that udisks (with lvm2)
cannot work. IMO original patch is OK despite of fact it build only
liblvm (not libdm + lvm2)
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Regards,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-01-07 20:43 ` [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library Marek Belisko
2013-01-07 21:38 ` Thomas Petazzoni
@ 2013-02-03 14:20 ` Peter Korsgaard
2013-02-03 20:44 ` Belisko Marek
1 sibling, 1 reply; 35+ messages in thread
From: Peter Korsgaard @ 2013-02-03 14:20 UTC (permalink / raw)
To: buildroot
>>>>> "Marek" == Marek Belisko <marek.belisko@open-nandra.com> writes:
Marek> Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Marek> ---
Marek> package/lvm2/Config.in | 6 ++++++
Marek> package/lvm2/lvm2.mk | 8 +++++++-
Marek> 2 files changed, 13 insertions(+), 1 deletion(-)
Marek> diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in
Marek> index 30af14e..bb41c0a 100644
Marek> --- a/package/lvm2/Config.in
Marek> +++ b/package/lvm2/Config.in
Marek> @@ -21,5 +21,11 @@ config BR2_PACKAGE_LVM2_DMSETUP_ONLY
Marek> help
Marek> Install dmsetup only and skip the LVM2 suite.
Marek> +config BR2_PACKAGE_LVM2_APP_LIBRARY
Marek> + bool "install application library"
This option doesn't make much sense in combination with DMSETUP_ONLY, so
I've made it depend on !DMSETUP_ONLY
Marek> + depends on BR2_PACKAGE_LVM2
Marek> + help
Marek> + Install application library (liblvm2app2).
Marek> +
Marek> comment "lvm2 requires a toolchain with LARGEFILE support"
Marek> depends on !BR2_LARGEFILE
Marek> diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
Marek> index f54caa4..213ef65 100644
Marek> --- a/package/lvm2/lvm2.mk
Marek> +++ b/package/lvm2/lvm2.mk
Marek> @@ -21,7 +21,7 @@ LVM2_BINS = \
Marek> # Make sure that binaries and libraries are installed with write
Marek> # permissions for the owner.
Marek> -LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig
Marek> +LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig --enable-applib
We should only enable it if _APP_LIBRARY is enabled.
Marek> # LVM2 uses autoconf, but not automake, and the build system does not
Marek> # take into account the CC passed at configure time.
Marek> @@ -41,6 +41,12 @@ LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install_device-mapper
Marek> LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install_device-mapper
Marek> endif
Marek> +ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
Marek> +LVM2_MAKE_OPT += liblvm
Marek> +LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
Marek> +LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
And then this isn't needed.
Committed with these fixes, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-02-03 14:20 ` Peter Korsgaard
@ 2013-02-03 20:44 ` Belisko Marek
2013-02-03 21:47 ` Peter Korsgaard
0 siblings, 1 reply; 35+ messages in thread
From: Belisko Marek @ 2013-02-03 20:44 UTC (permalink / raw)
To: buildroot
Hi Peter,
On Sun, Feb 3, 2013 at 3:20 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Marek" == Marek Belisko <marek.belisko@open-nandra.com> writes:
>
> Marek> Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
> Marek> ---
> Marek> package/lvm2/Config.in | 6 ++++++
> Marek> package/lvm2/lvm2.mk | 8 +++++++-
> Marek> 2 files changed, 13 insertions(+), 1 deletion(-)
>
> Marek> diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in
> Marek> index 30af14e..bb41c0a 100644
> Marek> --- a/package/lvm2/Config.in
> Marek> +++ b/package/lvm2/Config.in
> Marek> @@ -21,5 +21,11 @@ config BR2_PACKAGE_LVM2_DMSETUP_ONLY
> Marek> help
> Marek> Install dmsetup only and skip the LVM2 suite.
>
> Marek> +config BR2_PACKAGE_LVM2_APP_LIBRARY
> Marek> + bool "install application library"
>
> This option doesn't make much sense in combination with DMSETUP_ONLY, so
> I've made it depend on !DMSETUP_ONLY
This patch was from v2 and was dropped in v3 because it wasn't necessary.
Please see http://lists.busybox.net/pipermail/buildroot/2013-January/065740.html
I've tested it also with fresh build and it was working without this patch.
>
>
> Marek> + depends on BR2_PACKAGE_LVM2
> Marek> + help
> Marek> + Install application library (liblvm2app2).
> Marek> +
> Marek> comment "lvm2 requires a toolchain with LARGEFILE support"
> Marek> depends on !BR2_LARGEFILE
> Marek> diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
> Marek> index f54caa4..213ef65 100644
> Marek> --- a/package/lvm2/lvm2.mk
> Marek> +++ b/package/lvm2/lvm2.mk
> Marek> @@ -21,7 +21,7 @@ LVM2_BINS = \
>
> Marek> # Make sure that binaries and libraries are installed with write
> Marek> # permissions for the owner.
> Marek> -LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig
> Marek> +LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig --enable-applib
>
> We should only enable it if _APP_LIBRARY is enabled.
>
>
>
> Marek> # LVM2 uses autoconf, but not automake, and the build system does not
> Marek> # take into account the CC passed at configure time.
> Marek> @@ -41,6 +41,12 @@ LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install_device-mapper
> Marek> LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install_device-mapper
> Marek> endif
>
> Marek> +ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
> Marek> +LVM2_MAKE_OPT += liblvm
> Marek> +LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
> Marek> +LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
>
> And then this isn't needed.
>
> Committed with these fixes, thanks.
>
> --
> Bye, Peter Korsgaard
Thanks,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library.
2013-02-03 20:44 ` Belisko Marek
@ 2013-02-03 21:47 ` Peter Korsgaard
0 siblings, 0 replies; 35+ messages in thread
From: Peter Korsgaard @ 2013-02-03 21:47 UTC (permalink / raw)
To: buildroot
>>>>> "Belisko" == Belisko Marek <marek.belisko@gmail.com> writes:
Hi,
Marek> +config BR2_PACKAGE_LVM2_APP_LIBRARY
Marek> + bool "install application library"
>>
>> This option doesn't make much sense in combination with DMSETUP_ONLY, so
>> I've made it depend on !DMSETUP_ONLY
Belisko> This patch was from v2 and was dropped in v3 because it wasn't
Belisko> necessary. Please see
Belisko> http://lists.busybox.net/pipermail/buildroot/2013-January/065740.html
Belisko> I've tested it also with fresh build and it was working
Belisko> without this patch.
Hmm, it didn't work for me here.
From lvm2 configure.in:
AC_ARG_ENABLE(applib,
AC_HELP_STRING([--enable-applib], [build application library]),
APPLIB=$enableval, APPLIB=no)
AC_MSG_RESULT($APPLIB)
E.G. applib defaults to disabled.
Makefile.in:
ifeq ("@APPLIB@", "yes")
SUBDIRS += liblvm
endif
So I wonder how you could have gotten the liblvm subdir built without
either passing --enable-applib or explicitly calling make liblvm.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 6/6] udisks: new package
2013-01-07 20:43 [Buildroot] [PATCH v2 0/6] Add support for udisks package Marek Belisko
` (4 preceding siblings ...)
2013-01-07 20:43 ` [Buildroot] [PATCH v2 5/6] lvm2: Compile and install application library Marek Belisko
@ 2013-01-07 20:43 ` Marek Belisko
2013-01-07 21:47 ` Thomas Petazzoni
5 siblings, 1 reply; 35+ messages in thread
From: Marek Belisko @ 2013-01-07 20:43 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/Config.in | 1 +
package/udisks/Config.in | 32 ++++++++++++++++++++++++++++++++
package/udisks/udisks.mk | 28 ++++++++++++++++++++++++++++
3 files changed, 61 insertions(+)
create mode 100644 package/udisks/Config.in
create mode 100644 package/udisks/udisks.mk
diff --git a/package/Config.in b/package/Config.in
index 53bb5be..5968282 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -272,6 +272,7 @@ source "package/sysstat/Config.in"
source "package/ti-utils/Config.in"
source "package/uboot-tools/Config.in"
source "package/udev/Config.in"
+source "package/udisks/Config.in"
source "package/usb_modeswitch/Config.in"
source "package/usb_modeswitch_data/Config.in"
source "package/usbmount/Config.in"
diff --git a/package/udisks/Config.in b/package/udisks/Config.in
new file mode 100644
index 0000000..bdc99b3
--- /dev/null
+++ b/package/udisks/Config.in
@@ -0,0 +1,32 @@
+config BR2_PACKAGE_UDISKS
+ bool "udisks"
+ depends on BR2_PACKAGE_UDEV
+ depends on BR2_PACKAGE_DBUS
+ select BR2_PACKAGE_SG3_UTILS
+ select BR2_PACKAGE_UDEV_ALL_EXTRAS
+ select BR2_PACKAGE_DBUS_GLIB
+ select BR2_PACKAGE_POLKIT
+ select BR2_PACKAGE_PARTED #select BR2_PACKAGE_LVM2
+ select BR2_PACKAGE_LVM2_DMSETUP_ONLY #devmapper library
+ select BR2_PACKAGE_LIBATASMART
+ help
+ The udisks project provides
+
+ o A storage daemon that implements well-defined D-Bus
+ interfaces that can be used to query and manipulate
+ storage devices.
+
+ o a command-line tool, udisks(1), that can be used to query
+ and use the daemon
+
+ http://www.freedesktop.org/wiki/Software/udisks
+
+config BR2_PACKAGE_UDISKS_LVM2
+ bool "lvm2 support"
+ depends on BR2_PACKAGE_UDISKS
+ depends on BR2_PACKAGE_LVM2
+ select BR2_PACKAGE_LVM2_APP_LIBRARY
+ default n
+
+comment "udisks requires udev and dbus to be enabled"
+ depends on !BR2_PACKAGE_UDEV || !BR2_PACKAGE_DBUS
diff --git a/package/udisks/udisks.mk b/package/udisks/udisks.mk
new file mode 100644
index 0000000..19f9da4
--- /dev/null
+++ b/package/udisks/udisks.mk
@@ -0,0 +1,28 @@
+#############################################################
+#
+# udisks
+#
+#############################################################
+UDISKS_VERSION = 1.0.4
+UDISKS_SITE = http://hal.freedesktop.org/releases/
+UDISKS_LICENCE = GPLv2+
+UDISKS_LICENCE_FILES = COPYING
+
+UDISKS_DEPENDENCIES = \
+ sg3_utils \
+ host-pkgconf \
+ udev \
+ dbus \
+ dbus-glib \
+ polkit \
+ parted \
+ lvm2 \
+ libatasmart
+
+UDISKS_CONF_OPT = --disable-remote-access --disable-gtk-doc
+
+ifeq ($(BR2_PACKAGE_UDISKS_LVM2),y)
+UDISKS_CONF_OPT += --enable-lvm2
+endif
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 35+ messages in thread* [Buildroot] [PATCH v2 6/6] udisks: new package
2013-01-07 20:43 ` [Buildroot] [PATCH v2 6/6] udisks: new package Marek Belisko
@ 2013-01-07 21:47 ` Thomas Petazzoni
2013-01-07 22:03 ` Belisko Marek
0 siblings, 1 reply; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 21:47 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Mon, 7 Jan 2013 21:43:19 +0100, Marek Belisko wrote:
> --- /dev/null
> +++ b/package/udisks/Config.in
> @@ -0,0 +1,32 @@
> +config BR2_PACKAGE_UDISKS
> + bool "udisks"
> + depends on BR2_PACKAGE_UDEV
> + depends on BR2_PACKAGE_DBUS
> + select BR2_PACKAGE_SG3_UTILS
> + select BR2_PACKAGE_UDEV_ALL_EXTRAS
> + select BR2_PACKAGE_DBUS_GLIB
> + select BR2_PACKAGE_POLKIT
> + select BR2_PACKAGE_PARTED #select BR2_PACKAGE_LVM2
> + select BR2_PACKAGE_LVM2_DMSETUP_ONLY #devmapper library
If you select BR2_PACKAGE_LVM2_DMSETUP_ONLY, then you also have to
select BR2_PACKAGE_LVM2.
> + select BR2_PACKAGE_LIBATASMART
Also, you're doing a lot of select here. Please verify that all the
configuration options you're selecting don't have depends on
dependencies that aren't already brought through the dependency on dbus
and udev here.
> + help
> + The udisks project provides
> +
> + o A storage daemon that implements well-defined D-Bus
> + interfaces that can be used to query and manipulate
> + storage devices.
> +
> + o a command-line tool, udisks(1), that can be used to query
> + and use the daemon
> +
> + http://www.freedesktop.org/wiki/Software/udisks
> +
> +config BR2_PACKAGE_UDISKS_LVM2
> + bool "lvm2 support"
> + depends on BR2_PACKAGE_UDISKS
> + depends on BR2_PACKAGE_LVM2
> + select BR2_PACKAGE_LVM2_APP_LIBRARY
> + default n
BR2_PACKAGE_LVM2 is necessarily defined if
BR2_PACKAGE_LVM2_DMSETUP_ONLY is selected by the main
BR2_PACKAGE_UDISKS option.
If I understand correctly, you can build:
* udisks without the lvm2 library, but it needs the dmsetup binary
unconditionally (which sounds strange, isn't capable of supporting
setups without LVM stuff)
* udisks with the lvm2 library
Not sure how to handle that properly with the current BR2_PACKAGE_LVM2
options. Needs more thought.
> +#############################################################
> +#
> +# udisks
> +#
> +#############################################################
> +UDISKS_VERSION = 1.0.4
> +UDISKS_SITE = http://hal.freedesktop.org/releases/
> +UDISKS_LICENCE = GPLv2+
> +UDISKS_LICENCE_FILES = COPYING
LICENSE.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 6/6] udisks: new package
2013-01-07 21:47 ` Thomas Petazzoni
@ 2013-01-07 22:03 ` Belisko Marek
2013-01-07 22:18 ` Thomas Petazzoni
0 siblings, 1 reply; 35+ messages in thread
From: Belisko Marek @ 2013-01-07 22:03 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, Jan 7, 2013 at 10:47 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Marek Belisko,
>
> On Mon, 7 Jan 2013 21:43:19 +0100, Marek Belisko wrote:
>
>> --- /dev/null
>> +++ b/package/udisks/Config.in
>> @@ -0,0 +1,32 @@
>> +config BR2_PACKAGE_UDISKS
>> + bool "udisks"
>> + depends on BR2_PACKAGE_UDEV
>> + depends on BR2_PACKAGE_DBUS
>> + select BR2_PACKAGE_SG3_UTILS
>> + select BR2_PACKAGE_UDEV_ALL_EXTRAS
>> + select BR2_PACKAGE_DBUS_GLIB
>> + select BR2_PACKAGE_POLKIT
>> + select BR2_PACKAGE_PARTED #select BR2_PACKAGE_LVM2
>> + select BR2_PACKAGE_LVM2_DMSETUP_ONLY #devmapper library
>
> If you select BR2_PACKAGE_LVM2_DMSETUP_ONLY, then you also have to
> select BR2_PACKAGE_LVM2.
This is selected conditionally when LVM2 support if selected.
>
>> + select BR2_PACKAGE_LIBATASMART
>
> Also, you're doing a lot of select here. Please verify that all the
> configuration options you're selecting don't have depends on
> dependencies that aren't already brought through the dependency on dbus
> and udev here.
>
>> + help
>> + The udisks project provides
>> +
>> + o A storage daemon that implements well-defined D-Bus
>> + interfaces that can be used to query and manipulate
>> + storage devices.
>> +
>> + o a command-line tool, udisks(1), that can be used to query
>> + and use the daemon
>> +
>> + http://www.freedesktop.org/wiki/Software/udisks
>> +
>> +config BR2_PACKAGE_UDISKS_LVM2
>> + bool "lvm2 support"
>> + depends on BR2_PACKAGE_UDISKS
>> + depends on BR2_PACKAGE_LVM2
>> + select BR2_PACKAGE_LVM2_APP_LIBRARY
>> + default n
>
> BR2_PACKAGE_LVM2 is necessarily defined if
> BR2_PACKAGE_LVM2_DMSETUP_ONLY is selected by the main
> BR2_PACKAGE_UDISKS option.
>
> If I understand correctly, you can build:
>
> * udisks without the lvm2 library, but it needs the dmsetup binary
> unconditionally (which sounds strange, isn't capable of supporting
> setups without LVM stuff)
It is weird but configure phase require devmapper library (otherwise
fails) in both case (udisks with/without lvm2 support)
>
> * udisks with the lvm2 library
>
> Not sure how to handle that properly with the current BR2_PACKAGE_LVM2
> options. Needs more thought.
>
>> +#############################################################
>> +#
>> +# udisks
>> +#
>> +#############################################################
>> +UDISKS_VERSION = 1.0.4
>> +UDISKS_SITE = http://hal.freedesktop.org/releases/
>> +UDISKS_LICENCE = GPLv2+
>> +UDISKS_LICENCE_FILES = COPYING
>
> LICENSE.
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Regards,
mbe
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 6/6] udisks: new package
2013-01-07 22:03 ` Belisko Marek
@ 2013-01-07 22:18 ` Thomas Petazzoni
2013-01-07 22:25 ` Belisko Marek
0 siblings, 1 reply; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 22:18 UTC (permalink / raw)
To: buildroot
Dear Belisko Marek,
On Mon, 7 Jan 2013 23:03:10 +0100, Belisko Marek wrote:
> >> + select BR2_PACKAGE_PARTED #select BR2_PACKAGE_LVM2
> >> + select BR2_PACKAGE_LVM2_DMSETUP_ONLY #devmapper library
> >
> > If you select BR2_PACKAGE_LVM2_DMSETUP_ONLY, then you also have to
> > select BR2_PACKAGE_LVM2.
> This is selected conditionally when LVM2 support if selected.
This is not what your patch does:
+config BR2_PACKAGE_UDISKS
+ bool "udisks"
+ depends on BR2_PACKAGE_UDEV
+ depends on BR2_PACKAGE_DBUS
+ select BR2_PACKAGE_SG3_UTILS
+ select BR2_PACKAGE_UDEV_ALL_EXTRAS
+ select BR2_PACKAGE_DBUS_GLIB
+ select BR2_PACKAGE_POLKIT
+ select BR2_PACKAGE_PARTED #select BR2_PACKAGE_LVM2
+ select BR2_PACKAGE_LVM2_DMSETUP_ONLY #devmapper library
+ select BR2_PACKAGE_LIBATASMART
The select of BR2_PACKAGE_LVM2 is commented.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 6/6] udisks: new package
2013-01-07 22:18 ` Thomas Petazzoni
@ 2013-01-07 22:25 ` Belisko Marek
2013-01-07 22:49 ` Thomas Petazzoni
0 siblings, 1 reply; 35+ messages in thread
From: Belisko Marek @ 2013-01-07 22:25 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, Jan 7, 2013 at 11:18 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Belisko Marek,
>
> On Mon, 7 Jan 2013 23:03:10 +0100, Belisko Marek wrote:
>> >> + select BR2_PACKAGE_PARTED #select BR2_PACKAGE_LVM2
>> >> + select BR2_PACKAGE_LVM2_DMSETUP_ONLY #devmapper library
>> >
>> > If you select BR2_PACKAGE_LVM2_DMSETUP_ONLY, then you also have to
>> > select BR2_PACKAGE_LVM2.
>> This is selected conditionally when LVM2 support if selected.
>
> This is not what your patch does:
>
> +config BR2_PACKAGE_UDISKS
> + bool "udisks"
> + depends on BR2_PACKAGE_UDEV
> + depends on BR2_PACKAGE_DBUS
> + select BR2_PACKAGE_SG3_UTILS
> + select BR2_PACKAGE_UDEV_ALL_EXTRAS
> + select BR2_PACKAGE_DBUS_GLIB
> + select BR2_PACKAGE_POLKIT
> + select BR2_PACKAGE_PARTED #select BR2_PACKAGE_LVM2
> + select BR2_PACKAGE_LVM2_DMSETUP_ONLY #devmapper library
> + select BR2_PACKAGE_LIBATASMART
>
> The select of BR2_PACKAGE_LVM2 is commented.
No this is comment that BR2_PACKAGE_PARTED select also BR2_PACKAGE_LVM2.
Maybe this is wrong approach but it works :).
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Regards,
mbe
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Buildroot] [PATCH v2 6/6] udisks: new package
2013-01-07 22:25 ` Belisko Marek
@ 2013-01-07 22:49 ` Thomas Petazzoni
0 siblings, 0 replies; 35+ messages in thread
From: Thomas Petazzoni @ 2013-01-07 22:49 UTC (permalink / raw)
To: buildroot
Dear Belisko Marek,
On Mon, 7 Jan 2013 23:25:30 +0100, Belisko Marek wrote:
> > The select of BR2_PACKAGE_LVM2 is commented.
> No this is comment that BR2_PACKAGE_PARTED select also BR2_PACKAGE_LVM2.
> Maybe this is wrong approach but it works :).
Ah, ok. Then please make the "select BR2_PACKAGE_LVM2" explicit, since
udisks needs it directly.
But then, you can get rid of your "depends on BR2_PACKAGE_LVM2" in
BR2_PACKAGE_UDISKS_LVM2, because the lvm2 package is surely already
enabled, since it gets selected by udisks.
I still don't like those lvm2 configuration options that much, though...
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 35+ messages in thread