artmg / nixnote2-packaging Goto Github PK
View Code? Open in Web Editor NEWDebian packaging control file(s) for NixNote2
Debian packaging control file(s) for NixNote2
Launchpad has not imported the upstream code from baumgarr/nixnote2 since 24-Nov-16, and therefore the PPA has not been updated with new daily builds since then.
The error in the import logs is
bzrlib.plugins.git.errors.UnknownCommitExtra: Unknown extra fields in <Commit 0bc04389c007b89933b9c0d11aaf4e869ae85ae5>: ['gpgsig'].
which indicates that the git-to-bzr import has failed because it cannot handle GPG signed commits. Worryingly this is a bug in the import code first raised four years ago.
Hi!
I found following wiki page in search: https://github.com/artmg/nixnote2-packaging/wiki/Launchpad-Setup-History
Launchpad supports importing git code directly since 16-10-2016, see the doc for setup instructions.
A note: if 1084403 bug still open when you're reading this, don't forget to clean your bzr import settings from old setup or you couldn't set a recipe for git code even if it's there.
apt throws the following error in 18.04:
http://ppa.launchpad.net/nixnote/nixnote2-daily/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
The repository 'http://ppa.launchpad.net/nixnote/nixnote2-daily/ubuntu bionic Release' does not have a Release file.
The builds for Xenial and Yakkety raise a "Dependency Wait" issue containing the following in the logs
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
builddeps:nixnote2 : Depends: openjdk-7-jdk but it is not installable
E: Unable to correct problems, you have held broken packages.
Hi Art,
would you be willing to update upstream repository to my fork? (You wrote in baumgarr/nixnote2#446 that this would be possible). Although I did an AppImage build, it seems the Ubuntu PPA would still be helpful to many people. Also the themeing currently doesn't work with AppImage, but will work with native package.
Currently the version is "v2.1.0-beta2".. it should be already quite stable - at least for the functions I'm using. So you could update the daily-build to use "master" branch from my repository. I wrote a migration info for v2.0 users, but basically nothing needs to be done when switching from v2.0 to v2.1 - all should work out of the box and the new version should pickup the existing configs and data. Also switch from v2.1 back to v2.0 is possible without problems.
I did some changes in the build, so your script will need updating. But I will gladly assist you. Mainly html tidy must be used with 5.6.0 tag and Qt4 build is not supported anymore. It is best to use Qt 5.5.1 (Qt4 or Qt5.6+ will currently not work).
How to build is described in README.md, but most up to date is the docker file "development/docker/Dockerfile.ubuntu_xenial" which I'm using to build the AppImage. There you see all required dependencies and how to add tidy.
When including Ubuntu Precise (version 12.04 LTS) as one of the target versions for the Build Recipe, the package, then build fails with the following:
g++ -c -pipe -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I/usr/include/poppler/qt4 -Irelease -o release/nixnote.o nixnote.cpp
In file included from nixnote.cpp:26:0:
dialog/webcamcapturedialog.h:34:23: fatal error: opencv/cv.h: No such file or directory
compilation terminated.
The plugins for spelling, webcam etc are not compiling. Although this issue does not stop the build from working, and the PPA does refresh fine with new code commits, it does prevent the plugins from functioning. This means that these features are not currently available to users of the PPA.
When executing nixnote2 with hunspell-en-gb
and hunspell
packages installed, trying the menu option Note / Spell Check raises the error dialog "Hunspell plugin not found or could not be loaded".
Should there be some explicit directives or overrides in the build to compile the plugins as well as the core? If you check a recent example build log you will not find ANY mentions of qmake happening in the plugins folders.
When you install from the PPA, then run nixnote2 and pick Help / About from the menu, it simply displays __VERSION__
rather than saying what the version actually IS
Trusty (14.04 LTS) builds (32 + 64 bit) fails with ‘IgnoreCase’ is not a member of ‘Poppler::Page’
Poppler version installed on Trusty libpoppler-qt5-1 amd64 0.24.5-2ubuntu4.5
dates from 2 January 2014.
Extract from build log
gui/plugins/popplerviewer.cpp: In member function ‘void PopplerViewer::findNextPage(QStringList, QList<QRectF>*)’:
gui/plugins/popplerviewer.cpp:161:76: error: ‘IgnoreCase’ is not a member of ‘Poppler::Page’
QList<QRectF> results = doc->page(page)->search(searchHits[i], Poppler::Page::IgnoreCase);
^
gui/plugins/popplerviewer.cpp: In member function ‘QPixmap PopplerViewer::highlightImage()’:
gui/plugins/popplerviewer.cpp:190:77: error: ‘IgnoreCase’ is not a member of ‘Poppler::Page’
searchLocations.append(doc->page(currentPage)->search(searchHits[i],Poppler::Page::IgnoreCase));
Not everyone wants to install from the bleeding edge, so create a new PPA nixnote2-stable
libevent-dev
is listed as build dependency but no related source code found.strip
never needs to be called explicitly in debian/rules
. Debhelper will do it automatically.The daily builds for Ubuntu Precise Pangolin LTS version 12.04 do not work since migrating to QT5, failing with error Build-Depends dependency for nixnote2 cannot be satisfied because the package libpoppler-qt5-dev cannot be found
.
This Long Term Support (LTS) version is due to go end of life in April 2017. We know we have PPA users still actively working on Trusty LTS 14.04, and the more recent Xenial LTS 16.04, but are there any users who need still need PPA Daily builds for Precise?
I am having problem using NixNote2 on Trusy (14.04). It installs without problems, but when about to start it complaints about libcurl.so.4:
nixnote2: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
I've tried to make a link to the version of the libcurl.so.4 that I have on my system, but then I got the following error:
nixnote2: error while loading shared libraries: libcurl.so.4: wrong ELF class: ELFCLASS64
I assumed, that I should have libcurl.so.4 in 32bit version. I am not sure how to do that (tried installing libcurl4:i386, but that would replace a lot of my 64 bit packages...). And even if I fix this error (I linked to the libcurl.so.4 used by other app, which has the lib in its own folder) I am facing another problem:
nixnote2: error while loading shared libraries: libpoppler-qt4.so.4: cannot open shared object file: No such file or directory
Can anyone help with this please?
Note: NixNote2 works well on 16.04.
After adding ppa to Ubuntu 14.04 I am getting 404 when trying to install.
Since recent upstream updates the build fails with the following error
html/enmlformatter.cpp:32:23: fatal error: tidy/tidy.h: No such file or directory
The last successful build was nixnote2-daily+20170220
Investigate @hosiet debian build scripts at https://github.com/hosiet/ppa/tree/master/debuild/nixnote2-2.0%7Ebeta8/debian to see if there are techniques we can use for a combined debian / ubuntu launchpad build (with the possibility of one day merging back into the main baumgarr head?)
Although issue #25 was closed, the resulting build did not deliver a new executable. New versions now report
Invalid desktop entry file: '/home/art/.local/share/applications/nixnote2.desktop'
because the executable is not correctly included in the package.
Currently investigating issue
I can't install the latest version (2.0beta10) on Yakkety because needs the package libopencv-highgui2.4v5 and this package isn't available anymore. The correct package which replaces that package is libopencv-highgui2.4-deb0.
I tried to install Nixnote2 on Yakkety from repository in a system which doesn't had Nixnote2 before and found this package changes:
libhunspell-1.3-0 -> libhunspell-1.4-0
libavcodec54 -> libavcodec57
libavcodec-extra-56 -> libavcodec-extra57
libavformat56 -> libavformat57
libswscale3 -> libswscale4
Seems this need to be added as dependencies options to install correctly.
Since recent upstream changes (including merge requests 151, 175, 179) the automatic launchpad builds (across all distro versions) fail - build log shows:
Committed revision 748.
Applying quilt patches
Applying patch make_install.patch
patching file NixNote2.pro
Hunk #2 FAILED at 434.
1 out of 2 hunks FAILED -- rejects in file NixNote2.pro
Restoring NixNote2.pro
Patch make_install.patch does not apply (enforce with -f)
Restoring NixNote2.pro
bzr: ERROR: bzrlib.errors.BzrCommandError: Failed to apply quilt patches
Builds across all target Ubuntu versions failing. Example Build log:
In file included from ./gui/nbrowserwindow.h:61:0,
from gui/ntabwidget.h:23,
from nixnote.h:35,
from main.cpp:22:
./plugins/hunspell/hunspellplugin.h:31:23: error: ‘IID’ has not been declared
Q_PLUGIN_METADATA(IID "org.nixnote.NixNote2.HunspellInterface/2.0");
^~~
./plugins/hunspell/hunspellplugin.h:31:27: error: expected ‘,’ or ‘...’ before string constant
Q_PLUGIN_METADATA(IID "org.nixnote.NixNote2.HunspellInterface/2.0");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./plugins/hunspell/hunspellplugin.h:31:71: error: ISO C++ forbids declaration of ‘Q_PLUGIN_METADATA’ with no type [-fpermissive]
Q_PLUGIN_METADATA(IID "org.nixnote.NixNote2.HunspellInterface/2.0");
^
Makefile.Release:3162: recipe for target 'release/main.o' failed
make[3]: *** [release/main.o] Error 1
dh_auto_build: make -j1 returned exit code 2
Packages in the nixnote2-daily PPA are showing as 2.0-beta-4-0 whereas the head is actually at beta 7
Further to Sourceforge issue #217 NixNote 2 Beta 4 - Ubuntu Wily (15.10) can't install from .deb due to dependencies from JPvRiel, the Ubuntu dependencies could be noted in the debian control file as:
Depends: libc6, libhunspell-1.3-0, libpoppler-qt4-4, libqtwebkit4, libqt4-sql, libqt4-sql-sqlite, libqt4-xml, libqtgui4, libqt4-network, libqtcore4, libpng12-0, libpoppler28 | libpoppler43 | libpoppler44 | libpoppler46 | libpoppler49 | libpoppler52, libsqlite3-0, libtbb2, libopenexr6 | libopenexr22, tidy, libavcodec53 | libavcodec54 | libavcodec-ffmpeg56 | libavcodec-extra-53 | libavcodec-extra-54 | libavcodec-extra-56 | libavcodec-ffmpeg-extra56, libavformat53 | libavformat54 | libavformat-extra-53 | libavformat-extra-54 | libavformat-55 | libavformat55 | libavformat-extra-55 | libavformat56 | libavformat-56 | libavformat-extra-56 | libavformat-ffmpeg56, libswscale2 | libswscale-extra-2 | libswscale3 | libswscale-ffmpeg3, libdc1394-22, libopencv-core2.4 | libopencv-core2.4v5, libopencv-highgui2.4 | libopencv-highgui2.4v5, libcurl3
See the sourceforge attached install notes for details.
My NixNote2 from daily builds doesn't show the icon on Unity launcher. I checked and seems there's no icon on package to be showed.
Can we fall back onto debhelper to specify Depends merely as:
Depends: ${shlibs:Depends}, ${misc:Depends}
see https://wiki.debian.org/IntroDebianPackaging but note this is ONLY runtime, Build-Depends must still be manual!
Perhaps try an alternate PPA for testing this initially.
Although the workaround for issue #7 worked, is requires manual intervention each time the ChangeLog is updated.
This feature request is to automatically include the latest version of the ChangeLog, perhaps using nest-part in the Recipe. This PPA currently has no requirement for amending the file from its upstream version, so should not require any special rules.
The upstream ChangeLog can be found at the URL https://github.com/baumgarr/nixnote2/blob/master/changelog.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.