Skip to content

Packit service generated version make tar fail #192

Closed

Description

@jkonecny12

Hello,

I've found this issue when I was adding Packit support to one of our projects. Seems that tar has an issue with generated number for the package version from Packit.

https://prod.packit.dev/srpm-build/9864/logs

Message: Preparing of the upstream to the SRPM build failed: Command failed (rc=2, reason={"metadata":{},"status":"Failure","message":"command terminated with non-zero exit code: Error executing in Docker Container: 2","reason":"NonZeroExitCode","details":{"causes":[{"reason":"ExitCode","message":"2"}]}})
TEMP_DIR=$(mktemp --tmpdir -d initial-setup-localization-XXXXXXXXXX) && \
git clone --depth 1 -b master -- https://github.com/rhinstaller/initial-setup-l10n.git $TEMP_DIR && \
cp $TEMP_DIR/master/*.po ./po/ && \
rm -rf $TEMP_DIR
Cloning into '/tmp/initial-setup-localization-Ekg2Mdt3Yx'...
make[1]: Entering directory '/sandcastle/docker-io-usercont-sandcastle-prod-20201116-122742104903'
(GIT_DIR=.git git log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
make[1]: Leaving directory '/sandcastle/docker-io-usercont-sandcastle-prod-20201116-122742104903'
git archive --format=tar --prefix=initial-setup-0.3.84/ r0.3.84-1 > initial-setup-0.3.84.tar
mkdir initial-setup-0.3.84
cp -r po initial-setup-0.3.84
cp ChangeLog initial-setup-0.3.84/
tar -rf initial-setup-0.3.84.tar initial-setup-0.3.84
tar: value 1021440000 out of uid_t range 0..2097151
tar: Exiting with failure status due to previous errors
make: *** [Makefile:81: archive] Error 2

From my understanding tar archive couldn't be modified because of name but it's possible that I understand it wrong. It's not happening when the SRPM archive is created locally.

https://github.com/rhinstaller/initial-setup/blob/2ebb4ba4c2493d4a5fc8b61e9e872044ef383169/Makefile#L71

Not a priority issue for us. Instead of fixing this I'm changing how the project is packaged but it could be a valid issue for another project.

Activity

  1. TomasTomecek commented on Nov 18, 2020

    @TomasTomecek
    Member
    tar: value 1021440000 out of uid_t range 0..2097151
    tar: Exiting with failure status due to previous errors
    

    This seems like a similar issue as with the archive generation in anaconda.

    The problem is that openshift pod is running as a big UID (1021440000) which makes tar break.

    I'd suggest pax tar format (tar -H pax): https://mgorny.pl/articles/portability-of-tar-features.html#user-and-group-information

  2. jkonecny12 commented on Nov 23, 2020

    @jkonecny12
    Author

    I was thinking if it is not related. Thanks for that!

    In that case, feel free to close this issue because as I mentioned in the description I'm switching the release process to setup.py instead.

  3. lachmanfrantisek commented on Nov 24, 2020

    @lachmanfrantisek
    Member

    We agreed with @TomasTomecek that we should at least document this behaviour.

  4. stale commented on Jan 23, 2021

    @stale

    This issue has been marked as stale because it hasn't seen any
    activity for the last 60 days.

    Stale issues are closed after 14 days, unless the label is removed
    by a maintainer or someone comments on it.

    This is done in order to ensure that open issues are still relevant.

    Thank you for your contribution! 🦄 🚀 🤖

    (Note: issues labeled with pinned or EPIC are
    never marked as stale.)

  5. added
    stale
    on Jan 23, 2021
  6. reopened this on Mar 3, 2021
  7. removed
    stale
    on Mar 3, 2021
  8. stale commented on Jun 2, 2021

    @stale

    This issue has been marked as stale because it hasn't seen any
    activity for the last 60 days.

    Stale issues are closed after 14 days, unless the label is removed
    by a maintainer or someone comments on it.

    This is done in order to ensure that open issues are still relevant.

    Thank you for your contribution! 🦄 🚀 🤖

    (Note: issues labeled with pinned or EPIC are
    never marked as stale.)

  9. added
    stale
    on Jun 2, 2021
  10. removed
    stale
    on Jun 4, 2021
  11. stale commented on Aug 4, 2021

    @stale

    This issue has been marked as stale because it hasn't seen any
    activity for the last 60 days.

    Stale issues are closed after 14 days, unless the label is removed
    by a maintainer or someone comments on it.

    This is done in order to ensure that open issues are still relevant.

    Thank you for your contribution! 🦄 🚀 🤖

    (Note: issues labeled with pinned or EPIC are
    never marked as stale.)

  12. added
    stale
    on Aug 4, 2021
  13. removed
    stale
    on Aug 9, 2021
  14. added a commit that references this issue on Aug 20, 2021
  15. self-assigned this
    on Aug 20, 2021
  16. added a commit that references this issue on Aug 20, 2021
    c74166a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions