tag:blogger.com,1999:blog-38399728820757001832024-03-14T18:38:46.059+09:00Goofying-with-DebianGoofying with Debianosamuhttp://www.blogger.com/profile/12377163704610747036noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3839972882075700183.post-56760977730713027192015-07-16T22:06:00.000+09:002015-07-17T00:33:34.695+09:00debmake and debamke-doc and debian-handbookWhile updating the maintainer's guide, I had faced with several issues to update it as it is, since it was based on the dh-make package and does not play nice with new features such as multi-arch etc. Also. the lack of capability to create a decent copyright information template was my concern.<br />
<div>
<br /></div>
<div>
I have created the debmake tool to address shortcomings of dh-make. It was good attempt for Jessie, but it has not so nice bug on parsing copyright. So I decided to drop it for Jessie.</div>
<div>
https://packages.qa.debian.org/d/debmake.html</div>
<div>
<br /></div>
<div>
The current testing repository has the updated debmake command. With the -k option, you can check if the your debian/copyright is covering all the files properly in source or not.</div>
<div>
<br /></div>
<div>
Since I got this updated package, I rewrote the maintainer's guide from scratch. Now it is available in the debmake-doc package. You can see all the packaging cases including autotools, cmake, and libraries. If I made a mistake, let me know. As you may noticed, debian-doc related web pages are now generated from the latest uploaded packages mostly. debmake-doc is no exception. </div>
<div>
"Guide for Debian Maintainers"</div>
<div>
https://www.debian.org/doc/manuals/debmake-doc/index.en.html</div>
<div>
<br /></div>
<div>
By using debmake as the template generation tool, the document can be made shorter and there are many practical examples. More over, all the source code examples can be found in the source tree. Try:</div>
<div>
<br /></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> $ apt-get source debmake-doc</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> $ sudo apt-get install devscripts build-essentials</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> $ sudo apt-get build-dep debmake-doc</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> $ cd debmake-doc*</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> $ make</span></div>
<div>
<br /></div>
<div>
You get the simulated log of building all the details of the packaging examples in this way.</div>
<div>
<br /></div>
<div>
With upcoming uploads, I should fix some CSS for the better cell phone compatibility but this is in good shape from the PC browsers.</div>
<div>
<br /></div>
<div>
Oh, not last ... NOW debian-handbook is on our www.debian.org server and its mirrors.</div>
<div>
<br /></div>
<div>
I think this is the most comprehensive work on Debian system and deserves to be presented in our web pages prominently. Kudos for people who wrote this fine manual.</div>
<div>
<br /></div>
<div>
https://www.debian.org/doc/manuals/debian-handbook/</div>
<div>
<br /></div>
<div>
(I think outdated reference to old TLDP pages should be mostly dropped in our https://www.debian.org/doc/ page.)</div>
<div>
<br /></div>
<div>
Please note web pages on www.debian.org has been modified to make the language based content negotiation. So you should see the page based on your browser settings.</div>
<div>
<br /></div>
<div>
Osamu</div>
osamuhttp://www.blogger.com/profile/12377163704610747036noreply@blogger.com0tag:blogger.com,1999:blog-3839972882075700183.post-51589040686686531352014-07-18T23:24:00.002+09:002014-07-19T00:50:32.845+09:00Debian does not boot ...Crucial/Micron RealSSD m4/C400/P400Today, my PC <b>did not boot as usual to Debian. </b> BIOS could not find my /dev/sda and was looking for the netboot image. I restarted my PC and got into the BIOS boot setting menu. Hmmm.... my first SDD (/dev/sda) was missing. My second HDD (/dev/sdb) was there. But I did not put the Grub boot-loader there. No wonder it did not boot.<br />
<br />
I have a 32GB USB3 stick with the full Debian system. It is not a live CD image USB stick but a HDD formatted and encrypted system. Though it is not the fastest system, it is very light and usable. I plugged it in and powered it up. It booted OK but /dev/sda was still missing. While it booted, I saw "ata1: COMRESET failed (errorno=-16)" . So this ata1 SSD cannot be accessed from BIOS nor Linux. Sigh ...<br />
<br />
Looking around the web under the USB stick system, I saw some people were talking that the loose serial ATA cable sometimes causes this message. Since my PC is a laptop, It has no flexible cable but has an on-board connector inside for the SSD.<br />
<br />
Hoping <b><span style="color: red;">my problem is just a bad connection problem</span></b>, I crack opened the back panel of my PC. The SSD looked fine. I unplugged it from the connector and reinserted back into the connector. After repeating this several times to be sure, I closed the back panel and booted.<br />
<br />
<b>It boots as expected into Debian</b>. Looks like everything is fine.<br />
SMART Error Log Version: 1<br />
No Errors Logged<br />
Good.<br />
<br />
If you have any boot problem like mine, please <b><span style="color: red;">reinsert your SSD</span></b> to the connector like I did before you panic.<br />
<br />
Good luck.<br />
<br />
Osamu<br />
<br />
PS: This Crucial/Micron RealSSD m4/C400/P400 M4-CT256M4SSD2 previously had a problem. A firmware bug made it read-only. The firmware updates fixed my Debian system on this SSD. I could fix this without Win*** OS since the firmware update was on a bootable disk image file.<br />
<br />osamuhttp://www.blogger.com/profile/12377163704610747036noreply@blogger.com0tag:blogger.com,1999:blog-3839972882075700183.post-51258051807173617182014-07-03T00:03:00.002+09:002014-07-03T00:03:43.558+09:00debmake -- checking source against DEP-5 copyrightIt has been already more than a year after my initial uploading of the <b><a href="http://packages.qa.debian.org/d/debmake.html" target="_blank">debmake</a></b> package which offers semi-automatic generation of the DEP-5 copyright file.<br />
<br />
One recent feature addition is the "<b>debmake -k</b>" command which audits debian/copyright contents against the latest source. If, for example, the upstream changed the license from GPL-2.0+ to 3,0+, this command will tell you this change. (In the debian/copyright, the more specific entry should be listed after the generic entry since parser uses the last definition as the valid one.)<br />
<br />
I admit that this package had some regressions in some previous versions. It is now a stable tool to help making multiarch aware Debian packages of any types. If you had negative experiences, please try this again.<br />
<br />
Let me quote from <a href="http://people.debian.org/~osamu/debmake.html" target="_blank">its documentation</a> for the features. (Also available in the package.)<br />
<div class="paragraph" style="font-family: Georgia, serif;">
<div style="margin-bottom: 0.5em; margin-top: 0.5em;">
The <strong style="color: #083194;">debmake</strong> command is intended to replace functions offered historically by <strong style="color: #083194;">deb-make</strong> and <strong style="color: #083194;">dh_make</strong> commands. Its features include:</div>
</div>
<div class="ulist" style="font-family: Georgia, serif;">
<ul style="list-style-position: outside; margin-top: 0px;">
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
use of <strong style="color: #083194;">dh</strong> syntax under the new <strong style="color: #083194;">debhelper (> 9.0)</strong> package</div>
<div class="ulist" style="color: black;">
<ul style="list-style-position: outside; margin-top: 0px;">
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
extensive check of copyright for <strong style="color: #083194;">DEP-5</strong> (<strong style="color: #083194;">debian/copyright</strong>)</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
substvar supports for binary packages (<strong style="color: #083194;">debian/control</strong>)</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
support of compiler hardening options (<strong style="color: #083194;">debian/rules</strong>)</div>
</li>
</ul>
</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
keep pre-existing Debian package configuration files untouched</div>
<div class="ulist" style="color: black;">
<ul style="list-style-position: outside; margin-top: 0px;">
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
automatic generation of the missing template packaging files</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
easy verification of the <strong style="color: #083194;">debian/copyright</strong> file against the current source. (<strong style="color: #083194;">-k</strong> option)</div>
</li>
</ul>
</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
easy packaging command line UI supporting</div>
<div class="ulist" style="color: black;">
<ul style="list-style-position: outside; margin-top: 0px;">
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
non-stop execution with clean results</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
direct operation on the tarball archive</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
direct operation on the source tree from VCS</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
the multiarch Debian package</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
the multi binary Debian package</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
the non-native Debian packages from the VCS snapshot</div>
</li>
<li style="color: #aaaaaa;"><div style="color: black; margin-bottom: 0.5em;">
seamless work with <strong style="color: #083194;">debuild</strong>, <strong style="color: #083194;">pdebuild</strong>, etc.</div>
</li>
</ul>
</div>
</li>
</ul>
</div>
<div class="admonitionblock" style="color: #606060; font-family: Georgia, serif; margin-bottom: 2em; margin-right: 78.703125px; margin-top: 2em;">
<table><tbody>
<tr><td class="icon" style="color: #527bbd; font-size: 1.1em; font-weight: bold; padding-right: 0.5em; text-decoration: underline; vertical-align: top;"><div class="title" style="font-family: Arial, Helvetica, sans-serif; margin-bottom: 0.5em; margin-top: 0em;">
Note</div>
</td><td class="content" style="border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 3px; padding-left: 0.5em;">I wrote this <strong style="color: #083194;">debmake</strong> command because there was no easy command like "<strong style="color: #083194;">python setup.py bdist_deb</strong>" to create the Debian binary package. Now "<strong style="color: #083194;">debmake -d -s -b":python" -i debuild</strong>" does the job for me.</td></tr>
</tbody></table>
</div>
<div class="admonitionblock" style="color: #606060; font-family: Georgia, serif; margin-bottom: 2em; margin-right: 78.703125px; margin-top: 2em;">
This documentation comes with detailed packaging examples, too.</div>
osamuhttp://www.blogger.com/profile/12377163704610747036noreply@blogger.com0