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

Use fakeroot for « make deb »... #39

Open
Creteil opened this issue Feb 23, 2023 · 2 comments · May be fixed by #37
Open

Use fakeroot for « make deb »... #39

Creteil opened this issue Feb 23, 2023 · 2 comments · May be fixed by #37
Assignees
Labels
enhancement New feature or request

Comments

@Creteil
Copy link

Creteil commented Feb 23, 2023

IMHO, it is better to use « fakeroot » to build the debian package :

bigbob@bigbob-ux331un:~/tmp/Building/actions-for-nautilus/actions-for-nautilus$ fakeroot make deb
rm -rf build
mkdir -p build//usr/share/nautilus-python
mkdir -p build//usr/share/actions-for-nautilus-configurator
mkdir -p build//usr/share/applications
mkdir -p build//usr/share/doc/actions-for-nautilus
mkdir -p build/DEBIAN
cp -r --preserve=mode,timestamps extensions build//usr/share/nautilus-python
cp -r --preserve=mode,timestamps configurator/* build//usr/share/actions-for-nautilus-configurator
rm build//usr/share/actions-for-nautilus-configurator/javascript/jquery.min.js
LOC=/usr/share python3 -c 'import os,sys; sys.stdout.write(os.path.expandvars(sys.stdin.read()))' \
	< build//usr/share/actions-for-nautilus-configurator/actions-for-nautilus-configurator.desktop \
	> build//usr/share/applications/actions-for-nautilus-configurator.desktop
VERSION=1.6.0 python3 -c 'import os,sys; sys.stdout.write(os.path.expandvars(sys.stdin.read()))' \
	< packaging/DEBIAN/control \
	> build/DEBIAN/control
cp -r --preserve=mode,timestamps packaging/doc build//usr/share
cp README.md build//usr/share/doc/actions-for-nautilus
cp RELEASE-NOTES.md build//usr/share/doc/actions-for-nautilus/NEWS
mv build//usr/share/actions-for-nautilus-configurator/README.md build//usr/share/doc/actions-for-nautilus/configurator.README.md
gzip -n9 build//usr/share/doc/actions-for-nautilus/NEWS
gzip -n9 build//usr/share/doc/actions-for-nautilus/changelog
find build/ -type d -exec chmod 0755 {} \;
find build/ -type f -exec chmod 0644 {} \;
chmod +x build//usr/share/actions-for-nautilus-configurator/start-configurator.sh
dpkg-deb -Z gzip --build build dist/actions-for-nautilus_1.6.0_all.deb
dpkg-deb: construction du paquet « actions-for-nautilus » dans « dist/actions-for-nautilus_1.6.0_all.deb ».
lintian dist/actions-for-nautilus_1.6.0_all.deb
running with root privileges is not recommended!
W: actions-for-nautilus: copyright-without-copyright-notice
bigbob@bigbob-ux331un:~/tmp/Building/actions-for-nautilus/actions-for-nautilus$
@bassmanitram
Copy link
Owner

bassmanitram commented Feb 23, 2023 via email

@bassmanitram bassmanitram self-assigned this Feb 23, 2023
@bassmanitram bassmanitram added the enhancement New feature or request label Feb 23, 2023
@bassmanitram
Copy link
Owner

Part of the outstanding PR - #37. Will get merged when I finally find time to retest.

@bassmanitram bassmanitram linked a pull request Feb 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants