Results 1 to 3 of 3

Thread: Cannot convert .obscpio to .tar.xz with _service file

  1. #1

    Default Cannot convert .obscpio to .tar.xz with _service file

    Question 1)
    I am trying to build a font package.
    I am using a _service file to download the source code.
    https://build.opensuse.org/package/s...at/cadson-test

    The _service file look like this
    Which I refer from https://openbuildservice.org/2016/04/08/new_git_in_27/
    Code:
    <services>
      <service name="obs_scm">
        <param name="url">git://github.com/cadsondemak/cadsondemak.github.io.git</param>
        <param name="scm">git</param>
        <param name="revision">master</param>
        <param name="versionprefix">0.0.20191123+git</param>
      </service>
      <service mode="buildtime" name="tar" />
      <service mode="buildtime" name="recompress">
        <param name="file">*.tar</param>
        <param name="compression">xz</param>
      </service>
      <service mode="buildtime" name="set_version" />
    </services>
    But I can't get a .tar.xz out of it.

    Question 2) How do I delete a file or folder from the source with _service file? Let's say for example, the author have some proprietary fonts mixed with opensource fonts. And I want to only remove proprietary fonts. Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,224
    Blog Entries
    15

    Default Re: Cannot convert .obscpio to .tar.xz with _service file

    Quote Originally Posted by andythe_great View Post
    Question 1)
    I am trying to build a font package.
    I am using a _service file to download the source code.
    https://build.opensuse.org/package/s...at/cadson-test

    The _service file look like this
    Which I refer from https://openbuildservice.org/2016/04/08/new_git_in_27/
    Code:
    <services>
      <service name="obs_scm">
        <param name="url">git://github.com/cadsondemak/cadsondemak.github.io.git</param>
        <param name="scm">git</param>
        <param name="revision">master</param>
        <param name="versionprefix">0.0.20191123+git</param>
      </service>
      <service mode="buildtime" name="tar" />
      <service mode="buildtime" name="recompress">
        <param name="file">*.tar</param>
        <param name="compression">xz</param>
      </service>
      <service mode="buildtime" name="set_version" />
    </services>
    But I can't get a .tar.xz out of it.

    Question 2) How do I delete a file or folder from the source with _service file? Let's say for example, the author have some proprietary fonts mixed with opensource fonts. And I want to only remove proprietary fonts. Thanks.
    Hi
    Not sure, I use tar_scm....

    For question two, don't... Sources should be pristine else they won't pass source checks upstream as well as end user scrutiny etc, so just remove during the build then a user can see what your doing.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: Cannot convert .obscpio to .tar.xz with _service file

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Not sure, I use tar_scm....

    For question two, don't... Sources should be pristine else they won't pass source checks upstream as well as end user scrutiny etc, so just remove during the build then a user can see what your doing.
    I solved it, I missed spelled the folder name.
    From what I have read, tar_scm is depreciated? https://github.com/openSUSE/obs-service-tar_scm

    Thanks for the help.

Posting Permissions

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