-
Notifications
You must be signed in to change notification settings - Fork 56
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
Update the build and packaging script for Fedora 37. #109
Conversation
* Add scheduled canary build. This feels like a necessary thing to have, especially in light of the GNOME 43 upgrade. * Move to correct folder. * Update installed packages. * add libgtk-4-dev for ubuntu Co-authored-by: Geoffry Song <[email protected]>
|
This reverts commit 586ad95.
Okay now it's ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it works it works, I admit that I don't really know how rpm works.
Incidentally we should probably also get rid of the sketchy code included in the RPM that traverses /home/*/.dropbox-dist and deletes old Dropbox versions (see generate-rpm.sh)
HOWTO_PACKAGE.md
Outdated
Probably you have to run `build_packages.py` command with `sudo` permission which | ||
means you should add your root account to the mock group. Otherwise, you will see | ||
`The password you typed is invalid.` error. | ||
4. On a Fedora machine: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this numbering seems wrong ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step three knows what it did >:(
@@ -29,7 +29,7 @@ cat <<EOF > $HOME/.rpmmacros | |||
%_tmppath $(pwd)/rpmbuild | |||
%_smp_mflags -j3 | |||
%_signature gpg | |||
%_gpg_name 3565780E |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was curious and it turns out this was rian hunter's key 😆
generate-rpm.sh
Outdated
# Old versions of the rpm delete these files in postun. Fortunately we have saved a backup. | ||
if [ ! -e %{_libdir}/nautilus/extensions-4/libnautilus-dropbox.so ]; then | ||
if [ -e %{_libdir}/nautilus/extensions-4/libnautilus-dropbox.so.bak ]; then | ||
mv -f %{_libdir}/nautilus/extensions-4/libnautilus-dropbox.so{.bak,} | ||
fi | ||
fi | ||
|
||
rm -f %{_libdir}/nautilus/extensions-3.0/libnautilus-dropbox.so.bak | ||
rm -f %{_libdir}/nautilus/extensions-2.0/libnautilus-dropbox.so.bak | ||
rm -f %{_libdir}/nautilus/extensions-4/libnautilus-dropbox.so.bak |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing this is not necessary any more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. Old versions wouldn't be touching this path anyway.
generate-rpm.sh
Outdated
if [ \$1 -gt 1 ] ; then | ||
# Old versions of the rpm delete the files in postun. So just in case let's make a backup copy. The backup copy will be restored in posttrans. | ||
ln -f %{_libdir}/nautilus/extensions-3.0/libnautilus-dropbox.so{,.bak} | ||
ln -f %{_libdir}/nautilus/extensions-2.0/libnautilus-dropbox.so{,.bak} | ||
ln -f %{_libdir}/nautilus/extensions-4/libnautilus-dropbox.so{,.bak} | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this
I just upgraded to F37. But still can't find the package.
sorry if I missed something. |
Since Ubuntu dropped support for building RPMs in 20.04, but we need to build against a version of GNOME that didn't ship until Ubuntu 22.10, we have to split the build into a
.deb
half and a.rpm
half. The.deb
half must be run under Debian or Ubuntu, while the.rpm
half must be run on a Fedora or RHEL machine. This allows us to release coreyberla's fix, resolving #108 and #101.New package metadata (package name and signature match):
Old package metadata: