question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create_tarball_command needs change

See original GitHub issue

For create_tarball_command there is the following info in the docs:

A command which generates upstream tarball in the root of the upstream directory 
(defaults to git archive -o "{package_name}-{version}.tar.gz" 
--prefix "{package_name}-{version}/" HEAD)

After the past changes in the code, the tarball is by default created in the specfile dir: git archive -o "{specfile_dir}/{package_name}-{version}.tar.gz" --prefix "{package_name}-{version}/" HEAD and _sourcedir in the rpmbuild command is set to the specfile dir . Therefore when users use custom create_tarball_command and have spec file in the subdirectory, the SRPM creation fails.

Do we want to change the docs so that the command should generate upstream tarball in the directory with the spec file or do we want to create a symlink to the archive from the specfile directory or do you have some other suggestions?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lbarcziovacommented, Mar 9, 2020

OK, so this happened just in Dominika’s fork dhodovsk/convert2rhel#1 so we did not break any project for real.

0reactions
lbarcziovacommented, Mar 9, 2020

Yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create tar.gz file in Linux using command line - nixCraft
Open the terminal application in Linux · Run tar command to create an archived named file.tar.gz for given directory name by running: tar...
Read more >
How to create tar archive in a different directory?
The easy way, if you don't particularly need to use -C to tell tar to change to some other directory, is to simply...
Read more >
Linux tar command help and examples - Computer Hope
On Unix-like operating systems, the tar command creates, maintains, modifies, and extracts files that are archived in the tar format.
Read more >
How can I update a tar.gz file? - Ask Ubuntu
so this sequence will do what you need: # First create the tar file. It has to be UNCOMPRESSED ... Simply replace gzip...
Read more >
Use tar to combine multiple files into an archive file - IU KB
Create a compressed archive file. Many Linux distributions use GNU tar , a version of tar produced by the Free Software Foundation. If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found