-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Problems packaging Racket 8.0 for Fedora. #3726
Comments
That path should get replaced as one of the last steps of The issue is that For Gentoo, @tgbugs make it work anyway by staging either the CS or BC build to an intermediate directory, and then merging that to the main DESTDIR with something like |
So I actually have the same problem. For some reason when I was doing my test installation the build path did not get removed so the executables were not able to find I have fixed the problem manually before by hand editing the binaries, but I can't seem to spot it now. A simple find and replace doesn't work because they are padded fields. At one point I think I had found the right place to insert a second update to those two fields in the binaries, it sounds from what @mflatt is saying we might be able to run the |
I went ahead and set up the package for the Chez Scheme version with out the byte code interpreter and even with that change what I get is this error when I attempt to run racket. Considering that you want people to transition from the byte code interpreter to Chez Scheme this seems like an important issue.
When I check the strings I still find portions of the build root directory in the racket executable. Here is what I found. coNFIg dIRECTORy:/etc/racket coLLECTs dIRECTORy:/usr/share/racket/collects At this point I am forced to conclude that these are symptoms of an underlying problem with your build system. It would figure that the Gentoo crowd would discover such a work around but not all packagers are willing to go to such lengths and the Fedora crowd are likely to have a problem with such methods. I very much doubt I could get that through their automatic package checking system for a start. Here is the spec file for the Chez Scheme version. |
In the light of a fresh day, I see that a It's true that the I'm able to replicate the "malformed fasl-object" problem by running
to "racket.spec.txt" solves the problem. |
Since I only have a minimal racket install working when building directly from the git repo I will report back here when the next snapshot build is available from https://www.cs.utah.edu/plt/snapshots/. |
Thank you @mflatt. That did the trick. The tail remnants of the build root directory are not causing a problem with my current incarnation of the racket package but that is just a happy accident. The hard part is getting the Fedora people to accept it but I now have a shot at it. |
Reporting fixed on my end at Snapshot: 20210314-5e1df80 at 5e1df80. |
For some reason the Chez Scheme executables seem to have the build root directory in them and as a consequence rpm will not complete building the package. I am including a copy of the racket.spec file so that you can see the commands that I am using to build and install Racket 8.0 with. I created a package with just the byte code version of racket and that works fine.
I don't know enough about your build system to figure out how these directories find their way in the executable gracketcs. Could really use some help here.
Here is the relevant Error:
I used the strings program to find the strings in the executable in gracketcs and here is the result:
-xnllanguage
-xrm
-singleInstance
bINARy tYPe:ris
%s: X Window System flag "%s" expects %d arguments, %d provided
[Replace me for EXE hack ]
BooT FilE OffsetS:
coNFIg dIRECTORy:/home/danw/rpmbuild/BUILDROOT/racket-8.0-2.fc32.x86_64/etc/racket
coLLECTs dIRECTORy:/home/danw/rpmbuild/BUILDROOT/racket-8.0-2.fc32.x86_64/usr/share/racket/collects
rktio_init
rktio_destroy
rktio_free
rktio_set_dll_path
rktio_get_dll_path
rktio_system_fd
rktio_fd_system_fd
racket.spec.txt
The text was updated successfully, but these errors were encountered: