Skip to content

Comments

[Fix] bypass rpmbuild ln error#210

Open
canxin121 wants to merge 2 commits intofastforgedev:mainfrom
canxin121:main
Open

[Fix] bypass rpmbuild ln error#210
canxin121 wants to merge 2 commits intofastforgedev:mainfrom
canxin121:main

Conversation

@canxin121
Copy link

@canxin121 canxin121 commented Jul 31, 2024

close #209
I bypassed this error by adding a new attribute 'bin_name' to specify the executable file name in the file path when creating the symbolic link.

'mkdir -p %{buildroot}%{_datadir}/pixmaps',
'cp -r %{name}/* %{buildroot}%{_datadir}/%{name}',
'ln -s %{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}',
'ln -s %{_datadir}/%{name}/${packageName ?? "%{name}"} %{buildroot}%{_bindir}/%{name}',
Copy link

@MarkieMark MarkieMark Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks as though this may no longer be sufficient in rpmbuild 4.20.0 (current F41) as the working directory during %install is no longer the flutter project (/dist/<versionBuild>/<projectName>-<versionBuild>-linux_rpm/rpmbuild/BUILD) (sub)directory; please see narrative at PR #236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The generated RPM package does not install correctly

2 participants