You are not logged in.

#1 2016-07-05 10:21:16

gromain
Member
Registered: 2016-07-05
Posts: 6

Kinetis Design Studio PKGBUILD - LICENSE Issue?

Hello all,

I need some advice regarding a potential legal problem.

I wrote a PKGBUILD for Kinetis Design Studio, an IDE from NXP for the Kinetis range of MCUs.

The thing is they have a license-wall (a place on the website where you have to accept the license to download the file). I found out it's still possible to download the file with a direct link without going through accepting their license.

So, in my PKGBUILD, I put in the link for a straight download. The License does not forbid this (as much as I can tell).

So here are my questions:

  1. Does installing the software from the AUR implies agreeing with the LICENSE provided (I believe it does)?

  2. Can I provide in the PKGBUILD the direct link to download? It was not obtained through illegal means (like hacking their website for example). It's a direct link, from the NXP website, obtained after the license-wall.

  3. If I can't provide the direct link, can I still provide a PKGBUILD, with only the name of the package as source, where the user will have to go through the explicit download from NXP website?

  4. From a more concrete and technical perspective, do I have too many packages in the depends in the PKGBUILD? I put there all the package namcap told me where required.

I asked the juridic questions on the NXP community forum, and was told to come here (which I would have done anyway to check on the PKGBUILD quality). The link to this forum is https://community.nxp.com/message/808655.


So, here is my PKGBUILD:
(I obfuscated the link in case it's forbidden to have it public and the PKGBUILD will then not be published in the AUR as a consequence)

# Maintainer: Romain Bazile <gromain.baz@gmail.com>

pkgname=kinetis-design-studio
pkgver=3.2.0
pkgrel=1
epoch=
pkgdesc="IDE for the Kinetis microcontrollers range from NXP. Based on Eclipse."
arch=('x86_64')
url="http://www.nxp.com/KDS"
license=('custom:"NXP"')
depends=('glibc' 'libusb-compat' 'libxt' 'nss' 'java-environment' 'libxslt' 'gconf' 'gtk2' 'alsa-lib' 'libxtst')
source=("$pkgname-$pkgver-$pkgrel.$arch.rpm" "LICENSE")
sha1sums=('188e9bfa9fb73de16f1f173a2279f59c8ceaabd4'
          '0d067fc6e11d07896e8aba9a94f5fc600bcd1e4e')
options=('!strip')

package() {
        cp -r ${srcdir}/usr ${pkgdir}/;
        cp -r ${srcdir}/opt ${pkgdir}/;
        cp -r ${srcdir}/lib ${pkgdir}/usr/;
        #cd "${srcdir}"
        #tar -xzf data.tar.gz -C "${pkgdir}"
        chown -R `whoami` ${pkgdir}/opt/Freescale/KDS_v3/;
        install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE;
}

Here is the LICENSE (straight from NXP Website):

FREESCALE SEMICONDUCTOR SOFTWARE LICENSE AGREEMENT


This is a legal agreement between you, as an authorized representative of your employer, or if you have no employer, as an individual (together “you”), and Freescale Semiconductor, Inc. (“Freescale”) and its Affiliates.  It concerns your rights to use the software identified in the Software Content Register and provided to you in binary or source code form and any accompanying written materials (the “Licensed Software”). The Licensed Software may include any updates or error corrections or documentation relating to the Licensed Software provided to you by Freescale under this License. In consideration for Freescale allowing you to access the Licensed Software, you are agreeing to be bound by the terms of this Agreement. If you do not agree to all of the terms of this Agreement, do not download or install the Licensed Software. If you change your mind later, stop using the Licensed Software and delete all copies of the Licensed Software in your possession or control. Any copies of the Licensed Software that you have already distributed, where permitted, and do not destroy will continue to be governed by this Agreement. Your prior use will also continue to be governed by this Agreement.

1.       DEFINITIONS

1.1.         “Affiliates” means, any corporation, or entity directly or indirectly controlled by, controlling, or under common control with Freescale.

1.2          “Compilable Software” means the portion of the Licensed Software that is for use on a Freescale Processor, such as an embedded operating system, Processor Expert Components, runtime libraries and example code.

1.3          “Essential Patent” means a patent to the limited extent that infringement of such patent cannot be avoided in remaining compliant with the technology standards implicated by the usage of any of the Licensed Software, including optional implementation of the standards, on technical but not commercial grounds, taking into account normal technical practice and the state of the art generally available at the time of standardization.

1.4.         “Intellectual Property Rights” means any and all rights under statute, common law or equity in and under copyrights, trade secrets, and patents (including utility models), and analogous rights throughout the world, including any applications for and the right to apply for, any of the foregoing.

1.5          “Software Content Register” means the documentation accompanying the Licensed Software which identifies the contents of the Licensed Software, including but not limited to identification of any Third Party Software.

1.6          “Third Party Software” means, any software included in the Licensed Software that is not Freescale Proprietary software, and is not open source software, and to which different license terms may apply.

2.       LICENSE GRANT. 

2.1.         Freescale grants to you a personal, non-transferable, non-exclusive, license, under Freescale’s intellectual property rights, to use and reproduce the Licensed Software solely in conjunction with the design of products using, or associated with, a Freescale integrated circuit. You may not distribute or sublicense the Licensed Software to others except as expressly granted in Section 2.2 below. 

2.2.         Freescale grants to you a personal, non-transferable, non-exclusive, license, under Freescale’s intellectual property rights to distribute the Compilable Software in object code (machine readable) only. Other components of the Licensed Software may also be distributed but only if they are explicitly marked in conjunction with that installed component.

2.3          For Licensed Software provided to you in source code form (human readable), Freescale further grants to you a personal, non-transferable, non-exclusive, license, under Freescale’s intellectual property rights to prepare derivative works of the Licensed Software.

2.3.1      Special Source Distribution Rights. Freescale grants to you the right to prepare derivative works of and to distribute Compilable Software, which is explicitly marked with the text "SOURCE DISTRIBUTION PERMISSIBLE", in source form and only as part of your own software programs that add substantial value to the Compilable Software. You may only distribute the Compilable Software for execution on a Freescale integrated circuit.

2.4.         Separate license grants to Third Party Software, or other terms applicable to the Licensed Software if different from those granted in this Section 2, are contained in Appendix A. The Licensed Software is accompanied by a Software Content Register which will identify that portion of the Licensed Software, if any, that is subject to the different terms in Appendix A.

2.5.         You may use subcontractors on your premises to exercise your rights under Section 2.1, 2.2 and 2.3 so long as you have an agreement in place with the subcontractor containing confidentiality restrictions no less stringent than those contained in this Agreement. You will remain liable for your subcontractors’ adherence to the terms of this Agreement and for any and all acts and omissions of such subcontractors with respect to this Agreement and the Licensed Software.

3.       LICENSE LIMITATIONS AND RESTRICTIONS. 

3.1.         The licenses granted above in Section 2 only extend to Freescale intellectual property rights that would be infringed by the Licensed Software prior to your preparation of any derivative work.  

3.2.         The Licensed Software is licensed to you, not sold. Title to Licensed Software delivered hereunder remains vested in Freescale or Freescale's licensor and cannot be assigned or transferred. You are expressly forbidden from selling or otherwise distributing the Licensed Software, or any portion thereof, except as expressly permitted herein. This Agreement does not grant to you any implied rights under any Freescale or third party intellectual property.

3.3.         You may not translate, reverse engineer, decompile, or disassemble the Licensed Software except to the extent applicable law specifically prohibits such restriction. You must prohibit your sub-licensees from translating, reverse engineering, decompiling, or disassembling the Licensed Software except to the extent applicable law specifically prohibits such restriction.

3.4.         You must reproduce, and may not alter, any copyright notices and other proprietary legends on copies of Licensed Software. 

3.5.         If you distribute the Licensed Software to the United States Government, then the Licensed Software is “restricted computer software” and is subject to FAR 52.227-19 (c)(1) and (c)(2).  

3.6.         You grant to Freescale a non-exclusive, non-transferable, irrevocable, perpetual, worldwide, royalty-free, sub-licensable license under your Intellectual Property Rights to use without restriction and for any purpose any suggestion, comment or other feedback related to the Licensed Software (including, but not limited to, error corrections and bug fixes).

3.7.         You will not take or fail to take any action that could subject the Licensed Software to an Excluded License. An Excluded License means any license that requires, as a condition of use, modification or distribution of software subject to the Excluded License, that such software or other software combined and/or distributed with the software be (i) disclosed or distributed in source code form; (ii) licensed for the purpose of making derivative works; or (iii) redistributable at no charge. 

3.8.         You may not publish or distribute information, results or data associated with the use of the Licensed Software to anyone other than Freescale; however you must advise Freescale on at least a quarterly basis of any results obtained including any problems or suggested improvements thereof.  Freescale retains the right to use such results and related information in any manner it deems appropriate

4.       OPEN SOURCE.         Open source software included in the Licensed Software is not licensed under the terms of this Agreement, but is instead licensed under the terms of the applicable open source license(s), such as the BSD License, Apache License or the GNU Lesser General Public License. Your use of the open source software is subject to the terms of each applicable license. You must agree to the terms of each applicable license, or you cannot use the open source software. 

5.       INTELLECTUAL PROPERTY RIGHTS.    Title and all intellectual property rights associated with your modifications to the Licensed Software will be the property of Freescale. Upon request, you must provide Freescale the source code of any derivative of the Licensed Software. You agree to assign all, and hereby do assign all rights, title, and interest to any such modifications to the Licensed Software to Freescale and agree to provide all assistance reasonably requested by Freescale to establish, preserve or enforce such right. Further, you agree to waive all moral rights relating to your modifications to the Licensed Software, including, without limitation, all rights of identification of authorship and all rights of approval, restriction, or limitation on use or subsequent modification. Notwithstanding the foregoing, you will have the license rights granted in Section 2 to any such modifications made by you or your licensor’s.

6.       PATENT COVENANT NOT TO SUE. As partial, material consideration for the rights granted to you under this Agreement, you covenant not to sue or otherwise assert your patents against Freescale, a Freescale Affiliate or subsidiary, or a Freescale licensee of the Licensed Software for infringement of your Intellectual Property Rights by the manufacture, use, sale, offer for sale, importation or other disposition or promotion of the Licensed Software and/or any redistributed portions of the Licensed Software.

7.       ESSENTIAL PATENTS.  You are solely responsible for obtaining licenses for any relevant Essential Patents for your use in connection with technology that you incorporate into the your Product (whether as part of the Licensed Software or not). 

8.       TERM AND TERMINATION.   This Agreement will remain in effect unless terminated as provided herein.

8.1.         You may terminate this Agreement immediately upon written notice to Freescale at the address provided below.

8.2.         Either party may terminate this Agreement if the other party is in default of any of the terms and conditions of this Agreement, and termination is effective if the defaulting party fails to correct such default within 30 days after written notice thereof by the non-defaulting party to the defaulting party at the address below.

8.3.         Notwithstanding the foregoing, Freescale may terminate this Agreement immediately upon written notice if you: breach any of your confidentiality obligations or the license restrictions under this Agreement;  become bankrupt, insolvent, or file a petition for bankruptcy or insolvency, make an assignment for the benefit of its creditors; enter proceedings for winding up or dissolution ;are dissolved; or are nationalized or become subject to the expropriation of all or substantially all of its business or assets.

8.4.         Upon termination of this Agreement, all licenses granted under Section 2 will expire except as required by applicable mandatory law.

8.5.         After termination of this Agreement by either party and upon Freescale’s written request, you will, at your discretion, return to the Freescale any confidential information including all copies thereof or furnish to Freescale at the address below, a statement certifying, with respect to the Licensed Software delivered hereunder that the original and all copies, except for archival copies to be used solely for dispute resolution purposes, in whole or in part, in any form, of the Licensed Software have been destroyed.

8.6.         Notwithstanding the termination of this Agreement for any reason, the terms of Sections 1, 3, 4 through 25 will survive. 

9.        SUPPORT.  Freescale is not obligated to provide any support, upgrades or new releases of the Licensed Software under this Agreement. If you wish, you may contact Freescale and report problems and provide suggestions regarding the Licensed Software. Freescale has no obligation to respond to such a problem report or suggestion. Freescale may make changes to the Licensed Software at any time, without any obligation to notify or provide updated versions of the Licensed Software to you.

10.        NO WARRANTY.  To the maximum extent permitted by law, Freescale expressly disclaims any warranty for the Licensed Software. The Licensed Software is provided “AS IS”, without warranty of any kind, either express or implied, including without limitation the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. You assume the entire risk arising out of the use or performance of the licensed software, or any systems you design using the licensed software (if any).

11.        INDEMNITY. You agree to fully defend and indemnify Freescale from all claims, liabilities, and costs (including reasonable attorney’s fees) related to (1) your use (including your contractors or sublicensee’s use, if permitted) of the Licensed Software or (2) your violation of the terms and conditions of this Agreement.

12.        LIMITATION OF LIABILITY.  EXCLUDING LIABILITY FOR A BREACH OF SECTION 2 (LICENSE GRANTS), SECTION 3 (LICENSE LIMITATIONS AND RESTRICTIONS), SECTION 17 (CONFIDENTIAL INFORMATION), OR CLAIMS UNDER SECTION 11(INDEMNITY), IN NO EVENT WILL EITHER PARTY BE LIABLE, WHETHER IN CONTRACT, TORT, OR OTHERWISE, FOR ANY INCIDENTAL, SPECIAL, INDIRECT, CONSEQUENTIAL OR PUNITIVE DAMAGES, INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR ANY LOSS OF USE, LOSS OF TIME, INCONVENIENCE, COMMERCIAL LOSS, OR LOST PROFITS, SAVINGS, OR REVENUES, TO THE FULL EXTENT SUCH MAY BE DISCLAIMED BY LAW. FREESCALE’S TOTAL LIABILITY FOR ALL COSTS, DAMAGES, CLAIMS, OR LOSSES WHATSOEVER ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT OR PRODUCT(S) SUPPLIED UNDER THIS AGREEMENT IS LIMITED TO THE AGGREGATE AMOUNT PAID BY YOU TO FREESCALE IN CONNECTION WITH THE LICENSED SOFTWARE TO WHICH LOSSES OR DAMAGES ARE CLAIMED.

13.        EXPORT RESTRICTIONS.

13.1.      Licensed Software is subject to the export control laws of the United States and other countries that may lawfully control the export of the Licensed Software. Furnishing support services with respect to Licensed Software that is controlled as defense or military items may also be subject to such laws. Accordingly, you agree you will not transfer the Licensed Software or furnish such services except in compliance with the export laws of the United States and any other country that may lawfully control the export of the Licensed Software or the provision of such services. You will indemnify and hold Freescale harmless from any claims, liabilities, damages, penalties, forfeitures, and associated costs and expenses (including attorneys’ fees) that Freescale may incur due to your non-compliance with applicable export laws, rules, and regulations. You will immediately notify Freescale of any violation of any export law, rule, or regulation, which may affect Freescale or relate to the activities covered under this Agreement.

13.2.      If an export/import license, permit, or other government required authority (collectively referred to as “government authorization”) is required for Freescale to transfer the Licensed Software or any other Freescale property under this Agreement and such government authorization to non- Freescale party(ies) is not approved, then Freescale is not obligated to proceed with the transfer until the required government authorization is granted.

14.   GOVERNMENT CONTRACT COMPLIANCE

14.1.      If you sell any systems or software you create using the Licensed Software directly to any government or public entity, including U.S., state, local, foreign or international governments or public entities, or indirectly via a prime contractor or subcontractor of such governments or entities, Freescale makes no representations, certifications, or warranties whatsoever about compliance with government or public entity acquisition statutes or regulations, including, without limitation, statutes or regulations that may relate to pricing, quality, origin or content.

14.2.      The Licensed Software has been developed at private expense and is a “Commercial Item” as defined in 48 C.F.R. §2.101, consisting of “Commercial Computer Software”, and/or “Commercial Computer Software Documentation,” as such terms are used in 48 C.F.R. §12.212 (or 48 C.F.R. §227.7202, as applicable) and may only be licensed to or shared with U.S. Government end users in object code as specifically authorized by Freescale. Any agreement pursuant to which you share the Licensed Software will include a provision that reiterates the limitations of this document and requires all sub-agreements to similarly contain such limitations.

15.        SAFETY CRITICAL APPLICATIONS

15.1.      In some cases, Freescale may promote certain Licensed Software for use in safety-related applications. Freescale’s goal is to educate licensees so that they can design their own end-product solutions to meet applicable functional safety standards and requirements. You make the ultimate design decisions regarding your products and are solely responsible for compliance with all legal, regulatory, safety, and security related requirements concerning your products, regardless of any information or support that may be provided by Freescale. Accordingly, you will indemnify and hold Freescale harmless from any claims, liabilities, damages and associated costs and expenses (including attorneys’ fees) that Freescale may incur related to your incorporation of any Product in a safety-critical application or system. 

15.2.      Only those Products that Freescale has specifically designated as “Automotive Qualified” are designed and intended for use in automotive, military, or aerospace applications or environments. If Buyer uses any Product that has not been designated as “Automotive Qualified” in an automotive, military, or aerospace application or environment, Buyer does so at its own risk.

15.3.      Licensed Software is not intended or authorized for any use in anti-personnel landmines.

16.        CHOICE OF LAW; VENUE.  This Agreement will be governed by, construed, and enforced in accordance with the laws of the State of Texas, USA, without regard to conflicts of laws principles, will apply to all matters relating to this Agreement or the Licensed Software, and you agree that any litigation will be subject to the exclusive jurisdiction of the state or federal courts Texas, USA. The United Nations Convention on Contracts for the International Sale of Goods will not apply to this document.

17.        CONFIDENTIAL INFORMATION.  You must treat the Licensed Software as confidential information and you agree to retain the Licensed Software in confidence perpetually, with respect to Licensed Software in source code form (human readable), or for a period of five (5) years from the date of termination of this Agreement, with respect to all other parts of the Licensed Software. During this period you may not disclose any part of the Licensed Software to anyone other than employees who have a need to know of the Licensed Software and who have executed written agreements obligating them to protect such Licensed Software to at least the same degree of care as in this Agreement. You agree to use the same degree of care, but no less than a reasonable degree of care, with the Licensed Software as you do with your own confidential information. You may disclose Licensed Software to the extent required by a court or under operation of law or order provided that you notify Freescale of such requirement prior to disclosure, which you only disclose information required, and that you allow Freescale the opportunity to object to such court or other legal body requiring such disclosure.

18.       TRADEMARKS.  You are not authorized to use any Freescale trademarks, brand names, or logos.

19        ENTIRE AGREEMENT.  This Agreement constitutes the entire agreement between you and Freescale regarding the subject matter of this Agreement, and supersedes all prior communications, negotiations, understandings, agreements or representations, either written or oral, if any. This Agreement may only be amended in written form, executed by you and Freescale.

20.        SEVERABILITY.  If any provision of this Agreement is held for any reason to be invalid or unenforceable, then the remaining provisions of this Agreement will be unimpaired and, unless a modification or replacement of the invalid or unenforceable provision is further held to deprive you or Freescale of a material benefit, in which case the Agreement will immediately terminate, the invalid or unenforceable provision will be replaced with a provision that is valid and enforceable and that comes closest to the intention underlying the invalid or unenforceable provision.

21.        NO WAIVER.  The waiver by Freescale of any breach of any provision of this Agreement will not operate or be construed as a waiver of any other or a subsequent breach of the same or a different provision.

22.        AUDIT.  You will keep full, clear and accurate records with respect to your compliance with the limited license rights granted under this Agreement for three years following expiration or termination of this Agreement. Freescale will have the right, either itself or through an independent certified public accountant to examine and audit, at Freescale’s expense, not more than once a year, and during normal business hours, all such records that may bear upon your compliance with the limited license rights granted above. You must make prompt adjustment to compensate for any errors and/or omissions disclosed by such examination or audit.

23.        NOTICES.             All notices and communications under this Agreement will be made in writing, and will be effective when received at the following addresses:

Freescale:                             Freescale Semiconductor, Inc.

                                                  6501 William Cannon West    OE62

                                                  Austin, Texas 78735

                                                  ATTN: General Counsel

 

You:                                         The address provided at registration will be used.

24.        RELATIONSHIP OF THE PARTIES.     The parties are independent contractors. Nothing in this Agreement will be construed to create any partnership, joint venture, or similar relationship. Neither party is authorized to bind the other to any obligations with third parties.

25.        SUCCESSION AND ASSIGNMENT.   This Agreement will be binding upon and inure to the benefit of the parties and their permitted successors and assigns.  Neither party may assign this Agreement, or any part of this Agreement, without the prior written approval of the other party, which approval will not be unreasonably withheld or delayed.



APPENDIX A

Other License Grants and Restrictions:

The Licensed Software may include some or all of the following software, which is either 1) not Freescale proprietary software or 2) Freescale proprietary software subject to different terms than those in the Agreement. If the Software Content Register that accompanies the Licensed Software identifies any of the following Third Party Software or specific components of the Freescale Proprietary Software, the following terms apply to the extent they deviate from the terms in the Agreement:
	

Atheros
Use of Atheros software is limited to evaluation and demonstration only. Permitted distributions must be similarly limited. Further rights must be obtained directly from Atheros.   
	
 
Vivante
Distribution of Vivante software must be a part of, or embedded within, Authorized Systems that include a Vivante Graphics Processing Unit. 
	

MQX RTOS Source Code
MQX RTOS source code may not be re-distributed by any FSL Licensee under any circumstance, even by a signed written amendment to this Agreement.
	

Oracle JRE (Java)
The Oracle JRE must be used consistent with terms found here: http://java.com/license
	

P&E Micro
P&E Software must be used consistent with the terms found here: http://www.pemicro.com/licenses/gdbserver/license_gdb.pdf
	

Segger Microcontroller
Segger software must be used consistent with the terms found here: http://www.segger.com/jlink-software.html

 
The software you are about to download is subject to export control laws and regulations. By downloading this software, you agree that you will not knowingly, without prior written authorization from the competent government authorities, export or reexport - directly or indirectly - any software downloaded from this website to any prohibited destination, end-user, or end-use.

Thanks for your help and advice!

Last edited by gromain (2016-07-05 10:22:53)

Offline

#2 2016-07-05 14:08:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Kinetis Design Studio PKGBUILD - LICENSE Issue?

IANAL, But it appears you are downloading and installing the licence, as you should.  You might post a message advising that there is a "Licence Wall" on the NXP site.
I also wonder if they are in compliance with https://www.eclipse.org/legal/epl-v10.html  hmm

IMHO, you are good.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-07-05 15:41:25

gromain
Member
Registered: 2016-07-05
Posts: 6

Re: Kinetis Design Studio PKGBUILD - LICENSE Issue?

ewaller wrote:

I also wonder if they are in compliance with https://www.eclipse.org/legal/epl-v10.html  hmm

I think they get away with it because of this:

4.       OPEN SOURCE.         Open source software included in the Licensed Software is not licensed under the terms of this Agreement, but is instead licensed under the terms of the applicable open source license(s), such as the BSD License, Apache License or the GNU Lesser General Public License. Your use of the open source software is subject to the terms of each applicable license. You must agree to the terms of each applicable license, or you cannot use the open source software.

But, thanks for your advice! IANAL too, hence my asking!



As for the message, will a simple "echo" do?

My PKGBUILD would look like this then:

# Maintainer: Romain Bazile <gromain.baz@gmail.com>

pkgname=kinetis-design-studio
pkgver=3.2.0
pkgrel=1
epoch=
pkgdesc="IDE for the Kinetis microcontrollers range from NXP. Based on Eclipse."
arch=('x86_64')
url="http://www.nxp.com/KDS"
license=('custom:"NXP"')
depends=('glibc' 'libusb-compat' 'libxt' 'nss' 'java-environment' 'libxslt' 'gconf' 'gtk2' 'alsa-lib' 'libxtst')
source=("$pkgname-$pkgver-$pkgrel.$arch.rpm" "LICENSE")
sha1sums=('188e9bfa9fb73de16f1f173a2279f59c8ceaabd4'
          '0d067fc6e11d07896e8aba9a94f5fc600bcd1e4e')
options=('!strip')

package() {
        echo "Be advised that the package you are currently installing should be downloaded through"
        echo "NXP's License Wall at https://www.nxp.com/kds"
        echo "A copy of the License is available in /usr/share/licenses/kinetis-design-studio"
        cp -r ${srcdir}/usr ${pkgdir}/;
        cp -r ${srcdir}/opt ${pkgdir}/;
        cp -r ${srcdir}/lib ${pkgdir}/usr/;
        chown -R `whoami` ${pkgdir}/opt/Freescale/KDS_v3/;
        install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE;
}

Offline

#4 2016-07-05 15:46:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Kinetis Design Studio PKGBUILD - LICENSE Issue?

You are not installing the package in the package function, though. The message, if necessary, should be in the install script.

The chown to `whoami` is very wrong as well.

Offline

#5 2016-07-05 16:36:58

gromain
Member
Registered: 2016-07-05
Posts: 6

Re: Kinetis Design Studio PKGBUILD - LICENSE Issue?

What do you mean by not installing?
Using cp is the only way I found to actually do the installation (as there are a huge number of files, mainly in the opt/Freescale) directory.

I will move the message to a .install then.

Also I will remove the chown. It was intended to resolve a "bug" where you cannot install eclipse plugins or do update directly from KDS as a normal user does not have write access to the folder. However, it's not working as intended as the installation is done as root (and then, the user still doesn't have the rights to write into).

So, yeah, brainfart I guess... I'm removing it and pushing a message in an install script.
Should I move anything else to it? (cp?)

Offline

#6 2016-07-05 16:46:00

gromain
Member
Registered: 2016-07-05
Posts: 6

Re: Kinetis Design Studio PKGBUILD - LICENSE Issue?

So, I wrote a kinetis-design-studio.install:

pre_install() {
        echo "Be advised that the package you are currently installing should be downloaded through"
        echo "NXP's License Wall at https://www.nxp.com/kds"
        echo "By installing this package you agree to the terms of this license."
        echo "A copy of the License is available in /usr/share/licenses/kinetis-design-studio"
}


post_install() {
        echo "Warning! If you want to be able to install or update plugins"
        echo "in KDS, you either need to launch it as root, or"
        echo "chown the /opt/Freescale/KDS_v3/ folder."
}

Also, I changed my PKGBUILD to:

# Maintainer: Romain Bazile <gromain.baz@gmail.com>

pkgname=kinetis-design-studio
pkgver=3.2.0
pkgrel=1
epoch=
pkgdesc="IDE for the Kinetis microcontrollers range from NXP. Based on Eclipse."
arch=('x86_64')
url="http://www.nxp.com/KDS"
license=('custom:"NXP"')
depends=('glibc' 'libusb-compat' 'libxt' 'nss' 'java-environment' 'libxslt' 'gconf' 'gtk2' 'alsa-lib' 'libxtst')
source=("$pkgname-$pkgver-$pkgrel.$arch.rpm" "LICENSE")
sha1sums=('188e9bfa9fb73de16f1f173a2279f59c8ceaabd4'
          '0d067fc6e11d07896e8aba9a94f5fc600bcd1e4e')
options=('!strip')

package() {
        cp -r ${srcdir}/usr ${pkgdir}/;
        cp -r ${srcdir}/opt ${pkgdir}/;
        cp -r ${srcdir}/lib ${pkgdir}/usr/;
        install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE;
}

Also, after more thinking, I think I understood what you meant. I'm only packaging in the package function (i.e. creating the pkg.tar.xz), not doing the actual installation (i.e. copy every files to the filesystem). Hence the need to put the messages in the install script.

Last edited by gromain (2016-07-05 16:48:27)

Offline

#7 2016-07-13 14:26:59

gromain
Member
Registered: 2016-07-05
Posts: 6

Re: Kinetis Design Studio PKGBUILD - LICENSE Issue?

Ok.
It has been a long time without answers.
I'm going to go ahead and publish it.

Thanks for the feedback!

Offline

#8 2016-07-13 14:39:43

gromain
Member
Registered: 2016-07-05
Posts: 6

Re: Kinetis Design Studio PKGBUILD - LICENSE Issue?

Also, while making the final checks, I realized there already is a "kinetis-design-studio-bin" package in the AUR ( https://aur.archlinux.org/packages/kine … tudio-bin/ ).

I won't publish this one then, but thanks again! wink

Offline

Board footer

Powered by FluxBB