Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not store full path in GZipped js files. #341

Merged
merged 1 commit into from Dec 20, 2015

Conversation

voxik
Copy link
Contributor

@voxik voxik commented Jan 27, 2015

This cause issues in RPM packaged gems in Fedora, since the files, there appears full path with installation prefix, while in reality, they are later installed on different place. E.g. during package build of Hub [1], the documentation is generated into /builddir/build/BUILDROOT/hub-1.12.1-3.fc22.noarch/usr/share/doc/hub directory, while the /builddir/build/BUILDROOT/hub-1.12.1-3.fc22.noarch prefix is later on stripped when the resulting RPM is generated. This cause issues such as:

+ /usr/lib/rpm/check-buildroot
Binary file /builddir/build/BUILDROOT/hub-1.12.1-3.fc22.noarch/usr/share/doc/hub/js/navigation.js.gz matches
Binary file /builddir/build/BUILDROOT/hub-1.12.1-3.fc22.noarch/usr/share/doc/hub/js/search_index.js.gz matches
Binary file /builddir/build/BUILDROOT/hub-1.12.1-3.fc22.noarch/usr/share/doc/hub/js/searcher.js.gz matches
Found '/builddir/build/BUILDROOT/hub-1.12.1-3.fc22.noarch' in installed files; aborting
error: Bad exit status from /var/tmp/rpm-tmp.hP0mLS (%install)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.hP0mLS (%install)

Aside from this particular issue, I really wonder why generation of the GZipped js files is not just optional. As far as I can say, they are not useful when the documentation is browsed just locally. In this case, it just consume more disk space.

[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=8735163

@voxik
Copy link
Contributor Author

voxik commented Jan 27, 2015

This relates to #334

@voxik
Copy link
Contributor Author

voxik commented Jul 1, 2015

ping ... can this be accepted please? This is still issue.

@zzak
Copy link
Member

zzak commented Jul 6, 2015

@voxik Sorry for the delay! I will be spending some time this summer on RDoc, and will get this into the next release.

@voxik
Copy link
Contributor Author

voxik commented Jul 6, 2015

That's a good news. Thank you.

zzak pushed a commit that referenced this pull request Dec 20, 2015
Do not store full path in GZipped js files.
@zzak zzak merged commit aa82272 into ruby:master Dec 20, 2015
hsbt referenced this pull request in ruby/ruby Dec 22, 2015
mrkn referenced this pull request in mrkn/ruby Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants