Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: How to Write Correct copyright File?

  1. #1
    Join Date
    Apr 2012
    Beans
    48

    Lightbulb How to Write Correct copyright File?

    Hello, it is the continuation from previous thread

    I wanna my copyright file inside debian/usr/share/doc/myapp/ become correct and Ubuntu Software Center detect my DEB as Open Source. I've followed what Debian Packaging Pages here and as addition, Lintian doesn't say any ERROR or WARNING about my copyright file. But Ubuntu Software Center says unknown at License field when open my DEB.

    Okay, I have done these:
    1) copypaste another DEB's copyright file (I choose only no lintian error DEBs)
    2) copypaste Debian Packaging Guide in copyright section examples (more than once)
    3) edit them and accomplish the content

    Problem:
    Ubuntu Software Center doesn't detect my copyright when I open my DEB.

    Question:
    How to write correct copyright file? I need some exact example.

    Attachment:
    This is my copyright file content now:

    Code:
    Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174
    Upstream-Name: myapp
    Upstream-Contact: Ade Malsasa Akbar <teknoloid@gmail.com>
    Source: http://malsasa.wordpress.com
    
    Files: *
    Copyright: 2013, Ade Malsasa Akbar (teknoloid@gmail.com)
    License: GPL-3+
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation, either version 3 of the License, or
     (at your option) any later version.
     .
     This package is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
     .
     You should have received a copy of the GNU General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
     .
     On Debian systems, the complete text of the GNU General
     Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
    
     
    Files: debian/*
    Copyright: 2013, Ade Malsasa Akbar <teknoloid@gmail.com>           
    License: GPL-3+
     The Debian packaging information is under the GPL, version 3 or later
     On Debian systems, the complete text of the GNU General Public License
     version 3 can be found in `/usr/share/common-licenses/GPL-3'.

  2. #2
    Join Date
    Apr 2012
    Beans
    48

    Re: How to Write Correct copyright File?

    Hello... Any answer?

  3. #3
    Join Date
    Aug 2011
    Location
    Melbourne, Australia.
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How to Write Correct copyright File?

    Quote Originally Posted by Malsasa View Post
    Hello... Any answer?
    Hi,

    I personally wait for 24 hours before posting again if my thread is unanswered. This is considered normal accepted practice in the Forums. Of course if somebody replies to your question in less than 24 hours then go for it.

    Cheers -
    PopularPages: A very handy Documentation Search Tool used by many.

    PopularPages Wiki Thread

  4. #4
    Join Date
    Apr 2012
    Beans
    48

    Re: How to Write Correct copyright File?

    Ow. I am sorry. Thank you so much...

  5. #5
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: How to Write Correct copyright File?

    • Quote Originally Posted by Malsasa View Post
      I wanna my copyright file inside debian/usr/share/doc/myapp/ become correct
      I suppose you're putting your copyright file in the debian directory (debian/copyright)? It gets automatically installed by debhelper into debian/myapp/usr/share/doc/myapp/ when building the package.
    • Since Standards-Version: 3.9.3, the DEP-5 proposal has become part of the Debian policy. You can change the first line to
      Code:
      Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
    • Since all files are identically licensed, the extra section for Files: debian/* is not needed.


    Do you get any warnings from lintian for your package?
    Last edited by schragge; February 20th, 2013 at 01:33 PM.

  6. #6
    Join Date
    Apr 2012
    Beans
    48

    Re: How to Write Correct copyright File?

    Wow, thank you so much. I am glad there is a user answer me...

    First, i used command: fakeroot dpkg --build debian. I don't know another command. I followed this tutorial: http://blog.noizeramp.com/2005/08/31...other-debians/. That is the simplest and easiest for me... And I don't know debhelper yet.

    Second, I have tried your advice as said many users I asked before, I placed copyright at debian/ but USC is still doesn't show License: Open Source like another DEBs.

    Third, I will try your formatting.

    Fourth, lintian says W only (no E):
    Code:
    W: myapp: classpath-contains-relative-path usr/lib/myapp/myapp.jar: lib/AbsoluteLayout.jar, lib/beansbinding-1.2.1.jar
    W: myapp: binary-without-manpage usr/bin/myapp
    W: myapp: executable-not-elf-or-script usr/share/icons/hicolor/96x96/apps/logomyapp.png
    W: myapp: executable-not-elf-or-script usr/share/icons/hicolor/48x48/apps/logomyapp.png
    W: myapp: executable-not-elf-or-script usr/bin/myapp
    W: myapp: executable-not-elf-or-script usr/lib/myapp/myapp.jar
    W: myapp: executable-not-elf-or-script usr/share/icons/hicolor/128x128/apps/logomyapp.png
    W: myapp: executable-not-elf-or-script usr/share/icons/hicolor/64x64/apps/logomyapp.png
    W: myapp: executable-not-elf-or-script usr/share/icons/hicolor/16x16/apps/logomyapp.png
    W: myapp: executable-not-elf-or-script usr/share/icons/hicolor/32x32/apps/logomyapp32.png
    W: myapp: executable-not-elf-or-script usr/share/pixmaps/logomyapp.png
    W: myapp: maintainer-script-ignores-errors postinst
    W: myapp: maintainer-script-empty prerm
    W: myapp: maintainer-script-ignores-errors prerm
    and no one related with copyright.

    Thank you for your support... I wanna go back here again.

  7. #7
    Join Date
    Apr 2012
    Beans
    48

    Re: How to Write Correct copyright File?

    I have done your formatting in Format: field. And I also deleted last paragraph you said not necessay. But USC still don't show License: Open Source. It still say License: Unknown.

    I wanna my DEB license (open source) appear in USC. Any other solution? Thank you...


  8. #8
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: How to Write Correct copyright File?

    Quote Originally Posted by Malsasa View Post
    First, i used command: fakeroot dpkg --build debian. I don't know another command. I followed this tutorial: http://blog.noizeramp.com/2005/08/31...other-debians/. That is the simplest and easiest for me... And I don't know debhelper yet.
    Oh I see. Well, dpkg --build is the simplest way to create a deb package, but it's very error-prone. It's a quick&dirty method of creating a deb when you're in a hurry, but you probably shouldn't use it if you don't know ins and outs of the Debian package format. The proper way is to create a source package as described in the Introduction to Debian packaging and build it with dpkg-buildpackage, or, better yet, with the debuild command from the package devscripts.

    Anyway, as you've already built your package, can you please post the output from the following commands?
    Code:
    dpkg-deb -I myapp*.deb md5sums
    dpkg-deb -c myapp*.deb

  9. #9
    Join Date
    Apr 2012
    Beans
    48

    Re: How to Write Correct copyright File?

    Wow, thank you so much! This is a good support... These the result:

    First
    Code:
    master@master:~/Publik/Java/Pemaketan$ dpkg-deb -I debian.deb md5sums
    dpkg-deb: `debian.deb' contains no control component `md5sums'
    dpkg-deb: error: 1 requested control component is missing
    Second
    Code:
    master@master:~/Publik/Java/Pemaketan$ dpkg-deb -c debian.deb
    drwxr-xr-x root/root         0 2013-02-20 21:15 ./
    drwxr-xr-x root/root         0 2013-02-16 15:49 ./usr/
    drwxr-xr-x root/root         0 2013-02-18 16:14 ./usr/bin/
    -rwxr-xr-x root/root        50 2013-02-18 14:51 ./usr/bin/myapp
    drwxr-xr-x root/root         0 2013-02-16 15:49 ./usr/lib/
    drwxr-xr-x root/root         0 2013-02-16 15:52 ./usr/lib/myapp/
    -rwxr-xr-x root/root  12134446 2013-02-11 23:20 ./usr/lib/myapp/myapp.jar
    drwxr-xr-x root/root         0 2013-02-18 18:56 ./usr/share/
    drwxr-xr-x root/root         0 2013-02-18 16:14 ./usr/share/doc/
    drwxr-xr-x root/root         0 2013-02-20 21:18 ./usr/share/doc/myapp/
    -rw-r--r-- root/root       134 2013-02-18 16:16 ./usr/share/doc/myapp/AUTHORS
    -rw-r--r-- root/root      1036 2013-02-20 21:18 ./usr/share/doc/myapp/copyright
    -rw-r--r-- root/root       158 2013-02-19 12:58 ./usr/share/doc/myapp/changelog.gz
    drwxr-xr-x root/root         0 2012-01-08 09:51 ./usr/share/icons/
    drwxr-xr-x root/root         0 2013-02-18 19:03 ./usr/share/icons/hicolor/
    drwxr-xr-x root/root         0 2012-01-08 09:51 ./usr/share/icons/hicolor/32x32/
    drwxr-xr-x root/root         0 2013-02-18 18:48 ./usr/share/icons/hicolor/32x32/apps/
    -rwxr-xr-x root/root      1210 2013-02-18 18:48 ./usr/share/icons/hicolor/32x32/apps/logomyapp32.png
    drwxr-xr-x root/root         0 2013-02-18 19:06 ./usr/share/icons/hicolor/128x128/
    drwxr-xr-x root/root         0 2013-02-18 19:06 ./usr/share/icons/hicolor/128x128/apps/
    -rwxr-xr-x root/root      3781 2013-02-18 19:03 ./usr/share/icons/hicolor/128x128/apps/logomyapp.png
    drwxr-xr-x root/root         0 2013-02-18 19:06 ./usr/share/icons/hicolor/64x64/
    drwxr-xr-x root/root         0 2013-02-18 19:06 ./usr/share/icons/hicolor/64x64/apps/
    -rwxr-xr-x root/root      2380 2013-02-18 19:03 ./usr/share/icons/hicolor/64x64/apps/logomyapp.png
    drwxr-xr-x root/root         0 2013-02-18 19:06 ./usr/share/icons/hicolor/96x96/
    drwxr-xr-x root/root         0 2013-02-18 19:06 ./usr/share/icons/hicolor/96x96/apps/
    -rwxr-xr-x root/root      2814 2013-02-18 19:05 ./usr/share/icons/hicolor/96x96/apps/logomyapp.png
    drwxr-xr-x root/root         0 2013-02-18 18:45 ./usr/share/icons/hicolor/16x16/
    drwxr-xr-x root/root         0 2013-02-18 18:45 ./usr/share/icons/hicolor/16x16/apps/
    -rwxr-xr-x root/root       682 2013-02-18 18:44 ./usr/share/icons/hicolor/16x16/apps/logomyapp.png
    drwxr-xr-x root/root         0 2012-01-08 09:51 ./usr/share/icons/hicolor/48x48/
    drwxr-xr-x root/root         0 2013-02-18 18:47 ./usr/share/icons/hicolor/48x48/apps/
    -rwxr-xr-x root/root      1858 2013-02-18 18:46 ./usr/share/icons/hicolor/48x48/apps/logomyapp.png
    drwxr-xr-x root/root         0 2013-02-18 00:50 ./usr/share/applications/
    -rw-r--r-- root/root       216 2013-02-18 00:50 ./usr/share/applications/myapp.desktop
    drwxr-xr-x root/root         0 2013-02-18 18:56 ./usr/share/pixmaps/
    -rwxr-xr-x root/root      1858 2013-02-18 18:46 ./usr/share/pixmaps/logomyapp.png
    drwxr-xr-x root/root         0 2013-02-19 08:11 ./usr/share/menu/
    -rw-r--r-- root/root       112 2013-02-18 18:50 ./usr/share/menu/myapp
    master@master:~/Publik/Java/Pemaketan$
    Wow, your 2 commands here are new for me. It is advanced, and so interesting. Can you explain simply unto me? Ehm, are 2 commands give you what do you need? Thank you su much

  10. #10
    Join Date
    Apr 2012
    Beans
    48

    Re: How to Write Correct copyright File?

    And your initial 2 packaging command are completely new for me. Wow, advanced I am glad to know

    1) dpkg-buildpackage
    2) debuild

    I am a beginner in packaging, so these 2 commands is so valuable for me

    You gave me the simplest explanation so I understand easily Please keep that...

    Thank you from Indonesia

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •